stefano7 Posted February 3, 2019 Share Posted February 3, 2019 hi, please i have prestashop 1.7.4 how can i move the quantity from details t near add to cart? Link to comment Share on other sites More sharing options...
stefano7 Posted February 8, 2019 Author Share Posted February 8, 2019 On 2/3/2019 at 1:10 PM, stefano7 said: hi, please i have prestashop 1.7.4 how can i move the quantity from details t near add to cart? Link to comment Share on other sites More sharing options...
bruno.iaria-brik Posted October 25, 2019 Share Posted October 25, 2019 hi, add this code in product-add-to-cart in folder /yourtheme/ /templates/catalog/_partials {block name='product_quantities'} {if $product.show_quantities} <div class="product-quantities"> <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label> <span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span> </div> {/if} {/block} bye 1 Link to comment Share on other sites More sharing options...
Nickovitshj Posted November 16, 2020 Share Posted November 16, 2020 How do get this to update itself when a different combination with another stock quantity is selected? Link to comment Share on other sites More sharing options...
isdngirl Posted November 9, 2021 Share Posted November 9, 2021 On 11/16/2020 at 3:08 PM, Nickovitshj said: How do get this to update itself when a different combination with another stock quantity is selected? for 1.7.8 I know this is late but maybe she helps others who are using variants place this code {block name='product_quantities'} {if $product.show_quantities} <div class="product-quantities"> <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label> <span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span> </div> {/if} {/block} Into /themes/THEMENAME/templates/catalog/_partials/product-variants.tpl above the last div seems to work well for me but I use variants for everything Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now