Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
/**
* Defines all selectors that are used in customers address add/edit form.
*/
export default {
addressEmailInput: '#customer_address_customer_email',
addressFirstnameInput: '#customer_address_first_name',
addressLastnameInput: '#customer_address_last_name',
addressCompanyInput: '#customer_address_company',
addressCountrySelect: '#customer_address_id_country',
addressStateSelect: '#customer_address_id_state',
addressStateBlock: '.js-address-state-select',
addressDniInput: '#customer_address_dni',
addressDniInputLabel: 'label[for="customer_address_dni"]',
addressPostcodeInput: '#customer_address_postcode',
addressPostcodeInputLabel: 'label[for="customer_address_postcode"]',
};

View File

@@ -0,0 +1,33 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import AutocompleteWithEmail from '@components/form/autocomplete-with-email';
import CountryPostcodeRequiredToggler from '@components/country-postcode-required-toggler';
import addressFormMap from './address-form-map';
const {$} = window;
$(() => {
new AutocompleteWithEmail(addressFormMap.addressEmailInput, {
firstName: addressFormMap.addressFirstnameInput,
lastName: addressFormMap.addressLastnameInput,
company: addressFormMap.addressCompanyInput,
});
new window.prestashop.component.CountryStateSelectionToggler(
addressFormMap.addressCountrySelect,
addressFormMap.addressStateSelect,
addressFormMap.addressStateBlock,
);
new window.prestashop.component.CountryDniRequiredToggler(
addressFormMap.addressCountrySelect,
addressFormMap.addressDniInput,
addressFormMap.addressDniInputLabel,
);
new CountryPostcodeRequiredToggler(
addressFormMap.addressCountrySelect,
addressFormMap.addressPostcodeInput,
addressFormMap.addressPostcodeInputLabel,
);
});

View File

@@ -0,0 +1,23 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
$(() => {
const addressGrid = new window.prestashop.component.Grid('address');
addressGrid.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.SortingExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension());
addressGrid.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension());
window.prestashop.component.initComponents(
[
'ChoiceTable',
],
);
});