HaCos Posted October 20, 2014 Share Posted October 20, 2014 Hello i am trying to reveal product availability on product page although product options "Available for order" && "Show price" are disabled. In product.tpl , lines 314 - 340 looks like: {if $PS_STOCK_MANAGEMENT} {if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || $PS_CATALOG_MODE} {else} <!-- Stock information --> <div id="availability_statut" class="iconed-text"> <span class="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> {hook h="displayProductDeliveryTime" product=$product} </div> <div class="iconed-text 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} > <span class="wpicon wpicon-info medium"></span> {l s='Warning: Last items in stock!'} </div> {/if} {/if} There must be some javascript as well, because when i select another attribute i mentioned that id "availability_value" gets updated Link to comment Share on other sites More sharing options...
Recommended Posts