Author Topic: Truncate product name in cart  (Read 1935 times)


  • Guest
Truncate product name in cart
« on: January 04, 2012, 13:38:32 pm »
J1.7.3 & VM2.
I have a small question regarding VM cart.
I am using mod_virtuemart_cart module, i need to truncate the product name which is added into the cart.
Code: [Select]
<?php echo $product['product_name']; ?>The above code returns product name with anchor tag.
E.g <a href="my-url">prod_name</a>
So if i truncate the above code, the href link also gets truncated.
Any solution for this??