swissup/module-breeze-bss-simple-detail-configurable

Bss Simple Details on Configurable Product Breeze Frontend Integration

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.0.3 2025-06-18 12:53 UTC

This package is auto-updated.

Last update: 2025-06-18 12:54:28 UTC


README

Integration done for the module version 1.5.3

Installation

composer require swissup/module-breeze-bss-simple-detail-configurable
bin/magento module:enable Swissup_BreezeBssSimpleDetailConfigurable

Required patches

Bss_Simpledetailconfigurable/js/configurable_control.js:

@@ -109,7 +109,7 @@
                 }
             }

-            var url = $(location).attr('href');
+            var url = location.href;
             if (url.split('+').pop() === 'sdcp-redirect') {
                 window.paramRedirect = url.split('+').slice(0, -1);
                 window.paramRedirect.shift();
@@ -524,7 +524,7 @@
         _UpdateActiveTab: function () {
             $('.data.item.title').removeClass("active");
             $('.data.item.content').css('display', 'none');
-            if ($(window.location).attr('hash') == '') {
+            if (window.location.hash == '') {
                 $('.data.item.title:not(.' +this.options.sdcp_classes.hiddenTab+ ')').first().addClass('active');
                 $('.data.item.content:not(.' +this.options.sdcp_classes.hiddenTab+ ')').first().css('display', 'block');

@@ -906,7 +906,7 @@
         _UpdateUrl: function ($parentUrl, $customUrl, $config, $suffix) {
             if ($config > 0 && $('.checkout-cart-configure').length == 0) {
                 $customUrl = $customUrl.replace(/[`!@#$%^&*()|\;:'",.<>\{\}\[\]\\\/]/g,'');
-                $customUrl = $.trim($customUrl);
+                $customUrl = $customUrl.trim();
                 while ($customUrl.indexOf(' ') >= 0) {
                     $customUrl = $customUrl.replace(" ", "~");
                 }
@@ -932,7 +932,7 @@
         _UpdateSelected: function ($options, $widget) {
             var config = $options.jsonModuleConfig,
                 data = $options.jsonChildProduct,
-                customUrl = $(location).attr('href').replace(config.url_suffix, ''),
+                customUrl = location.href.replace(config.url_suffix, ''),
                 selectingAttr = [],
                 attr,
                 selectedAttr = customUrl.split('+'),
@@ -985,7 +985,7 @@
                             + '"] .swatch-attribute-options').children().is('div')) {
                             $('.swatch-attribute[' + swSelector + 'attribute-code="' + $code + '"] .swatch-attribute-options .swatch-option').each(function () {
                                 var optionLable = $(this).attr(swSelector + 'option-label').replace(/[~`!@#$%^&*()|\;:'",.<>\{\}\[\]\\\/]/g,'').replace(/\s/g,'');
-                                optionLable = $.trim(optionLable);
+                                optionLable = optionLable.trim();
                                 if (optionLable == $value) {
                                     $(this).trigger('click');
                                     return false;
@@ -1305,7 +1305,7 @@
             if (undefined !== productId) {
                 $('div.data.item.title').each(function (idx, elem) {
                     var triggerIds = $(elem).attr('data-trigger');
-                    if (undefined !== triggerIds) {
+                    if (undefined !== triggerIds && triggerIds.match(/^[\d,]+$/)) {
                         if (triggerIds.split(",").indexOf(productId) !== -1) {
                             if (!$(elem).is(':visible')) {
                                 $(elem).removeClass('bss-tab-hidden').show();