Jump to content

Remove "more details" button - Product page


dixie

Recommended Posts

  • 5 months later...
  • 11 months later...

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!

post-561490-0-36552800-1368125010_thumb.jpg

Edited by amkogroup (see edit history)
Link to comment
Share on other sites

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}

post-561490-0-77609600-1368127461_thumb.png

Edited by amkogroup (see edit history)
Link to comment
Share on other sites

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

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 -->

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...