Jump to content
tallGiant

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 

image.png.940f0c4bf17c771733aacdda52009ab6.png

image.thumb.png.1bb912f6ee39a7fcacff71356a07029e.png

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
      </button>
   </form>
   </div>

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