swissup/module-breeze-bss-simple-detail-configurable
Composer 安装命令:
composer require swissup/module-breeze-bss-simple-detail-configurable
包简介
Bss Simple Details on Configurable Product Breeze Frontend Integration
README 文档
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
Please disable the Ajax Load Detail option since it's not supported.
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();
swissup/module-breeze-bss-simple-detail-configurable 适用场景与选型建议
swissup/module-breeze-bss-simple-detail-configurable 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 33 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 swissup/module-breeze-bss-simple-detail-configurable 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 swissup/module-breeze-bss-simple-detail-configurable 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2025-04-17