February 4, 20197 yr Hi, I hope this is in the correct place and someone could advise. I currently design and run our local motorclub website. My issue is that as a motor club using online entry we collate a lot of none standard "Woocommerce" items such as Car Model, engine capacity etc that needs to be collected at the time of the customer purchasing an entry to our event. See below. To facilitate that I use Woo Checkout Field Editor Pro to add none standard fields. However, I also want to use Woocommerce to "sell" other items which will not need the extra fields. Infact, just name address, email address would be fine. I don't seem to be able to configure checkout to not force the customer to enter the extra fields that aren't required when simply buying a book about the club. Is there a way around this ? Thanks Mark Edited February 4, 20197 yr by mcmrc Left my details in the screenshot !
February 5, 20197 yr Welcome to the forums. A solution would be to check if the product that requires the car data fields is in the cart. If it is then show the fields, if not don't show them. You'd have to do this programatically via some PHP, I'm no WP expert but it's straightforward in other CMS's I use.
February 6, 20197 yr 12 hours ago, BlueDreamer said: A solution would be to check if the product that requires the car data fields is in the cart. If it is then show the fields, if not don't show them. Was about to say the same thing. A simple column in the product table should suffice, e.g. extra_req, maybe use an int set to 0 as default and then mark products which need the extra details with a 1. Then if any products in the cart which have a extra_req = 1 you can include the additional information form.
Create an account or sign in to comment