- Posts: 36
- Thank you received: 0
Shopping cart module modification
13 years 3 months ago #117816
by dkubik
Shopping cart module modification was created 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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 3 months ago #117843
by Mohamed Thelji
Replied by Mohamed Thelji on topic Shopping cart module modification
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 :
by
Hope this will help you a little.
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; ?>
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
Replied by dkubik on topic Shopping cart module modification
Thank you very much. It works exactly like I expected.
regards
DOminik
regards
DOminik
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds