Jump to content

Add to cart konfiguracja koszyka

Recommended Posts

Dzień dobry! 

Dodałam przycisk 'Add to cart' do mojej strony, jednak nie dodaje produktu do koszyka po naciśnięciu przycisku 



Kod który dodałam:

<form action="{$urls.pages.cart}" method = "post" class="product-add-to-cart">
   <input type="hidden" value="{$product.id_product}" name="id_product"/>
   <input type="hidden" name="token" value="{$static_token}"/>
   <input type="number" style="padding: 9px 10px; float:left;width: 30%; margin-left: 10px; border-width:2px" class="input-group form-control" name="qty" min="1" value="1" />
   <button style="float:left;margin-left: 13px" data-button-action="add-to-cart; background-color:#7a7a7a; color:#ffffff" class="btn btn-primary" type="submit">
      Add to cart

Czy ktoś wie co jest nie tak? Dlaczego przycisk nie działa ? Dziękuję z góry za pomoc!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More