News:

Support the VirtueMart project and become a member

Main Menu

ship to address

Started by gsstephens, October 20, 2014, 21:19:46 PM

Previous topic - Next topic

gsstephens

VM 2 2.6.8
Joomla 2.5
Rockettheme

www.coastal.bigmonstermarketing.com

I sell firearms.  when firearms are added to the cart i need my "Ship To" to be required.  In the US you CANNOT purchase a firearm and have it delivered to your home.  It can ONLY be delivered to an Authorized and Licensed Federal Firearms dealer.

So, when a firearm is added to the cart i need a rule that stipulates that the "Ship To" is required.

If anyone can assist me in this I'd appreciate it.

Thanks

GJC Web Design

Easiest would be some javascript that requires the ST fields to be filled
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

gsstephens

good idea. the script would be product based, correct?

GJC Web Design

you don't say if an ST address is required on every order...

normally you would trigger it by the submit - if ST field(s) not filled then show an error and not submit
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

gsstephens

Not every checkout will need "ST".

If a firearm is a added to the cart then the "ST" takes on a different role/meaning.  In order for a purchaser to receive their firearm then it must be shipped to an "FFL" Federal Firearms Licensed dealer.

So, the "ST" is the FFL's contact info and address.

GJC Web Design

then you will need a if statement  - if cart contains prod from (cat array of firearms)  then echo this JS validation
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

alatak

Hello
May be you can add a custom field that requires to enter a ST address for that product.
If someone buys a knife and a firearm, you can deliver the knife to the ST, and the firearm to the specific address given in the custom field.