Jump to content
Sign in to follow this  
deroxonweb

How to remove link at product description?

Recommended Posts

Hello Sir/Madam,

 

Could somebody teach me how to remove the link at product description? I have the code as:

 

<p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}">{$product.description_short}</a></p>

 

I would like to display only the product description content, but remove the link related. Please advice and help. Thank you very much.

 

Best regards,

Derox

Share this post


Link to post
Share on other sites

Based on this line of code remove the text in red, this part creates the link.

 

 

<p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}">{$product.description_short}</a></p>

Share this post


Link to post
Share on other sites

HI,

 

on Prestashop 1.4.8.3

to remove the link to the Product Description at STEP 01

you have to modify the file in your theme :

 

shopping-cart-product-line.tpl

 

 

The line to modify are the following :

 

 

 

<td class="cart_description">

 

<h5><a class="product_link" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5>

 

{if isset($product.attributes) && $product.attributes}<a class="product_descr" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}

 

</td>

 

in

 

 

 

 

<td class="cart_description">

 

<h5><a class="product_link" >{$product.name|escape:'htmlall':'UTF-8'}</a></h5>

 

{if isset($product.attributes) && $product.attributes}<a class="product_descr">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}

 

</td>

 

 

SOLVED

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More