Cart Module Designer add icon to mini cart but when cart is empty just text

  • Posts: 1
  • Thank you received: 0
4 years 9 months ago #320680

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.1.14
-- Browser(s) name and version -- : Safai Version 13.1.1,Chrome Version 83.0.4103.97
-- Error-message(debug-mod must be tuned on) -- : No error, just display option missing.

Hi,
Just purchased Cart Module Designer to avoid myself tones of reading and research, as I am not a very code savvy, meaning my experience with php is less than beginner and HTLM and CSS are okay but not a pro levels.

The issue I have is that the cart shows no icon for the EMPTY cart only text, I want the icon to remain active when the cart is empty instead of just saying "The Cart is empty" this causes a visual design defect to my site.

How can I accomplish this ? please be especific when explaining as I may not get the whole idea.

My site is being built in a localhost and it is not live yet. but here are two images of cart EMPTY vs Items in Cart.



Now the perfect scenario for me would be that when the cart is empty the cart icon stays and the quantity is set to "0" of to be follow by "Empty"
Any help is greatly appreciated.
THanks
Luis

Attachments:

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 9 months ago #320711

Hi,

You can use a translation override to change that text in order to have your icon and "0":
www.hikashop.com/download/languages.html#modify
For example, you can add the override:

CART_EMPTY="<span class='hikashop_small_cart_total_title fa-layers fa-fw shopping-cart'><i class='fas fa-shopping-cart'></i></span><span class='hikashop_cart_quantity'>0</span>"
That's the HTML used by the cart design plugin.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum