Adding Cart Icon Image on Mini Cart

  • Posts: 26
  • Thank you received: 2
  • Hikashop Business
8 years 9 months ago #210639

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.44
-- Browser(s) name and version -- : Chrome 44

Hi,

I want to add an "cart icon image" on mini cart permanently.

I have searched here and found this topic ( www.hikashop.com/forum/4-how-to/21694-di...ge-in-mini-cart.html ) helped me to achieve a part. This image is only displayed on empty cart, But when an item added to cart the image disappears.

I want to it displayed all the time. Also I want to display the "proceed to checkout' line bottom to the price along with this image. How can I do that? Please guide.


Regards,
Ganesamoorthy
Project Coordinator @ minminiweb.in

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

  • Posts: 12953
  • Thank you received: 1778
8 years 8 months ago #210652

Hello,

1. In your case you'll just have to reproduce what you did on the "ADD_TO_CART" translation key word.

2.

I want to it displayed all the time. Also I want to display the "proceed to checkout' line bottom to the price along with this image. How can I do that? Please guide.

Can you give me more information through some screenshots for example about what you exactly want to do ?

Thanks.

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

  • Posts: 26
  • Thank you received: 2
  • Hikashop Business
8 years 8 months ago #210741

Hi,

I have modified the code at "root/language/en-GB/en-GB.com_hikashop.ini" as below:

replace code at line no 32:

CART_EMPTY="The cart is empty"
to
CART_EMPTY="<img src='http://mydomain.com/images/cart.png' /><br/>The cart is empty"

the result is as the screenshot below. The cart image showing when the cart is empty.



But when an item is added, the image disappears. I want it remain even when the item is added.


Regards,
Ganesamoorthy
Project Coordinator @ minminiweb.in
Attachments:
The following user(s) said Thank You: monkette

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

  • Posts: 2143
  • Thank you received: 747
8 years 8 months ago #210742

To display the cart image also if one or more items are in the cart, you can modify two more text strings in a similar way.
The two strings are currently:

X_ITEM_FOR_X="%s item for %s"
X_ITEMS_FOR_X="%s items for %s"

However, you should not modify the original language file, because then these modifications will be lost without warning the next time you update HikaShop.
Instead you should use e.g. the language override feature built into HikaShop: hikashop.com/download/languages.html#modify


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Mohamed Thelji, minminiweb, monkette

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

  • Posts: 26
  • Thank you received: 2
  • Hikashop Business
8 years 8 months ago #211153

Yes. I have find it and made changes successfully! Thanks.


Regards,
Ganesamoorthy
Project Coordinator @ minminiweb.in

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

Time to create page: 0.098 seconds
Powered by Kunena Forum