Guest Posted May 2, 2014 Share Posted May 2, 2014 I do wish Prestashop would build options into their designs The latest release theme update has changed the appearance of the shopping cart. It adds in the "availabilty" wording (Wording when in and out of stock). Which is OK, but it kind of suggests that we do not have enough stock I need to change this to also display the current stock levels Can anyone point me in the direction of the correct code and where to place it? Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2014 Share Posted May 3, 2014 Any ideas? Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 {$product.stock_quantity} you can use this variable in shopping-cart-product-line.tpl file located in your theme directoryy <td class="cart_avail"><span class="{if $product.quantity_available <= 0}label label-warning{else}label label-success{/if}">{if $product.quantity_available <= 0}{if $product.allow_oosp}{$product.available_later}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if}</span>{$product.stock_quantity}</td> 1 1 Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2014 Share Posted May 3, 2014 Perfect, very many thanks Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 you're welcome and sorry for long waiting time for this simple solution topic marked as solved Link to comment Share on other sites More sharing options...
marcellolaforgia Posted July 16, 2014 Share Posted July 16, 2014 I have a problem in the page of the order (shopping-cart.tpl and shopping-cart-product-line.tpl) In the pages of the order, prices are unpacked. Yesterday I managed to fix the unit price, now I get what I want (the price VAt included, not one without VAT). This is the problem: if I increase the quantity of the total price of the products (including tax) it reminds me of the sum of the price without VAT. if, instead, I diminish the total quantity of the product I remains unchanged and the total product (including tax) I riportail discounted price without VAT. I tried to modify the code several times, but without success. Could you give me a hand? The version I am using is 1.6.0.8 and the template is a zandress changed. this is the site: www.xanthe.it. Thank you. Marcello Link to comment Share on other sites More sharing options...
Recommended Posts