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

#   cart icon text&amp;position customization into menu item

##

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

Less More

- Posts: 22
- Thank you received: 2
-
-

5 years 5 months ago [\#333029](#333029) by [kaito](/forum/user/61402-kaito "View kaito's Profile")  *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333029 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")* was created by *[kaito](/forum/user/61402-kaito "View kaito's Profile")*

-- HikaShop version -- : HikaShop Starter 4.4.2
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.4.3
-- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)

Hi,

I have followed several forum posts ( [ www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html](https://www.hikashop.com/forum/4-how-to/878588-adding-cart-icon-image-on-mini-cart.html) and [ www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html](https://www.hikashop.com/forum/install-update/899546-display-cart-icon-in-menu.html)) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture_1 attached.

Lenguaje overrides used are:
CART_EMPTY="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt;"
X_ITEM_FOR_X="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %s producto por %s"
X_ITEMS_FOR_X="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %s productos por %s"

I have 2 questions:
1st.- how can I only show the total price text, as in desired picture_2 attached?
2nd.- how can I place cart icon and total price text in the same line one as picture_2?

Your help will be welcome.

Ricardo

- [ ![picture&#95;2.JPG](/forum/attachment/52823) ](/forum/attachment/52823 "picture&#95;2.JPG") [ ](/forum/attachment/52823?download=1 "picture&#95;2.JPG")
- [ ![picture&#95;1.JPG](/forum/attachment/52824) ](/forum/attachment/52824 "picture&#95;1.JPG") [ ](/forum/attachment/52824?download=1 "picture&#95;1.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjY3Ny1jYXJ0LWljb24tdGV4dC1wb3NpdGlvbi1jdXN0b21pemF0aW9uLWludG8tbWVudS1pdGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

5 years 5 months ago [\#333030](#333030) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333030 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")*

Hi,

1. You can adapt your translation overrides.
For example, you could have: Code:

CART_EMPTY="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt;" X_ITEM_FOR_X="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %2$s" X_ITEMS_FOR_X="&lt;img src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %2$s"

2. It will require some CSS code to do that.
What CSS code to use depends on the HTML in that area and the CSS already added by your template. So I can't say for sure the exact CSS code you would need to add as you didn't provide the URL of that page.
Here is the documentation page where we explain how to add custom CSS to your HikaShop:
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

5 years 5 months ago [\#333045](#333045) by [kaito](/forum/user/61402-kaito "View kaito's Profile")  Replied by *[kaito](/forum/user/61402-kaito "View kaito's Profile")* on topic *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333045 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")*

Hi Nicolas:
Thanks for your fast reply.
- your tip for first doubt it works perfect, although I don´t understand the syntax. is there any link where is it documented?
- 2nd doubt, place price at the side of the icon: sorry, i didn´t provide url, you can access directly to the online shop [ bodegasanmiguel.es/index.php/es/tienda-d-2/a-3](https://bodegasanmiguel.es/index.php/es/tienda-d-2/a-3) I will appreciate your help
thanks in advance,
Ricardo

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

5 years 5 months ago [\#333063](#333063) by [kaito](/forum/user/61402-kaito "View kaito's Profile")  Replied by *[kaito](/forum/user/61402-kaito "View kaito's Profile")* on topic *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333063 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")*

Hi Nicolas:
Don´t worry about 2nd point, it is solved, just for rest of the people, to place total import side by side to cart icon you only need to add some css class (in my cas eI created new class "iconocarrito" with display: inline) to your translation override, like:

CART_EMPTY="&lt;img class='iconocarrito' src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt;"
X_ITEM_FOR_X="&lt;img class='iconocarrito' src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %2$s"
X_ITEMS_FOR_X="&lt;img class='iconocarrito' src=' /bodegasanmiguel/images/iconos/cart_icon_red.png ' /&gt; %2$s"

and it works.

About 1st point, is there any documentation about that point?

Thanks in advance

Ricardo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwMjY3Ny1jYXJ0LWljb24tdGV4dC1wb3NpdGlvbi1jdXN0b21pemF0aW9uLWludG8tbWVudS1pdGVtP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

5 years 5 months ago [\#333065](#333065) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333065 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")*

Hi,

I'm not sure what you mean.
If you want documentation on translation overrides we have on our end, you can see it here:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)
Note that the translation override interface we provide is just a different interface for Joomla's translation override system. You can find documentation about this here: [ docs.joomla.org/J3.x:Language\_Overrides\_in\_Joomla](https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla)
Now, this is just the beginner documentation on translation override.
Joomla has also a more advanced documentation page for the details of translation strings here:
[ docs.joomla.org/Formatted\_fields\_in\_lang...anslation\_strings/en](https://docs.joomla.org/Formatted_fields_in_language_translation_strings/en)
There, you'll find a section "Format argument swapping" about using %2$s to target the second argument of the translation instead of %s.

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

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

Less More

- Posts: 22
- Thank you received: 2
-
-

5 years 5 months ago [\#333081](#333081) by [kaito](/forum/user/61402-kaito "View kaito's Profile")  Replied by *[kaito](/forum/user/61402-kaito "View kaito's Profile")* on topic *[cart icon text&amp;position customization into menu item](/forum/25-install-update/902677-cart-icon-text-position-customization-into-menu-item#333081 "-- HikaShop version -- : HikaShop Starter 4.4.2 -- Joomla version -- : 3.9.27 -- PHP version -- : 7.4.3 -- Browser(s) name and version -- : Chrome Versión 90.0.4430.212 (Build oficial) (64 bits)  Hi,  I have followed several forum posts (   www.hikashop.com/forum/4-how-to/878588-a...ge-on-mini-cart.html  and   www.hikashop.com/forum/install-update/89...rt-icon-in-menu.html ) to achieve placing cart icon into item mneu using mini-cart module inserted with tag from modules anywhere, see picture&#95;1 attached.  Lenguaje overrides used are: CART&#95;EMPTY=&quot;&quot; X&#95;ITEM&#95;FOR&#95;X=&quot; %s producto por %s&quot; X&#95;ITEMS&#95;FOR&#95;X=&quot; %s productos por %s&quot;  I have 2 questions: 1st.- how can I only show the total price text, as in desired picture&#95;2 attached? 2nd.- how can I place cart icon and total price text in the same line one as picture&#95;2?  Your help will be welcome.  Ricardo")*

Hi Nicolas,
Thanks, last link is what I needed to understand 1st point.
Regards,
Ricardo

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

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