Alex Nitu Posted May 25, 2015 Share Posted May 25, 2015 Somewhere along the line of the modifications which the website has suffered it seems that I've lost the "availability" box, and I can't display status of stocks (in stock/out of stock). I tried working with product.tpl, but it seems that's not enough and I don't know what more can I do. The website URL is: http://truse-scule.ro I tried replacing it with standard code from un-altered version, thinking something got deleted, but it didn't work. I also noticed a "display: none" while inspecting the element and told it to display a different element. It got the job done-ish once I entered a text, but I don't know how to change that inside the website structure, and why don't I have the original green box block element? This is the code I have inside product.tpl, now: <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {*<span id="availability_label">{l s='Availability:'}</span>*} <span id="availability_value"{if $product->quantity <= 0 && !$allow_oosp} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> {hook h="displayProductDeliveryTime" product=$product} <p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p> {/if} <p id="availability_date"{if ($product->quantity > 0) || !$product->available_for_order || $PS_CATALOG_MODE || !isset($product->available_date) || $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> Link to comment Share on other sites More sharing options...
Alex Nitu Posted May 26, 2015 Author Share Posted May 26, 2015 Bump! Link to comment Share on other sites More sharing options...
sergiodub Posted March 9, 2017 Share Posted March 9, 2017 Same issue for me. Did you solved it? 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