Shopping cart module modification

  • Posts: 36
  • Thank you received: 0
11 years 4 months ago #117816

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

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #117843

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 :

<?php echo $row->product_name; ?>
by
<?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.

  • Posts: 36
  • Thank you received: 0
11 years 4 months ago #119698

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.068 seconds
Powered by Kunena Forum