Author Topic: Required registration items virtuemart for nations  (Read 336 times)

pellegrinoL

  • Beginner
  • *
  • Posts: 42
Required registration items virtuemart for nations
« on: March 13, 2020, 16:25:55 pm »
Hi,
I was wondering if there is the possibility to have optional required registration items virtuemart for nations, because there are some fields that I need for Italian Customers that are not necessary for the other countries.

Best Regards

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Required registration items virtuemart for nations
« Reply #1 on: March 13, 2020, 16:50:46 pm »
you can hide/show fields (and switch off and on validation) by JS

see http://forum.virtuemart.net/index.php?topic=143259.msg510779#msg510779

obviously the 'if' would be country id in your case

GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pellegrinoL

  • Beginner
  • *
  • Posts: 42
Re: Required registration items virtuemart for nations
« Reply #2 on: March 13, 2020, 18:16:00 pm »
Thanks for the quick answer,

I am not able to do any change in JS unfortunately.

pellegrinoL

  • Beginner
  • *
  • Posts: 42
Re: Required registration items virtuemart for nations
« Reply #3 on: March 16, 2020, 16:28:11 pm »
Are you able to create a custom plugin for this?

you can hide/show fields (and switch off and on validation) by JS

see http://forum.virtuemart.net/index.php?topic=143259.msg510779#msg510779

obviously the 'if' would be country id in your case

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Required registration items virtuemart for nations
« Reply #4 on: March 16, 2020, 16:57:27 pm »
It doesn't need a plugin ... just adding the necessary JS to the template over rides works fine..

PM me if you want me to do this
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation