News:

Looking for documentation? Take a look on our wiki

Main Menu

Disable payment AFTER choosing country

Started by bortolani, August 03, 2016, 10:19:33 AM

Previous topic - Next topic

bortolani

Hi,
VM standard behaviour is to enable payments and/or shipping methods after the user has logged in and selected a country.
In many cases (most, actually) it would make  sense to do the opposite, i.e. disable unavailable payment methods after getting shipping info.


Is there a way to force this behaviour instead of the default one?

Thanks,
Bruno

GJC Web Design

well it does more or less...  if u change your address to a non available country the payment method will disappear.. hard to see the difference in what your proposing?
If you want the client to know what payment methods are possible just make a small module or something
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bortolani

No, it does not work like you say... If you have a payment that is available just for some countries but not for all, it only appears after you fill in your address.
In practice it does not disappear if unavaible, but instead it appears if available.
In this way users cannot see that a payment method is available until they fill in the cart with their address.

As you said one may write that infomation somewhere in the site but it makes a difference to see it immediately as an option in the checkout page.
I'll try to dig the code and see if I can change the logic...

Bruno


GJC Web Design

QuoteIf you have a payment that is available just for some countries but not for all, it only appears after you fill in your address.

thats what I said

and if u subsequently change the address to a non available country then it disappears

look at the checkConditions() function of the payment plugs to adapt
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bortolani