Jump to content

Quantity field with -/+ buttons in product list

Recommended Posts

I tried to add the Up / Down button to the product list. Unfortunately only the first element is with these buttons. With the others this button is missing.



<form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh">
                            <input type="hidden" name="token" value="{$static_token}">
                            <input type="hidden" name="id_product" value="{$product.id_product}" class="product_page_product_id">
                            <input type="hidden" name="qty" value="1">
                            <dl class="data-sheet">
                                {block name='product_quantity'}
                                <div class="product-quantity clearfix">
                                    <span class="control-label">
                                        <strong>{l s='Quantity' d='Shop.Theme.Catalog'}</strong>
                                    {* AngarTheme *}
                                    <div class="qty">
                                        <input type="text" name="qty" id="quantity_wanted" value="1" class="input form-control" min="1" height="48" aria-label="{l s='Quantity' d='Shop.Theme.Actions'}">
                                {* <p style="line-height:1.8;"> </p> *} 

                                {* AngarTheme *} 
                                {if !$configuration.is_catalog} 
                                    {if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)}
                                        <button class="btn add-to-cart" data-button-action="add-to-cart" type="submit" {if !$product.add_to_cart_url} disabled {/if}>
                                            <i class="material-icons shopping-cart"></i>
                                            <span>{l s='Add to cart' d='Shop.Theme.Actions'}</span>
                                        <button class="btn add-to-cart" data-button-action="add-to-cart" type="submit" disabled>
                                            <i class="material-icons shopping-cart"></i>
                                            <span>{l s='Add to cart' d='Shop.Theme.Actions'}</span>


Somebody can help me.

Many thanks for the help.

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
  • Create New...

Important Information

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