How to disable the payment method when choosing shipment cash on delivery?

Started by sylwekb, November 03, 2015, 14:28:58 PM

Previous topic - Next topic

sylwekb

Joomla! 3.4.5, Virtuemart 3.0.10

How to disable the payment method when choosing shipment cash on delivery?

How to disable the choice of payment method cash on delivery shipping?


Milbo

Interesting problem. Usually you select a shipment and then as payment "cash on delivery". But I got your point, not any of your shipments provide cash on delivery. So I think the correct method would be that a Cash on Delivery is only shown, when a certain shipment is selected. Maybe,... but that is not written, yet.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sylwekb

Would it be possible to disable all payment when you choose shipping cash on delivery? This function is needed. In other stores such PrestaShop is it possible.

AH

Milbo noted that this was not part of the core code -

The answer is therefore,  no you cannot currently show/disable a payment method based on the shipping method chosen.

And just in case :- It is also not possible to to show/disable a shipment method based on a payment method chosen.
Regards
A

Joomla 4.4.5
php 8.1

sylwekb

Thank You.

For now, this problem solved in a way that added a standard payment method cash on delivery and after you choose it does not show PAYPAL or bank transfer, bank card. But this is not the ideal solution.