Cart icon

  • Posts: 5
  • Thank you received: 0
7 years 7 months ago #267491

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : mozila 52.0.2

Hello guys.... please i love this hikashop and really want to use it for my site... but i have a little problem.... i need the cart to be represented by an icon and not just a write up.... how do i change that from my code because it seems there's no option for that from the backend.... can i get the correct line of code to change it to an icon please...... thanks in advance

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #267518

Hi,

There is no option because it actually doesn't need any code modification to do that.
Supposing you have the text "%s items for %s" in your cart module, you can simply use a translation override in order to change that text to the HTML tag of an image :
www.hikashop.com/download/languages.html#modify

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

  • Posts: 5
  • Thank you received: 0
7 years 7 months ago #267580

Hello Nicolas....
i have located the language En- GB...... i tried to change to image with <img src and added the located to the img and saved... on my front end it showed a space created to input image.... so please advice..... thanks so much....

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267581

Hello,

You can't use double quotes in translations ; it will break the translation file and Joomla won't be able to load it correctly.
You have to replace them with simple quotes.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 5
  • Thank you received: 0
7 years 7 months ago #267647

hello can you please show me an example?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #267649

Hi,

As Jerome said, you should simply use simple quotes instead of double quotes in your HTML:
CART_EMPTY="<img src='/my/image/path.png'/>"

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

  • Posts: 5
  • Thank you received: 0
7 years 7 months ago #267978

Yes it did work thanks alot... but now i'm having one more problem.... when i add a product to cart and click on the cart icon..... it only shows me what i have in my cart instead of linking me to a place where i can check out the products in my cart..... any help please..

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267984

Hello,

I'm sorry but it's difficult to understand your message ; specially without any context, screenshot or context.
It looks like you created a link to the customer cart and you want in fact a link to the checkout.
Because we don't know anything about that "cart icon" and how you create it ; please understand that it is currently impossible for us to guide you because we don't know what you currently have.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum