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

#   Override Cart Module Design

##

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

Less More

- Posts: 366
- Thank you received: 26
-
-

6 years 4 months ago [\#321425](#321425) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  *[Override Cart Module Design](/forum/27-checkout/900303-override-cart-module-design#321425 "-- url of the page with the problem -- :   muggep.thr.nu/kurv  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3.19 -- Browser(s) name and version -- : FireFox  Hi  I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart&#95;design&#95;view.php I don't see the  with the class &quot;hikashop&#95;product&#95;variant&#95;subname&quot; - where can I find it?  Regards Thomas")* was created by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")*

-- url of the page with the problem -- : [ muggep.thr.nu/kurv](http://muggep.thr.nu/kurv)
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3.19
-- Browser(s) name and version -- : FireFox

Hi

I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart_design_view.php I don't see the &lt;span&gt; with the class "hikashop_product_variant_subname" - where can I find it?

Regards
Thomas

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

6 years 4 months ago [\#321436](#321436) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override Cart Module Design](/forum/27-checkout/900303-override-cart-module-design#321436 "-- url of the page with the problem -- :   muggep.thr.nu/kurv  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3.19 -- Browser(s) name and version -- : FireFox  Hi  I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart&#95;design&#95;view.php I don't see the  with the class &quot;hikashop&#95;product&#95;variant&#95;subname&quot; - where can I find it?  Regards Thomas")*

Hi,

That span is added internally by HikaShop when generating the name of products with variants.
It's done with the line: Code:

$variant-&gt;product_name = $variant-&gt;main_product_name.'&lt;span class="hikashop_product_variant_subname"&gt;'.$separator.$variant-&gt;characteristics_text.'&lt;/span&gt;';

in administrator/components/com_hikashop/classes/product.php
Now please beware that it is used on the product page, on the cart in the checkout, etc. It's not just in the cart module.
Also, if you change that code, when you update your HikaShop the code will revert back to what we have on our end.
As I don't know what you're trying to do, I can't say what should be the best way to move forward.

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

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

Less More

- Posts: 366
- Thank you received: 26
-
-

6 years 4 months ago [\#321465](#321465) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[Override Cart Module Design](/forum/27-checkout/900303-override-cart-module-design#321465 "-- url of the page with the problem -- :   muggep.thr.nu/kurv  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3.19 -- Browser(s) name and version -- : FireFox  Hi  I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart&#95;design&#95;view.php I don't see the  with the class &quot;hikashop&#95;product&#95;variant&#95;subname&quot; - where can I find it?  Regards Thomas")*

Hi
And thanks!

I see ... I would just like to have the variant name on its own line (and no ':'), and be able to style the main productname and variant name differently.

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

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

Less More

- Posts: 366
- Thank you received: 26
-
-

6 years 4 months ago [\#321466](#321466) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[Override Cart Module Design](/forum/27-checkout/900303-override-cart-module-design#321466 "-- url of the page with the problem -- :   muggep.thr.nu/kurv  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3.19 -- Browser(s) name and version -- : FireFox  Hi  I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart&#95;design&#95;view.php I don't see the  with the class &quot;hikashop&#95;product&#95;variant&#95;subname&quot; - where can I find it?  Regards Thomas")*

I have done it with CSS now ![:-)](/media/kunena/emoticons/3.png ":-)")

\#hikashop_checkout .hikashop_product_variant_subname::before {
content: "\A";
white-space: pre;
}
Now I just have to figure out how to get rid of ':' + the space after it!

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

6 years 4 months ago -  6 years 4 months ago [\#321491](#321491) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Override Cart Module Design](/forum/27-checkout/900303-override-cart-module-design#321491 "-- url of the page with the problem -- :   muggep.thr.nu/kurv  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3.19 -- Browser(s) name and version -- : FireFox  Hi  I have bought the Cart Module Design in Market, but I have issues with the override - in the file cart&#95;design&#95;view.php I don't see the  with the class &quot;hikashop&#95;product&#95;variant&#95;subname&quot; - where can I find it?  Regards Thomas")*

Hi,

For modify this specific part, just a mdofification in language file can do the trick :
**HIKA\_VARIANT\_SEPARATOR="&lt;br/&gt;"**

Note : See [ **this documentation**](http://www.hikashop.com/download/languages.html#modify) to see how to proceed.

Hope this will help you to achieved what you need.
Regards

Last edit: 6 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwMDMwMy1vdmVycmlkZS1jYXJ0LW1vZHVsZS1kZXNpZ24/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.075 seconds

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

[](#top)
