Compare commits
3 Commits
92811693ab
...
feature/ex
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dd939e3e2 | |||
| c911fc76d2 | |||
| dc8ed97eb0 |
@@ -1,82 +1,84 @@
|
||||
import prestashop from 'prestashop';
|
||||
import $ from 'jquery';
|
||||
import prestashop from "prestashop";
|
||||
import $ from "jquery";
|
||||
|
||||
prestashop.themeSelectors = {
|
||||
product: {
|
||||
tabs: '.tabs .nav-link',
|
||||
activeNavClass: 'js-product-nav-active',
|
||||
activeTabClass: 'js-product-tab-active',
|
||||
activeTabs: '.tabs .nav-link.active, .js-product-nav-active',
|
||||
imagesModal: '.js-product-images-modal',
|
||||
thumb: '.js-thumb',
|
||||
thumbContainer: '.thumb-container, .js-thumb-container',
|
||||
arrows: '.js-arrows',
|
||||
selected: '.selected, .js-thumb-selected',
|
||||
modalProductCover: '.js-modal-product-cover',
|
||||
cover: '.js-qv-product-cover',
|
||||
customizationModal: '.js-customization-modal',
|
||||
},
|
||||
listing: {
|
||||
searchFilterToggler: '#search_filter_toggler, .js-search-toggler',
|
||||
searchFiltersWrapper: '#search_filters_wrapper',
|
||||
searchFilterControls: '#search_filter_controls',
|
||||
searchFilters: '#search_filters',
|
||||
activeSearchFilters: '#js-active-search-filters',
|
||||
listTop: '#js-product-list-top',
|
||||
list: '#js-product-list',
|
||||
listBottom: '#js-product-list-bottom',
|
||||
listHeader: '#js-product-list-header',
|
||||
searchFiltersClearAll: '.js-search-filters-clear-all',
|
||||
searchLink: '.js-search-link',
|
||||
},
|
||||
order: {
|
||||
returnForm: '#order-return-form, .js-order-return-form',
|
||||
},
|
||||
arrowDown: '.arrow-down, .js-arrow-down',
|
||||
arrowUp: '.arrow-up, .js-arrow-up',
|
||||
clear: '.clear',
|
||||
fileInput: '.js-file-input',
|
||||
contentWrapper: '#content-wrapper, .js-content-wrapper',
|
||||
footer: '#footer, .js-footer',
|
||||
modalContent: '.js-modal-content',
|
||||
modal: '.js-checkout-modal',
|
||||
touchspin: '.js-touchspin',
|
||||
checkout: {
|
||||
termsLink: '.js-terms a',
|
||||
giftCheckbox: '.js-gift-checkbox',
|
||||
imagesLink: '.card-block .cart-summary-products p a, .js-show-details',
|
||||
carrierExtraContent: '.carrier-extra-content, .js-carrier-extra-content',
|
||||
btn: '.checkout a',
|
||||
},
|
||||
cart: {
|
||||
productLineQty: '.js-cart-line-product-quantity',
|
||||
quickview: '.quickview',
|
||||
touchspin: '.bootstrap-touchspin',
|
||||
promoCode: '#promo-code',
|
||||
displayPromo: '.display-promo',
|
||||
promoCodeButton: '.promo-code-button',
|
||||
discountCode: '.js-discount .code',
|
||||
discountName: '[name=discount_name]',
|
||||
actions: '[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',
|
||||
},
|
||||
notifications: {
|
||||
dangerAlert: '#notifications article.alert-danger',
|
||||
container: '#notifications .container',
|
||||
},
|
||||
passwordPolicy: {
|
||||
template: '#password-feedback',
|
||||
hint: '.js-hint-password',
|
||||
container: '.js-password-strength-feedback',
|
||||
strengthText: '.js-password-strength-text',
|
||||
requirementScore: '.js-password-requirements-score',
|
||||
requirementLength: '.js-password-requirements-length',
|
||||
requirementScoreIcon: '.js-password-requirements-score i',
|
||||
requirementLengthIcon: '.js-password-requirements-length i',
|
||||
progressBar: '.js-password-policy-progress-bar',
|
||||
inputColumn: '.js-input-column',
|
||||
},
|
||||
product: {
|
||||
tabs: ".tabs .nav-link",
|
||||
activeNavClass: "js-product-nav-active",
|
||||
activeTabClass: "js-product-tab-active",
|
||||
activeTabs: ".tabs .nav-link.active, .js-product-nav-active",
|
||||
imagesModal: ".js-product-images-modal",
|
||||
thumb: ".js-thumb",
|
||||
thumbContainer: ".thumb-container, .js-thumb-container",
|
||||
arrows: ".js-arrows",
|
||||
selected: ".selected, .js-thumb-selected",
|
||||
modalProductCover: ".js-modal-product-cover",
|
||||
cover: ".js-qv-product-cover",
|
||||
customizationModal: ".js-customization-modal",
|
||||
},
|
||||
listing: {
|
||||
searchFilterToggler: "#search_filter_toggler, .js-search-toggler",
|
||||
searchFiltersWrapper: "#search_filters_wrapper",
|
||||
searchFilterControls: "#search_filter_controls",
|
||||
searchFilters: "#search_filters",
|
||||
activeSearchFilters: "#js-active-search-filters",
|
||||
listTop: "#js-product-list-top",
|
||||
list: "#js-product-list",
|
||||
listBottom: "#js-product-list-bottom",
|
||||
listHeader: "#js-product-list-header",
|
||||
searchFiltersClearAll: ".js-search-filters-clear-all",
|
||||
searchLink: ".js-search-link",
|
||||
},
|
||||
order: {
|
||||
returnForm: "#order-return-form, .js-order-return-form",
|
||||
},
|
||||
arrowDown: ".arrow-down, .js-arrow-down",
|
||||
arrowUp: ".arrow-up, .js-arrow-up",
|
||||
clear: ".clear",
|
||||
fileInput: ".js-file-input",
|
||||
contentWrapper: "#content-wrapper, .js-content-wrapper",
|
||||
footer: "#footer, .js-footer",
|
||||
modalContent: ".js-modal-content",
|
||||
modal: ".js-checkout-modal",
|
||||
touchspin: ".js-touchspin",
|
||||
checkout: {
|
||||
termsLink: ".js-terms a",
|
||||
giftCheckbox: ".js-gift-checkbox",
|
||||
imagesLink: ".card-block .cart-summary-products p a, .js-show-details",
|
||||
carrierExtraContent:
|
||||
".carrier-extra-content, .js-carrier-extra-content",
|
||||
btn: ".checkout a",
|
||||
},
|
||||
cart: {
|
||||
productLineQty: ".js-cart-line-product-quantity",
|
||||
quickview: ".quickview",
|
||||
touchspin: ".bootstrap-touchspin",
|
||||
promoCode: "#promo-code",
|
||||
displayPromo: ".display-promo",
|
||||
promoCodeButton: ".promo-code-button",
|
||||
discountCode: ".js-discount .js-code",
|
||||
discountName: "[name=discount_name]",
|
||||
actions:
|
||||
'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',
|
||||
},
|
||||
notifications: {
|
||||
dangerAlert: "#notifications article.alert-danger",
|
||||
container: "#notifications .container",
|
||||
},
|
||||
passwordPolicy: {
|
||||
template: "#password-feedback",
|
||||
hint: ".js-hint-password",
|
||||
container: ".js-password-strength-feedback",
|
||||
strengthText: ".js-password-strength-text",
|
||||
requirementScore: ".js-password-requirements-score",
|
||||
requirementLength: ".js-password-requirements-length",
|
||||
requirementScoreIcon: ".js-password-requirements-score i",
|
||||
requirementLengthIcon: ".js-password-requirements-length i",
|
||||
progressBar: ".js-password-policy-progress-bar",
|
||||
inputColumn: ".js-input-column",
|
||||
},
|
||||
};
|
||||
|
||||
$(() => {
|
||||
prestashop.emit('themeSelectorsInit');
|
||||
prestashop.emit("themeSelectorsInit");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user