Сart icon is not displayed

  • Posts: 10
  • Thank you received: 0
1 month 3 weeks ago #362901

-- url of the page with the problem -- : linen.sviluppo.host
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Safari, Chrome

Good afternoon,
I'm upgrading my site from Joomla 3 to Joomla 5. There is a problem with the cart icon. It was present on the old site, but in the new version I only see the inscription “cart is empty.”
How can I set a cart icon instead of text?
Thank you

Attachments:

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

  • Posts: 82681
  • Thank you received: 13331
  • MODERATOR
1 month 3 weeks ago #362903

Hi,

I suppose this was done with a translation override:
www.hikashop.com/forum/orders-management...pping-cart-icon.html
However, if you edit the HikaShop cart module via the Joomla modules manager, you'll see that there is now a cart icon setting under the HikaShop options tab where you can just provide the URL of the cart icon.

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

  • Posts: 10
  • Thank you received: 0
1 month 3 weeks ago #363024

I still can't solve this problem.
I connected fontawesome through the module, but the cart is displayed twice. How can I expand only one icon?





Also, if there is an item in the cart, only the cost should remain (without the cart icon and the word “Total”. How to do this?

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

  • Posts: 82681
  • Thank you received: 13331
  • MODERATOR
1 month 3 weeks ago #363025

Hi,

I was rather thinking you would add the URL of an icon image in the "Icon path" setting, under the "HikaShop options" tab of the module.
This would prevent the double display of the fontawesome icon.
Now, this double display can be fixed by adding some custom CSS code, so it's not difficult to do.

However, if you don't want the icon to display when there is something in the cart, then neither of these solutions will work for you. You'll have instead to use a translation override of the CART_EMPTY translation key. In it, you can add your HTML for the fontawesome icon instead of the "cart is empty" message:
www.hikashop.com/download/languages.html#modify

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

Time to create page: 0.059 seconds
Powered by Kunena Forum