Customise the cart module
4 years 5 months ago #341112
by thefbi
“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
Customise the cart module was created by thefbi
-- 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
-- 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.
4 years 5 months ago #341113
by nicolas
Replied by nicolas on topic Customise the cart module
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:
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:
Code:
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.
4 years 5 months ago #341114
by thefbi
“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
Replied by thefbi on topic Customise the cart module
OK thank you.
I will try that and come back if problem.
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.173 seconds