From 74b9ab25bd0a30092d644eea8ee1f751f39222c0 Mon Sep 17 00:00:00 2001 From: nizelg <104589134+nizelg@users.noreply.github.com> Date: Sat, 28 Jan 2023 16:05:29 +0300 Subject: [PATCH 1/2] Update theme.ts --- src/js/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }); From de0a16a6cd0d5874eb0b227288e7fbd1c1b4bf1a Mon Sep 17 00:00:00 2001 From: nizelg <104589134+nizelg@users.noreply.github.com> Date: Sat, 28 Jan 2023 16:08:39 +0300 Subject: [PATCH 2/2] Update product.tpl --- templates/catalog/_partials/miniatures/product.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -
+