Abdul Haseeb Posted September 21, 2014 Share Posted September 21, 2014 I want to remove this product condition (new, used, refurbished) from my webshop. i downloaded prestashop straight from One Click Installer of my webhosting control panel not via FTP. Link to comment Share on other sites More sharing options...
vekia Posted September 21, 2014 Share Posted September 21, 2014 check this link: http://cart-help.com/topic/26-how-to-remove-conditions-of-product-new-refubrished-etc-form-product-page/ 1 Link to comment Share on other sites More sharing options...
Abdul Haseeb Posted September 22, 2014 Author Share Posted September 22, 2014 check this link: http://cart-help.com/topic/26-how-to-remove-conditions-of-product-new-refubrished-etc-form-product-page/ Thanks for reply! but where exactly i can find this product.tpl? maybe in PHPmyAdmin? Link to comment Share on other sites More sharing options...
Paulito Posted September 22, 2014 Share Posted September 22, 2014 Hello I do not know which method you use to connect to your database, maybe cPanel or ftp but what you need to find is: Your shop > your theme > default bootstrap > product.tpl and "comment out" <!-- comment out --> the code rather than delete it, you may want to use the conditions at a later date. Hope this helps Paul Link to comment Share on other sites More sharing options...
Abdul Haseeb Posted September 22, 2014 Author Share Posted September 22, 2014 Hello I do not know which method you use to connect to your database, maybe cPanel or ftp but what you need to find is: Your shop > your theme > default bootstrap > product.tpl and "comment out" <!-- comment out --> the code rather than delete it, you may want to use the conditions at a later date. Hope this helps Paul Thanks i found the file but i didnt find exactly what Mr. Vekia said. only thing i found relating that Condition issue is : {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 i remove this then whole page of the product disappears. Link to comment Share on other sites More sharing options...
Paulito Posted September 22, 2014 Share Posted September 22, 2014 (edited) Hello Have you gone to: public_html/Your Shop/themes/default-bootstrap/product.tpl and around line 162 seen this: <!--</p> {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>--> Just <!-- Comment Out --> this code Before http://screencast.com/t/UcTbzBobHQZ2 After http://screencast.com/t/6k5pURzZR Paul Edited September 22, 2014 by Paulito (see edit history) 1 Link to comment Share on other sites More sharing options...
Abdul Haseeb Posted September 22, 2014 Author Share Posted September 22, 2014 (edited) Hello Have you gone to: public_html/Your Shop/themes/default-bootstrap/product.tpl and around line 162 seen this: <!--</p> {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>--> Just <!-- Comment Out --> this code Before http://screencast.com/t/UcTbzBobHQZ2 After http://screencast.com/t/6k5pURzZR Paul Thanks for answering again. yes exactly i am at public_html/Your Shop/themes/default-bootstrap/product.tpl and also the text i shared in last mesage is at at arround line 162. my version is 1.6.0.9 so maybe its bit different. Edited September 22, 2014 by Abdul Haseeb (see edit history) Link to comment Share on other sites More sharing options...
aliaspt Posted September 30, 2014 Share Posted September 30, 2014 Anybody figured this out? I'm having the same issue with product page disappearing if I remove the condition code in product.tpl. Thanks. Link to comment Share on other sites More sharing options...
athens Posted February 2, 2015 Share Posted February 2, 2015 (edited) i modify my code in httpdocs / ps / themes / mytheme / product.tpl like this, (i add 5 line up - down) <h5 itemprop="name" class="name_product"><span>{$product->name|escape:'html':'UTF-8'}</span></h5> <p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}> <label>{l s='Model'} </label> <span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> <!--</p> {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>--> {if $PS_STOCK_MANAGEMENT} <!-- 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} 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> but still no luck, is something wrong with the code? Edited February 2, 2015 by athens (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 3, 2015 Share Posted February 3, 2015 use {* comment *} method instead of <!-- comment --> Link to comment Share on other sites More sharing options...
athens Posted February 7, 2015 Share Posted February 7, 2015 is this correct now? <h5 itemprop="name" class="name_product"><span>{$product->name|escape:'html':'UTF-8'}</span></h5> <p id="product_reference"{if empty($product->reference) || !$product->reference} style="display: none;"{/if}> <label>{l s='Model'} </label> <span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> {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> {if $PS_STOCK_MANAGEMENT} <!-- 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} 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> <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} Link to comment Share on other sites More sharing options...
Andrus Posted May 8, 2015 Share Posted May 8, 2015 Is this the right way to remove new condition? I have this code and still see the condition new. {* {if !$product->is_virtual && $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 product'}</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> *} Link to comment Share on other sites More sharing options...
ALMAJ Posted May 17, 2015 Share Posted May 17, 2015 Hi How to remove the product Condition only for Virtual Products for Prestashop 1.5.6.2?Does not make any sense to have product conditions on Virtual Products... I have found this fix repo but it is only for Prestashop 1.6.xmy prestashop version is 1.5.6.2 PS; sorry for hijack this thread. Regards Link to comment Share on other sites More sharing options...
clubbuilder Posted February 5, 2016 Share Posted February 5, 2016 (edited) check this link: http://cart-help.com/topic/26-how-to-remove-conditions-of-product-new-refubrished-etc-form-product-page/ Using cart 1.6.10 and this solution still works perfectly. As a newbie I am finding PrestaCart feature rich and give me power to minipulate multiple things, but it just seems silly this is not a setting in the control panel we can turn off. Let be honest, what percentage of people are selling used verus new items? I would guess the majority of people are only selling new items. Love this feature it does allow us to sell all and display condition; just thinking this might be a logical candidate to have a setting in the admin panel instead of most of us having to remove code. Edited February 5, 2016 by clubbuilder (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts