kook kai Posted November 22, 2014 Share Posted November 22, 2014 i don't want the condition "new" to display in all the description. how to do that? Link to comment Share on other sites More sharing options...
Paulito Posted November 22, 2014 Share Posted November 22, 2014 Hello You need to go to: public_html/Your Shop/themes/default-bootstrap/product.tpl and delete or better to <!-- Comment Out--> this code around line 170 <!-- {capture name=condition} {if $product->condition == 'new'}{l s='New'} {elseif $product->condition == 'used'}{l s='Used'} {elseif $product->condition == 'refurbished'}{l s='Refurbished'} {/if} {/capture} <p id="product_condition"{if !$product->condition} style="display: none;"{/if}> <label>{l s='Condition'} </label> <span class="editable" itemprop="condition">{$smarty.capture.condition}</span> </p> --> Before http://screencast.com/t/5Aq7RhhV6D After http://screencast.com/t/z8N7mdxMoeEq Paul Link to comment Share on other sites More sharing options...
kook kai Posted November 22, 2014 Author Share Posted November 22, 2014 thank you Paul. this is the code i have </p> {if $product->condition} <p id="product_condition"> <label>{l s='Condition'} </label> {if $product->condition == 'new'} <link itemprop="itemCondition" href="http://schema.org/NewCondition"/> <span class="editable">{l s='New'}</span> {elseif $product->condition == 'used'} <link itemprop="itemCondition" href="http://schema.org/UsedCondition"/> <span class="editable">{l s='Used'}</span> {elseif $product->condition == 'refurbished'} <link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/> <span class="editable">{l s='Refurbished'}</span> {/if} </p> i studied html long time ago. kind of forget the </p>, not sure and don't want to mess up the code. where exactly should i delete or alternate the context? Link to comment Share on other sites More sharing options...
vekia Posted November 22, 2014 Share Posted November 22, 2014 there should be one additional {/if} at the end of the code you pasted above post #9 here: http://cart-help.com/topic/26-how-to-remove-conditions-of-product-new-refubrished-etc-form-product-page/ Link to comment Share on other sites More sharing options...
kook kai Posted November 22, 2014 Author Share Posted November 22, 2014 (edited) problem solved! thank you vekia. another question, i input the reference code without realizing that it will show in the description. i erased the code, still it shows in the description. how do i get around with this? Edited November 22, 2014 by kook kai (see edit history) 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