Skip to content

Commit 3031eed

Browse files
authored
Merge pull request #947 from prestamodule/patch-1
fix: add id_product_attribute when adding to cart from product list
2 parents 6901c54 + bb08e5b commit 3031eed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/catalog/_partials/miniatures/product.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
{if $product.add_to_cart_url}
7979
<form class="{$componentName}__form" action="{$urls.pages.cart}" method="post">
8080
<input type="hidden" value="{$product.id_product}" name="id_product">
81+
{if $product.id_product_attribute}
82+
<input type="hidden" value="{$product.id_product_attribute}" name="id_product_attribute">
83+
{/if}
8184
<input type="hidden" name="token" value="{$static_token}">
8285

8386
<div class="quantity-button js-quantity-button">

0 commit comments

Comments
 (0)