dixie Posted November 27, 2011 Share Posted November 27, 2011 I would like to remove the "more details" button form the "short description box" on the product page. I don't know code, but if someone can tell me what to comment out, I can do that. Thank you! 1 Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted November 27, 2011 Share Posted November 27, 2011 All you need to do is comment out the following lines in your product.tpl {if $product->description} <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> {/if} Hope that helps! Marty Shue 1 Link to comment Share on other sites More sharing options...
helldog2004 Posted May 19, 2012 Share Posted May 19, 2012 (edited) dorry wrong post Edited May 19, 2012 by helldog2004 (see edit history) Link to comment Share on other sites More sharing options...
amkogroup Posted May 9, 2013 Share Posted May 9, 2013 (edited) I'd also like to remove the "more details" button that scrolls down to the "more info" section, but keep the "more info" section.. Sorry, I'm so new I don't even know how to comment this code out. I've tried several ways, for ex: /* {if $product->description} <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> {/if} */ and: // {if $product->description} // <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> // {/if} and a couple ways, I replace the product.tpc file, clear cache, and nothing happens! Edited May 9, 2013 by amkogroup (see edit history) Link to comment Share on other sites More sharing options...
amkogroup Posted May 9, 2013 Share Posted May 9, 2013 (edited) I'm sorry I'm new at this forum! I just want to make sure you get notifications of new posts on topics you've commented on. I've written the last post @you. Thanks! ******Update: I've even REMOVED the code completley. Didn't work!!! Attached is picture file of the product.tpl inside notepad++ Probably redundant, but here is some of the code copy and pasted: </div> <!-- left infos--> <div id="pb-left-column"> <h2>{$product->name|escape:'htmlall':'UTF-8'}</h2> {if $product->description_short OR $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify">{$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} <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)}">{$packItem.name|escape:'htmlall':'UTF-8'}</a> <p>{$packItem.description_short}</p> </div> {/foreach} {/if} </div> {/if} Edited May 9, 2013 by amkogroup (see edit history) Link to comment Share on other sites More sharing options...
amkogroup Posted May 9, 2013 Share Posted May 9, 2013 Okay, I figured it out! To all the noobs out there. Locate the product.tpl file, comment it out. If you don't know how to comment out a block, here's how (for html, this style works for prestashop, at least mine) ex: {if $product->description} <!-- <p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p>--> {/if} very simple, before the script, just add <!-- <p class, etc etc</p> --> and after the script, add--> (thats less than sign, ! , dash, dash. space) (dash, dash,greater than sign) (no space) Hope I could help! Link to comment Share on other sites More sharing options...
malcek Posted May 10, 2013 Share Posted May 10, 2013 I have similar needs so here is part of code for hiding MORE INFO button. I also add description under the short description. You must edit product.tpl in around 190 line and replace with this code. MAKE SURE TO BACKUP FIRS OLD PRODUCT.TPL FILE! HERE IS THE LINK HOW it looks http://www.trgovina-figura.si/moski-t-shirt/2207-klasicna-t-shirt-majica-kratek-rokav.html CODE: <!-- left infos--> <div id="pb-left-column"> {if $product->description_short OR $packItems|@count > 0} <div id="short_description_block"> {if $product->description_short} <div id="short_description_content" class="rte align_justify">{$product->description_short}</div> {/if} {if $product->description} <div id="short_description_content" class="rte align_justify">{$product->description}</div> {/if} {if $packItems|@count > 0} <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)}">{$packItem.name|escape:'htmlall':'UTF-8'}</a> <p>{$packItem.description_short}</p> </div> {/foreach} {/if} </div> {/if} {if isset($colors) && $colors} <!-- colors --> 1 Link to comment Share on other sites More sharing options...
GAGAN PRASAD Posted February 28, 2016 Share Posted February 28, 2016 how can i remove (If you would like to add a comment about your order, please write it in the field below.) text with box while placing order. 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