aqeltech / module-breeze-plumrocket-estimated-delivery
AQELTech - Breezefront Plumrocket 估计交货集成
1.0.0
2024-06-24 14:12 UTC
Requires
- aqeltech/core: ^1.0
- plumrocket/module-estimateddelivery: ^2.5
- swissup/module-breeze: ^2.16.0
This package is auto-updated.
Last update: 2024-09-24 14:39:03 UTC
README
描述
此扩展尽力集成Plumrocket供应商的估计交货扩展的所有前端功能。
必需的补丁
plumrocket/module/estimated-delivery/view/frontend/web/js/load.js
@@ -79,7 +79,7 @@
((timeCheckedAt + 3600000) < browserTime)
) {
storage.post(
- options.url + '?isAjax=true',
+ options.config.url + '?isAjax=true',
''
).done(function (response) {
differentTime = browserTime - new Date(response).getTime();
@@ -105,7 +105,7 @@
* @param estimatedShipping
*/
onDatesChange: function (estimatedDelivery, estimatedShipping) {
- if (options.isProductPage && options.useCustomTemplate) {
+ if (options.config.isProductPage && options.config.useCustomTemplate) {
self.renderCustomProductPageDatesTemplate(estimatedDelivery, estimatedShipping);
}
},
@@ -117,7 +117,7 @@
* @param estimatedShipping
*/
renderCustomProductPageDatesTemplate: function (estimatedDelivery, estimatedShipping) {
- var resultTemplate = options.customTemplate;
+ var resultTemplate = options.config.customTemplate;
if (estimatedDelivery() === undefined || estimatedDelivery() === '') {
resultTemplate = resultTemplate.replace(/{if estimated_delivery_date}.*?{endif}/s, '');
@@ -141,11 +141,11 @@
},
saveToLocalStorage: function (key, data) {
- reg.get('localStorage').set(key, data);
+ $.storage.set(key, data);
},
getFromLocalStorage: function (key) {
- return reg.get('localStorage').get(key);
+ return $.storage.get(key);
},
renderEstimatedDate: function () {
安装
composer require aqeltech/module-breeze-plumrocket-estimated-delivery
bin/magento module:enable AQELTech_BreezePlumrocketEstimatedDelivery