Change the path of the payment and shippin icons?

  • Posts: 107
  • Thank you received: 1
6 years 1 month ago #80611

hi there,

Currently the path of the payment and shipping icons are under media/com_hikashop/..

How can I change the path to images/paymenticons for example?

Thank you very much. :)

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

  • Posts: 13201
  • Thank you received: 2316
  • MODERATOR
6 years 1 month ago #80639

Hi,

You can change it by editing the view "checkout / payment" (HikaShop > Display > Views) and change the path of the line:

<img src="<?php echo HIKASHOP_IMAGES .'payment/'. $this->images_payment[$image];?>" alt=""/>

Do the same thing for the shipping view.

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

  • Posts: 107
  • Thank you received: 1
6 years 1 month ago #81320

Hi there,

I wonder where "HIKASHOP_IMAGES" is being defined?

It looks like I need to change the setting of "HIKASHOP_IMAGES".

Thank you very much. :)

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

  • Posts: 13201
  • Thank you received: 2316
  • MODERATOR
6 years 1 month ago #81378

Hi,

To change the path of "HIKASHOP_IMAGES", you can do that in the file "administrator/components/com_hikashop/helpers/helper.php" and search the line:

define('HIKASHOP_IMAGES',JURI::base(true).'/media/'.HIKASHOP_COMPONENT.'/images/');

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

  • Posts: 26
  • Thank you received: 0
5 years 1 month ago #133458

Hi,
I want to add some of my own icon to that list, but I didn't find out how to do that :(

Tom

Attachments:

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

  • Posts: 13201
  • Thank you received: 2316
  • MODERATOR
5 years 1 month ago #133483

Hi,

The images are in the folder "media\com_hikashop\images\payment" so you just have to add your own images here.

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

  • Posts: 31
  • Thank you received: 0
  • Hikashop Business
1 month 3 weeks ago #301044

i have a question to this:
when i change the icons, is this also save on updates?
as sample: /media/com_hikashop/images/payment/PayPal.jpg
when not how can i make this save for updates, are there any override folder what i can use.

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

  • Posts: 64484
  • Thank you received: 9313
  • MODERATOR
1 month 3 weeks ago #301046

Hi,

If you add new icons in the folder /media/com_hikashop/images/payment/ and select them in your payment methods, you won't loose them when you update your HikaShop.

Now if you do the modification mentioned in www.hikashop.com/forum/4-how-to/76468-ch...pin-icons.html#81378 you will loose that modification when you update.

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

Time to create page: 0.104 seconds
Powered by Kunena Forum