Payment method currency restriction

  • Posts: 228
  • Thank you received: 8
7 years 7 months ago #265952

-- url of the page with the problem -- : aradtextile.com
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6

Hi,

We've added a new payment method using a plugin that we've developed. The website uses ZAR and USD. This plugin was tested on other websites using Hikashop and worked great. For some reason, the plugin of this website, even after publishing and setting up, will not show on the checkout page. When accessing the payment methods and selecting "New" I can see the payment method but the currencies are disabled for it (Please see attached screen shot - it's the last one on the list).

I could not find any way to enable the currencies for this payment plugin.

Please advice,

Guy.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 7 months ago #265958

Hi,

In the code of the plugin, you have the line:
var $accepted_currencies = array('USD','ZAR');
which defines the list of currencies for which this payment method will display.
If you remove that line, it will display for all the currencies.
If you don't see the payment method on your listing of payment methods, either it's because of some other restriction, or because the code of the currencies on that website have been modified to something else than USD and ZAR.

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

  • Posts: 228
  • Thank you received: 8
7 years 7 months ago #266042

Thank you very much for your quick replay.
I'm checking it right now :)

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

Time to create page: 0.056 seconds
Powered by Kunena Forum