trent Posted September 5, 2014 Share Posted September 5, 2014 Hi there!Someone hane an idea why, in Prestashop 1.5.4.1, despite having activated the "Show available quantities on product page" (in the backend), on the product page does not appears to me the amount of the remaining products? Why??Please help!!Thank you! Link to comment Share on other sites More sharing options...
prestashopninja Posted September 5, 2014 Share Posted September 5, 2014 Hi, - From BO->advanced parameters->performance, please check that the smarty compilation option is NOT "never recompile" - Please check in your themes/[your_theme]/product.tpl you have the following there: var quantitiesDisplayAllowed = {if $display_qties == 1}true{else}false{/if}; var quantityAvailable = {if $display_qties == 1 && $product->quantity}{$product->quantity}{else}0{/if}; and <!-- number of item in stock --> {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items in stock'}</span> </p> {/if} Link to comment Share on other sites More sharing options...
trent Posted September 6, 2014 Author Share Posted September 6, 2014 Hi, - From BO->advanced parameters->performance, please check that the smarty compilation option is NOT "never recompile" - Please check in your themes/[your_theme]/product.tpl you have the following there: var quantitiesDisplayAllowed = {if $display_qties == 1}true{else}false{/if}; var quantityAvailable = {if $display_qties == 1 && $product->quantity}{$product->quantity}{else}0{/if}; and <!-- number of item in stock --> {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items in stock'}</span> </p> {/if} Thanks! It works! I don't know why (why do you think??), but in my template the block {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items in stock'}</span> </p> was commented with a <!-- --> Very strange Link to comment Share on other sites More sharing options...
prestashopninja Posted September 6, 2014 Share Posted September 6, 2014 Hi, I really have no idea. Sometimes the designers take some unconcious decisions. By the way, that's very kind of you to quote my solution and pick up your "thanks" as the best answer. You are more than welcome Link to comment Share on other sites More sharing options...
trent Posted September 8, 2014 Author Share Posted September 8, 2014 Hi, I really have no idea. Sometimes the designers take some unconcious decisions. By the way, that's very kind of you to quote my solution and pick up your "thanks" as the best answer. You are more than welcome Thanks for the answer! :) maybe you have ad idea for other post of mine? :( http://www.prestashop.com/forums/topic/356797-shipping-cost-5-of-the-total-order/ Link to comment Share on other sites More sharing options...
Recommended Posts