KevH Posted February 26, 2014 Share Posted February 26, 2014 Hi, is there a way to disable the condiotons (new,used..) permanently by an option or can it only disabled by deleting the hardcoded part in the .tpl etc.? Link to comment Share on other sites More sharing options...
shayneb Posted March 26, 2014 Share Posted March 26, 2014 Enter this into yourtheme/css/product.css file: #product_condition{ display:none; }It worked for me! Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 you mean about disabling it in front office, or in back office on product edit page? Link to comment Share on other sites More sharing options...
Stofferdreng Posted March 28, 2014 Share Posted March 28, 2014 Im also missing this option in the BO. I simply use the translation - and replace the condition words with a "space" 1 Link to comment Share on other sites More sharing options...
vekia Posted March 31, 2014 Share Posted March 31, 2014 hello to remove this from BO open: /themes/default/template/controllers/products/informations.tpl and search for: <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="new" {if $product->condition == 'new'}selected="selected"{/if} >{l s='New'}</option> <option value="used" {if $product->condition == 'used'}selected="selected"{/if} >{l s='Used'}</option> <option value="refurbished" {if $product->condition == 'refurbished'}selected="selected"{/if}>{l s='Refurbished'}</option> </select> </div> </div> you can: 1) remove it2) comment out it3) add style="display:none;" to main div (preferable) 1 Link to comment Share on other sites More sharing options...
Hadiqa Posted June 2, 2014 Share Posted June 2, 2014 hello to remove this from BO open: /themes/default/template/controllers/products/informations.tpl and search for: <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="new" {if $product->condition == 'new'}selected="selected"{/if} >{l s='New'}</option> <option value="used" {if $product->condition == 'used'}selected="selected"{/if} >{l s='Used'}</option> <option value="refurbished" {if $product->condition == 'refurbished'}selected="selected"{/if}>{l s='Refurbished'}</option> </select> </div> </div> you can: 1) remove it 2) comment out it 3) add style="display:none;" to main div (preferable) I wanted this option for my client's site and i have changed it this way <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="stitched" {if $product->condition == 'stitched'} selected="selected"{/if}>{l s='Stitched'}</option> <option value="unstitched" {if $product->condition == 'unstitched'} selected="selected"{/if}>{l s='Un-Stitched'}</option> <option value="readytowear" {if $product->condition == 'readytowear'}selected="selected"{/if}>{l s='Ready-to-Wear'}</option> <option value="madetoorder" {if $product->condition == 'madetoorder'}selected="selected"{/if}>{l s='Made-to-Order'}</option> </select> </div> </div> plus i edited /classes/Product.php as well /** @var enum Product condition (stitched, un-stitched, ready-to-wear, made-to-order) */ public $condition; 'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('stitched', 'unstitched', 'readytowear', 'madetoorder'), 'default' => 'stitched'), so everything is GREAT in the admin side now i am lost because nothing is happening to front view of website.... same condition box with NEW, USED & REFURBISHED is shown plz help to find how to change and where? plus i want to add some radio button option and some drop list on the product page where condition is displayed just next to the photo of the product plz guide me to the procedure.... 1 Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 do you changed contents of .tpl file to display correct conditions? Link to comment Share on other sites More sharing options...
Hadiqa Posted June 2, 2014 Share Posted June 2, 2014 do you changed contents of .tpl file to display correct conditions? /admin5586/themes/default/template/controllers/products/informations.tpl yup i made changes here and then in /classes/Product.php and then i edited myphp's table for CONDITION in ALTER TABLE `ps_product` CHANGE `condition` `condition` ENUM('stitched','un-stitched','ready-to-wear','made-to-order') CHARACTERSET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'stitched'; Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 i mean front office product.tpl file :-) where the real conditions appear perhaps you're talking about BO only ? :| Link to comment Share on other sites More sharing options...
Hadiqa Posted June 2, 2014 Share Posted June 2, 2014 i mean front office product.tpl file :-) where the real conditions appear perhaps you're talking about BO only ? :| yes...i was looking for this admin area i did but front office files i had no idea where to work thanks let me check product.tpl Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 if you're talking about back office only, product.tpl will not help in this case Link to comment Share on other sites More sharing options...
Hadiqa Posted June 2, 2014 Share Posted June 2, 2014 if you're talking about back office only, product.tpl will not help in this case i want both front & back obviously back i did and its working fine but front office is not making any chages in left filter and attributes near product images both not changing as per ur guidance i have updated /themes/default-bootstrap/product.tpl too <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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 == 'stitched'} {l s='Stitched'} {elseif $product-> condition == 'un-stitched'} {l s='Un-Stitched'} {elseif $product-> condition == 'ready-to-wear'} {l s='Ready-to-Wear'} {elseif $product-> condition == 'made-to-order'} {l s='Made-to-Order'} {/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> but of no use to front office issue Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 okay so seems like everything is allright in your code you cleared cache in your shop and recompiled theme? Link to comment Share on other sites More sharing options...
Hadiqa Posted June 2, 2014 Share Posted June 2, 2014 okay so seems like everything is allright in your code you cleared cache in your shop and recompiled theme? how to do this? Link to comment Share on other sites More sharing options...
vekia Posted June 2, 2014 Share Posted June 2, 2014 adv. paramters > peformance tab there is an option to clear shop cache and also to "force compile" turn force compile on, turn of cache reload your product page does it work then? Link to comment Share on other sites More sharing options...
Hadiqa Posted June 3, 2014 Share Posted June 3, 2014 adv. paramters > peformance tab there is an option to clear shop cache and also to "force compile" turn force compile on, turn of cache reload your product page does it work then? AS PER UR INSTRUCTIONS I HAVE DONE IT first the Recompile templates if the files have been updated was ON Cache was OFF now Force compilation is ON Cache is still OFF BUT no changes Link to comment Share on other sites More sharing options...
Hadiqa Posted June 3, 2014 Share Posted June 3, 2014 (edited) Edited June 3, 2014 by Hadiqa (see edit history) Link to comment Share on other sites More sharing options...
Hadiqa Posted June 5, 2014 Share Posted June 5, 2014 (edited) ????? am i missing any file to update? where are these conditions coming from...??? I have noticed 1 thing i added 1 new product and selected Ready-to-Wear option from condition box and then saved it when the page returned after saving the option was not selected and stitched was on top as before so it means the my information tab of new product has some problem is selection of check box option also posted here http://www.prestashop.com/forums/topic/169469-displaying-product-condition-solved/ Edited June 5, 2014 by Hadiqa (see edit history) Link to comment Share on other sites More sharing options...
dpurcell Posted January 4, 2015 Share Posted January 4, 2015 hello to remove this from BO open: /themes/default/template/controllers/products/informations.tpl and search for: <div class="form-group"> <label class="control-label col-lg-3" for="condition"> {include file="controllers/products/multishop/checkbox.tpl" field="condition" type="default"} {l s='Condition'} </label> <div class="col-lg-3"> <select name="condition" id="condition"> <option value="new" {if $product->condition == 'new'}selected="selected"{/if} >{l s='New'}</option> <option value="used" {if $product->condition == 'used'}selected="selected"{/if} >{l s='Used'}</option> <option value="refurbished" {if $product->condition == 'refurbished'}selected="selected"{/if}>{l s='Refurbished'}</option> </select> </div> </div> you can: 1) remove it 2) comment out it 3) add style="display:none;" to main div (preferable) Okay, I'm still a newbie here. I have been trying for a few days now to get rid of "condition" on the products page with no luck. any help would be greatly appreciated. PrestaShop version 1.6.0.9 Shop URL http://royaltrappings.com/ Current theme in use default-bootstrap Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 Okay, I'm still a newbie here. I have been trying for a few days now to get rid of "condition" on the products page with no luck. any help would be greatly appreciated. PrestaShop version 1.6.0.9 Shop URL http://royaltrappings.com/ Current theme in use default-bootstrap I totally understand you. Nobody thinks that you are selling old used shirts with prints anyway. The part "Condition New" is just a waste of space on the product page in front office in my opinion and I really would like to be able to switch that off as well. Best would be if this was optional for each product. Meaning that if there was a condition named "None" and if this was selected it would totally hide this part (and of course move everything else up) on the product page. I really can't see any reason why you would want to remove it in back office? Some of my products really don't have any "Stock values" (like as if I sold tap water) and it's just disturbing to see whatever crazy value I add just to prevent customers from getting the "Out of stock" message. This info would also be nice to be able to hide (depending on individual product) from the customers on the product page. For some products it's important that they remain however. 1 Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2015 Share Posted January 9, 2015 Okay, I'm still a newbie here. I have been trying for a few days now to get rid of "condition" on the products page with no luck. any help would be greatly appreciated. PrestaShop version 1.6.0.9 Shop URL http://royaltrappings.com/ Current theme in use default-bootstrap product.tpl remove this code: {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> {/if} 2 Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 product.tpl remove this code: {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> {/if} Okay, deleted it and then all product pages are ALL WHITE?? Not sure why this is happening. Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 (edited) Okay, deleted it and then all product pages are ALL WHITE?? Not sure why this is happening. Why complain, at least the conditions are gone? Reason why this happened most likely is because you missed to remove EVERYTHING shown above. If the first or last line above remains you might get that blank page. At least it did for me, and I thought the solution was an "Overkill". Edited January 9, 2015 by Mr.Bean_S (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2015 Share Posted January 9, 2015 that's correct, it's because you removed too much, or not everything well Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 that's correct, it's because you removed too much, or not everything well <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> {/if} {if $product->description} <p class="buttons_bottom_block"> <a href="javascript:{ldelim}{rdelim}" class="button"> {l s='More details'} </a> </p> {/if} Code in blue I deleted and got white pages on all products Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> {/if} {if $product->description} <p class="buttons_bottom_block"> <a href="javascript:{ldelim}{rdelim}" class="button"> {l s='More details'} </a> </p> {/if} Code in blue I deleted and got white pages on all products Could you search your file for "description_short" and copy the 5 lines before and after this part. Perhaps we can see the error? Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 Could you search your file for "description_short" and copy the 5 lines before and after this part. Perhaps we can see the error? <!-- thumbnails --> <div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}"> {if isset($images) && count($images) > 2} <span class="view_scroll_spacer"> <a id="view_scroll_left" class="" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}"> {l s='Previous'} </a> </span> {/if} <div id="thumbs_list"> <ul id="thumbs_list_frame"> {if isset($images)} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value="`$product->id`-`$image.id_image`"} {if !empty($image.legend)} {assign var=imageTitle value=$image.legend|escape:'html':'UTF-8'} {else} {assign var=imageTitle value=$product->name|escape:'html':'UTF-8'} {/if} <li id="thumbnail_{$image.id_image}"{if $smarty.foreach.thumbnails.last} class="last"{/if}> <a{if $jqZoomEnabled && $have_image && !$content_only} href="javascript:void(0);" rel="{literal}[spam-filter]/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}'{literal[spam-filter]{/literal}"{else} href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}" data-fancybox-group="other-views" class="fancybox{if $image.id_image == $cover.id_image} shown{/if}"{/if} title="{$imageTitle}"> <img class="img-responsive" id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'cart_default')|escape:'html':'UTF-8'}" alt="{$imageTitle}" title="{$imageTitle}" height="{$cartSize.height}" width="{$cartSize.width}" itemprop="image" /> </a> </li> {/foreach} {/if} </ul> </div> <!-- end thumbs_list --> {if isset($images) && count($images) > 2} <a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}"> {l s='Next'} </a> {/if} </div> <!-- end views-block --> <!-- end thumbnails --> {/if} {if isset($images) && count($images) > 1} <p class="resetimg clear no-print"> <span id="wrapResetImages" style="display: none;"> <a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" name="resetImages"> <i class="icon-repeat"></i> {l s='Display all pictures'} </a> </span> </p> {/if} </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> {/if} {if $product->description} <p class="buttons_bottom_block"> <a href="javascript:{ldelim}{rdelim}" class="button"> {l s='More details'} </a> </p> {/if} <!--{if $packItems|@count > 0} <div class="short_description_pack"> <h3>{l s='Pack content'}</h3> {foreach from=$packItems item=packItem} <div class="pack_content"> {$packItem.pack_quantity} x <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)|escape:'html':'UTF-8'}">{$packItem.name|escape:'html':'UTF-8'}</a> <p>{$packItem.description_short}</p> </div> {/foreach} </div> {/if}--> </div> <!-- end short_description_block --> {/if} {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)} <!-- number of item in stock --> <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span> </p> {/if} {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 && !$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> </p> {hook h="displayProductDeliveryTime" product=$product} <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} <p id="availability_date"{if ($product->quantity > 0) || !$product->available_for_order || $PS_CATALOG_MODE || !isset($product->available_date) || $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> <!-- Out of stock hook --> <div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS} </div> {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if} {if !$content_only} <!-- usefull links--> <ul id="usefull_link_block" class="clearfix no-print"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li class="print"> <a href="javascript:print();"> {l s='Print'} </a> </li> {if $have_image && !$jqZoomEnabled}{/if} </ul> {/if} </div> <!-- end center infos--> <!-- pb-right-column--> <div class="pb-right-column col-xs-12 col-sm-4 col-md-3"> {if ($product->show_price && !isset($restricted_country_mode)) || isset($groups) || $product->reference || (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} <!-- add to cart form--> <form id="buy_block"{if $PS_CATALOG_MODE && !isset($groups) && $product->quantity > 0} class="hidden"{/if} action="{$link->getPageLink('cart')|escape:'html':'UTF-8'}" method="post"> <!-- hidden datas --> <p class="hidden"> <input type="hidden" name="token" value="{$static_token}" /> <input type="hidden" name="id_product" value="{$product->id|intval}" id="product_page_product_id" /> <input type="hidden" name="add" value="1" /> <input type="hidden" name="id_product_attribute" id="idCombination" value="" /> </p> the first "description_short" is below the "product_condition" Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 (edited) the first "description_short" is below the "product_condition" Yes, we all know this? So please, paste the 5 (FIVE!) lines before AND after that line from your EDITED and NONWORKING file here. Before you do, make sure it still shows the product pages as all white. We want to make sure that you don't have an "apartheid" version of the "Product.tpl" that could explain the "White only"! Edited January 9, 2015 by Mr.Bean_S (see edit history) Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 Yes, we all know this? So please, paste the 5 (FIVE!) lines before AND after that line from your EDITED and NONWORKING file here. Before you do, make sure it still shows the product pages as all white. We want to make sure that you don't have an "apartheid" version of the "Product.tpl" that could explain the "White only"! </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {/if} </p> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 (edited) </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {/if} </p> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} Thanks! This way it was easier to see the error. Below you can see the two lines BEFORE your blue text above combined with the two lines AFTER the blue text. As you can see it does not quite match the code you pasted here. <span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> This is how my "correct" file looks like: <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> {/if} Edited January 9, 2015 by Mr.Bean_S (see edit history) Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 Thanks! This way it was easier to see the error. Below you can see the two lines BEFORE your blue text above combined with the two lines AFTER the blue text. As you can see it does not quite match the code you pasted here. <span class="editable" itemprop="sku">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> Again, I am a NEWBIE so I do not understand what you are saying? I took out too much? I didn't take out enough? What lines do I put back? or take out? Sorry for being a newbie Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 In other words, replace this... </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {/if} </p> {/if} {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} With this: </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} Link to comment Share on other sites More sharing options...
dpurcell Posted January 9, 2015 Share Posted January 9, 2015 In other words, replace this... With this: </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- center infos --> <div class="pb-center-column col-xs-12 col-sm-4"> {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {if $product->description_short || $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} Okay, did that 3 times, still same result, WHITE page Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 9, 2015 Share Posted January 9, 2015 Okay, did that 3 times, still same result, WHITE page OK? The first time when you were told to remove the blue text in your message you instead removed all this: {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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> As you can see you removed some code (in red) that should have been keept. Instead you kept 3 lines at the bottom that SHOULD have been removed. These! {/if} </p> {/if} So this is why my code given to you was longer than the code you were asked to replace it with. Since you made a misstake once it's not impossible that you made one again? But you will need to paste your code again for us to examine. Start from the part {if $product->online_only} and end at the line that starts with {$product->description_short}</div> Ok? Make sure that your code section starts and end with this and we will take a look again. PS. I'm a newbie too, but in this case it's not about experiance but just doing what you have been told to. Nothing more, nothing less! Link to comment Share on other sites More sharing options...
dpurcell Posted January 10, 2015 Share Posted January 10, 2015 OK? The first time when you were told to remove the blue text in your message you instead removed all this: {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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> As you can see you removed some code (in red) that should have been keept. Instead you kept 3 lines at the bottom that SHOULD have been removed. These! {/if} </p> {/if} So this is why my code given to you was longer than the code you were asked to replace it with. Since you made a misstake once it's not impossible that you made one again? But you will need to paste your code again for us to examine. Start from the part {if $product->online_only} and end at the line that starts with {$product->description_short}</div> Ok? Make sure that your code section starts and end with this and we will take a look again. PS. I'm a newbie too, but in this case it's not about experiance but just doing what you have been told to. Nothing more, nothing less! {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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>_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> Link to comment Share on other sites More sharing options...
Mr.Bean_S Posted January 10, 2015 Share Posted January 10, 2015 {if $product->online_only} <p class="online_only">{l s='Online only'}</p> {/if} <h1 itemprop="name">{$product->name|escape:'html':'UTF-8'}</h1> <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> {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>_short} <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> Are you just making fun of me? All the code you originally was told to remove now is back suddenly? Instead a lot of other code is missing? Do you just randomly cut and paste in that file? This is getting out of hand. Perhaps you should just try with enclosed product.tpl ? You will need to unpack the file since we are not allowed to enclose tpl-files. product.zip Link to comment Share on other sites More sharing options...
dpurcell Posted January 10, 2015 Share Posted January 10, 2015 Are you just making fun of me? All the code you originally was told to remove now is back suddenly? Instead a lot of other code is missing? Do you just randomly cut and paste in that file? This is getting out of hand. Perhaps you should just try with enclosed product.tpl ? You will need to unpack the file since we are not allowed to enclose tpl-files. Okay, This is not at all fun for me nor do I like to be laughed at. I have stated that I am a NEWBIE I have posted and posted and posted you asked me to post. All I am asking for is a little help. I have deleted exactlay what I was told to delete. It still shows up as white page. You asked to repost my code that I am trying to adjust and I did. Not sure what more I can do Link to comment Share on other sites More sharing options...
dpurcell Posted January 10, 2015 Share Posted January 10, 2015 Are you just making fun of me? All the code you originally was told to remove now is back suddenly? Instead a lot of other code is missing? Do you just randomly cut and paste in that file? This is getting out of hand. Perhaps you should just try with enclosed product.tpl ? You will need to unpack the file since we are not allowed to enclose tpl-files. Okay that file worked Thank you very much Link to comment Share on other sites More sharing options...
sidro Posted January 15, 2017 Share Posted January 15, 2017 other way to remove just new condition: in \themes\default-bootstrap\product.tpl replace <p id="product_condition"> <label>{l s='Condition:'} </label> {if $product->condition == 'new'} <link itemprop="itemCondition" href="https://schema.org/NewCondition"/> <span class="editable">{l s='New product'}</span> {elseif $product->condition == 'used'} <link itemprop="itemCondition" href="https://schema.org/UsedCondition"/> <span class="editable">{l s='Used'}</span> {elseif $product->condition == 'refurbished'} <link itemprop="itemCondition" href="https://schema.org/RefurbishedCondition"/> <span class="editable">{l s='Refurbished'}</span> {/if} </p> with: <p id="product_condition"> {if $product->condition == 'new'} <link itemprop="itemCondition" href="https://schema.org/NewCondition"/> <span class="editable"><label>{l s=''} </label>{l s=''}</span> {elseif $product->condition == 'used'} <link itemprop="itemCondition" href="https://schema.org/UsedCondition"/> <span class="editable"><label>{l s='Condition:'} </label>{l s='Used'}</span> {elseif $product->condition == 'refurbished'} <link itemprop="itemCondition" href="https://schema.org/RefurbishedCondition"/> <span class="editable"><label>{l s='Condition:'} </label>{l s='Refurbished'}</span> {/if} </p> Link to comment Share on other sites More sharing options...
Recommended Posts