Customise the cart module

  • Posts: 361
  • Thank you received: 28
  • Hikashop Multisite
2 years 7 months ago #341112

-- url of the page with the problem -- : tango-express.ch/
-- Joomla version -- : 4.1.2
-- PHP version -- : 8.0

Hi,
I want to put an image for the cart module. I put my cart module in the top right of the site, and want a drop-down cart.
How can i put an image for this module ?

Regards,
Frédéric


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
2 years 7 months ago #341113

Hi,

In the settings of the HikaShop cart module, in the Joomla modules manager, you have a "mini cart" option that you can se to dropdown for that.
Once that's done, you'll have a small text like "X items for Y CHF" displayed by the cart, and when you hover / click on that text you'll get a dropdown of the products in the cart with a bit more details.
That small text is displayed using a translation:
X_ITEMS_FOR_X="%s items for %s"
And there are other translations:
X_ITEM_FOR_X="%s item for %s"
TOTAL_IN_CART_X="Total : %s"
CART_EMPTY="The cart is empty"

So you can then use translation overrides to add an image:
www.hikashop.com/download/languages.html#modify
For example:

X_ITEMS_FOR_X="<img src='https://mywebsite.com/my_cart_icon.jpg' class='cart_icon'/>%s items for %s"

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

  • Posts: 361
  • Thank you received: 28
  • Hikashop Multisite
2 years 7 months ago #341114

OK thank you.
I will try that and come back if problem.


“Si tu ne travaille pas pour tes rêves, quelqu'un t'embauchera pour travailler pour les siens" - Steeve Jobs
"La sagesse, c’est d’avoir des rêves suffisamment grands pour ne pas les perdre de vue quand on les poursuit." - Oscar Wilde

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

Time to create page: 0.067 seconds
Powered by Kunena Forum