I have multiple Woocommerce product pages which would only allow users who had answered a question correctly to view. Each product page would have their own question and should be treated separately.
Questions would be multiple choice, users must be logged in and only get one chance to answer.
I've been using Gravity forms to set up a multiple choice question which only allows one attempt per user. After that i need to check on the product page if users answered correctly.
- User answers question
- If correct a 'correct answer' value is applied to user
- User visits product page, which checks for 'correct answer' value
- If 'correct answer' value exists, allow access, if not show error message.