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

Require Custom Fields

Started by Matthew Vance, August 29, 2016, 18:26:13 PM

Previous topic - Next topic

Matthew Vance

I want the store to refuse to allow the customer to "Add to cart" if the custom field has not been changed.

http://backofthedragon.com/index.php/shop-our-store/apparel/series-3-gray-back-of-the-dragon-t-shirt-short-sleeve-detail

^ Is a link to the store.

I thought this would be an option in virtuemart, but I haven't been able to find it. If anyone has a way of doing this, it would be appreciated.

Thanks

GJC Web Design

http://forum.virtuemart.net/index.php?topic=79799.0

what sort of customs are these?

parent no stock in multi varients then requires a choice
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

Matthew Vance

I am using Joomla 3.5.1 - PHP 5.6.23 - VirtueMart 3.0.16

The custom field is a string, set as a cart attribute, and cart input. Set to the addtocart layout position and is not a list.

So your saying if I set up a parent of "Select a size" Set its stock to "none" and then set all my sizes as child variants it will require it to select a child variant as the parent is out of stock?

Thanks for your time

GJC Web Design

the idea of no parent stock only works with multi variants and parent/child items

I personally don't know if it is the intention that standard cart  attributes should/can be made compulsory
I get round this e.g. here:  https://www.soesterpapierdiscounter.nl/pbm/hygienedisposables/haarnetjes-wokkel-non-woven-in-diverse-kleuren-1-detail

with a javascript solution in the template..
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

balai

Check the Custom Fields For All plugin.
It has that feature with some others that will make your life easier.

Also you can combine it along with the Stockable Custom Fields for parent/child products generation