Artem Posted March 22, 2013 Share Posted March 22, 2013 (edited) 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 March 22, 2013 by Artem (see edit history) Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Just remove <span id="availability_label">{l s='Availability:'}</span> Link to comment Share on other sites More sharing options...
vekia Posted March 22, 2013 Share Posted March 22, 2013 you should remove all spans in <p> or just remove whole <p id="availability_statut"> if you dont want to delete it permanently you can add style="display:none"; Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 I tried everything, but i still have "availability" sign in FO. just not sure if i entered "display:none" in correct place, but still i've deleted the whole code. didn't help Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Did you change force compile to YEs / No (with saves) after you made the code changes? Link to comment Share on other sites More sharing options...
vekia Posted March 22, 2013 Share Posted March 22, 2013 the answer is that you probablt forget about turning force compilation on Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 (edited) no. i turned on force compile when i started to make changes Edited March 22, 2013 by Artem (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 22, 2013 Share Posted March 22, 2013 it's weirdy that changes dont appear. maybe try to clear browser cache? Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 tried that now. same thing :\ Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 prestashop cache disabled? you did override the file on the server yeah? forced local cache to reload? Link to comment Share on other sites More sharing options...
vekia Posted March 22, 2013 Share Posted March 22, 2013 you use default template? or some external solution? Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 i'm using custom template. Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 here is the link to the website http://www.zigmatuning.com/80-corolla that's the code in element that doesn't want to go away :\ <span class="availability bordercolor">В наличии</span> Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Availablity is removed for me? Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 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 More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 I think its a local cache issue for you, I don;t see any of that code within the product page... Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 so what would you advise me to do? :\ Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Force cache update, try another browser turn your modem on and off.. wait it out till it updates and you see the new loaded page. Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 tried pretty much everything mentioned here, nothing seemed to work :\ Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Screen shot the page and high light where you see the text? Let me double check against what I see here... Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 i did a screen shot, selected how it looks on web site and page element Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 have you removed it from productlist.tpl as well as product.tpl product.tpl shows it on the product page where as prodlist.tpl is that page in question. Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 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 More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 On productlist.tpl just try to remove {l s='Available'} Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 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 More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 fixed it. it was all due to product-list them Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 thank you very much for your help cocothecat! Link to comment Share on other sites More sharing options...
cocothecat Posted March 22, 2013 Share Posted March 22, 2013 Great glad you fixed and got it working. Sorry it took so long, I thought at the start you kept seeing it on the product page it was only after the screen grab I noticed you was looking at the product list page Link to comment Share on other sites More sharing options...
Artem Posted March 22, 2013 Author Share Posted March 22, 2013 well, it was my fault that mislead you. once again, thank you Link to comment Share on other sites More sharing options...
Recommended Posts