News:

Support the VirtueMart project and become a member

Main Menu

Truncate product name in cart

Started by rooney, January 04, 2012, 13:38:32 PM

Previous topic - Next topic

rooney

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