Selecting shipment methods available based on some criterias for each customer

Started by smalldragoon, August 24, 2016, 10:52:37 AM

Previous topic - Next topic

smalldragoon

Hello,
I would like to be able to show to a customer shipment methods based on some profiling info from him ( basic sutpid exemple : it is a male, only normal , female : UPS is available as well )
I would like to be able to do the same as well for payment ( and potentially, have the shipment method selected as an input of decision of this )
Do you know how I can do this ?
Thanks

GJC Web Design

You need to code this into the function checkConditions($cart, $method, $cart_prices) of what ever plugins your working with

or show/hide methods in the cart by php or JS
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

smalldragoon

HI
ok, I'm using the standard plugin payement as it is for a demo
any specific suggestion ?

GJC Web Design

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

smalldragoon

mmm, thanx
but this function just checks if payment and shipment are defined right ? it doesn't decides which payment is existing ? so I can not add my code to select the one I want ( or not ) based on my criteria ?

GJC Web Design

you can check any conditions in function checkConditions()

look at some other plugins
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

smalldragoon

hello
sorry, I'm a very rookie on VM and joomla
could you give me an exemple ?
as exemple, I want to display a type of standard shipment if price is above 50 euros and the payment method is paypal ?
Thx a lot