Jump to content

product name in cart and email alert problem


Recommended Posts

Resolved, sort of  the problem with the names of the products.

In theme/modules/blockcart  I edited  blockcart.tpl

There is a line with the name of the product:

<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)}" title="{$product.name|escape:html:'UTF-8'}">
				{$product.name|truncate:13:'...'|escape:html:'UTF-8'}</a>

I changed the truncate value to 18.

You can change it to the length Your theme allows You.

Link to comment
Share on other sites

  • 3 weeks later...

To solve this, edit your /modules/blockcart/ajax-cart.js file, in your prestashop installation directory, and in the line 467 change

content += '<a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + name + '</a>';

to

content += '<a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + this.name + '</a>';

It's a temporal solution but it works.

 

Regards.

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

×
×
  • Create New...