Jump to content

[SOLVED] How to remove "Availability" sign


Recommended Posts

Hi.

How can i remove "available" sign on products in front office? I know that i need to change something in product.tpl , i just cant find what i need to comment out or delete. Could someone please help me?

 

I've been trying to comment out this section, but didn't help

 

 

{* availability *}

<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display:none;"{/if}>

<span id="availability_label">{l s='Availability:'}</span>

<span id="availability_value"{if $product->quantity <= 0} 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>

Edited by Artem (see edit history)
Link to comment
Share on other sites

i deleted this whole code, didn't work!

 

{* availability *}

<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display:none;"{/if}>

<span id="availability_label">{l s='Availability:'}</span>

<span id="availability_value"{if $product->quantity <= 0} 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>

Link to comment
Share on other sites

i removed availability from product.tpl

what do i need to remove from product-list.tpl?

 

 

<div class="product_flags">

{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}!</span>{/if}

{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}<span class="availability bordercolor">{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}<span class="bordercolor">{l s='Product available with different options'}</span>{else}<span class="bordercolor">{l s='Out of stock'}</span>{/if}</span>{/if}

{if isset($product.online_only) && $product.online_only}<span class="online_only bordercolor">{l s='Online only!'}</span>{/if}

</div>

 

i've tried deleting line that i highlighted in green. no result :\

Link to comment
Share on other sites

i did work, and "availability" sign removed now. however when i enter product page, i get this error

 

 

 

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home4/zigmatun/public_html/themes/theme472/product.tpl" on line 474 "{/if}" unclosed {if} tag' in /home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:656 Stack trace: #0 /home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(118): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed {if} t...') #1 /home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile('{include file="...') #2 /home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #3 /home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #4 /home4/zigmatun/public_html/tools/smarty/sy in/home4/zigmatun/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 656

Link to comment
Share on other sites

×
×
  • Create New...