[Skip to main content](#vessel-content)

#   Shopping cart module modification

##

- **[dkubik](/forum/user/22809-dkubik "View dkubik's Profile")**
- [![dkubik's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/22809-dkubik "View dkubik's Profile") Topic Author
- [ Offline](/forum/user/22809-dkubik)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 3 months ago [\#117816](#117816) by [dkubik](/forum/user/22809-dkubik "View dkubik's Profile")  *[Shopping cart module modification](/forum/4-how-to/860809-shopping-cart-module-modification#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.&quot;Homemade bread from Alabama&quot; only to show in this module &quot;Homemade bread &quot; which is still clickable(a href) and nothing else will change.  Thank you  Best regards Dominik")* was created by *[dkubik](/forum/user/22809-dkubik "View dkubik's Profile")*

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

- [ ![h6ed703a.jpg](/forum/attachment/11607) ](/forum/attachment/11607 "h6ed703a.jpg") [ ](/forum/attachment/11607?download=1 "h6ed703a.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MDgwOS1zaG9wcGluZy1jYXJ0LW1vZHVsZS1tb2RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#117843](#117843) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shopping cart module modification](/forum/4-how-to/860809-shopping-cart-module-modification#117843 "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.&quot;Homemade bread from Alabama&quot; only to show in this module &quot;Homemade bread &quot; which is still clickable(a href) and nothing else will change.  Thank you  Best regards Dominik")*

Hi Dominik,
You'll just have to edit your **cart** file of your **product** view of your **front end** template through "*Hikashop-&gt;Display-&gt;Views*", and replace this line : Code:

&lt;?php echo $row-&gt;product_name; ?&gt;

by Code:

&lt;?php echo substr($row-&gt;product_name, 0, 15); ?&gt;

Hope this will help you a little.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MDgwOS1zaG9wcGluZy1jYXJ0LW1vZHVsZS1tb2RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dkubik](/forum/user/22809-dkubik "View dkubik's Profile")**
- [![dkubik's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/22809-dkubik "View dkubik's Profile") Topic Author
- [ Offline](/forum/user/22809-dkubik)

Less More

- Posts: 36
- Thank you received: 0
-
-

13 years 2 months ago [\#119698](#119698) by [dkubik](/forum/user/22809-dkubik "View dkubik's Profile")  Replied by *[dkubik](/forum/user/22809-dkubik "View dkubik's Profile")* on topic *[Shopping cart module modification](/forum/4-how-to/860809-shopping-cart-module-modification#119698 "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.&quot;Homemade bread from Alabama&quot; only to show in this module &quot;Homemade bread &quot; which is still clickable(a href) and nothing else will change.  Thank you  Best regards Dominik")*

Thank you very much. It works exactly like I expected.

regards
DOminik

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MDgwOS1zaG9wcGluZy1jYXJ0LW1vZHVsZS1tb2RpZmljYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
