show option collect on delivery even if the adress is not in the accepted zones

  • Posts: 9
  • Thank you received: 0
8 years 1 month ago #252657

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.20
-- Browser(s) name and version -- : chrome 53.0.2785.143 (64-bit)

Dear support, we have set up the collect on delivery plugin for only one of the shipping zones available, now we would like to show this option available even if the user hasnt yet set up and addres so they will see the option, then if the address is out of the zone then hidde the collect on deivery option or even better show message that is not available in the zone address selected

we understand that the behaviour is logical but the user cant see available method until has entered and address

many thanks
mixes

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #252660

Hello mixes,

To restrict a payment method based on your customer billing address using the "Zone" option will do the job.

However, if you want a "zone restricted" payment method to be displayed when your customer didn't entered an address, you'll have to directly edit the code of the payment plugin, and correctly handle the case when your customer have selected the Collect on delivery and have also entered an address outside of the "payment restricted zone".

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

  • Posts: 9
  • Thank you received: 0
8 years 1 month ago #252726

Thanks for your fast response
I supposed we have to edit the code but, could you point me to a solution or a similar case in the forums as we couldn’t find anything related
many thanks in advance

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

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #252776

Hello,

I supposed we have to edit the code but, could you point me to a solution or a similar case in the forums as we couldn’t find anything related


I didn't find any similar case in the forum but the solution will probably be to directly edit the code of the "onPaymentDisplay" function of the "administrator\components\com_hikashop\helpers\helper.php" file.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum