News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Products only for 18 Years Old

Started by marvays, November 12, 2013, 21:12:19 PM

Previous topic - Next topic

marvays

Good day. I shop at some goods that can be sold only to persons older than 18 years. I set the field for the articles, which selects from a list that he is more than 18 years. But I can somehow set the field was mandatory, otherwise it will not order? Currently shop your order even if you select any option from the list. How do I set that was ordered goods only when you select "yes"?

link: http://www.lukysipy.sk/kuse/pistolova-kusa-kobra

thx

GJC Web Design

I guess the only way would be javascript to detect the state of the radio button and disable the add to cart if +18 not checked
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

marvays

OK. This is not a normal part of the VM settings? I must search for nay plugin?

GJC Web Design

not that I know of .. would be highly unlikely some one would write a plugin for something so specific

it requires some js code in your product detail templare
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

PRO


PRO

I changed your thread title so maybe you get more responses.

In English "elderly" is the oldest generation


GJC Web Design

but you only have the custom field (I assume it's a custom field?) on the products that need it?
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

marvays

Quote from: GJC Web Design on November 13, 2013, 13:52:00 PM
but you only have the custom field (I assume it's a custom field?) on the products that need it?

yes

GJC Web Design

then as I suggested - some JS in the details template to detect if the correct radio is checked - if not disable the add to cart
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

marvays

Quote from: GJC Web Design on November 13, 2013, 13:55:02 PM
then as I suggested - some JS in the details template to detect if the correct radio is checked - if not disable the add to cart

thx. will be search for it :)