Skip to main content

Shopping cart module modification

13 years 3 months ago #117816 by dkubik
Hi

Could anybody help me with small modification of hikashop cart module?
I just need to format and show the linkable name of products (see screenshot) which were added to cart only in maximum of 15characters.
Like instead of original name e.g."Homemade bread from Alabama" only to show in this module "Homemade bread " which is still clickable(a href) and nothing else will change.

Thank you

Best regards
Dominik

Please Log in or Create an account to join the conversation.

13 years 3 months ago #117843 by Mohamed Thelji
Hi Dominik,
You'll just have to edit your cart file of your product view of your front end template through "Hikashop->Display->Views", and replace this line :
Code:
<?php echo $row->product_name; ?>
by
Code:
<?php echo substr($row->product_name, 0, 15); ?>

Hope this will help you a little.

Please Log in or Create an account to join the conversation.

13 years 2 months ago #119698 by dkubik
Thank you very much. It works exactly like I expected.

regards
DOminik

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum