diff --git a/src/js/theme.ts b/src/js/theme.ts index 5ff971f41..4eb42cea3 100644 --- a/src/js/theme.ts +++ b/src/js/theme.ts @@ -34,7 +34,7 @@ $(() => { // @TODO: Fix this on core.js side inside a major version of PrestaShop instead of minor // For reference: https://github.com/PrestaShop/hummingbird/pull/418#discussion_r1061938669 - document.querySelectorAll('[name="token"]').forEach((el) => { + document.querySelectorAll('#add_to_card_hp [name="token"]').forEach((el) => { el.value = prestashop.static_token; }); diff --git a/templates/catalog/_partials/miniatures/product.tpl b/templates/catalog/_partials/miniatures/product.tpl index aaddfbf54..1fb538740 100644 --- a/templates/catalog/_partials/miniatures/product.tpl +++ b/templates/catalog/_partials/miniatures/product.tpl @@ -169,7 +169,7 @@ {if $product.add_to_cart_url} -
+