How To Allow Users to Select WatuPRO User Group on Ultimate Member’s Registration Form

Ultimate Member is one of the popular free WordPress plugins for custom registration pages. So we added some code to allow integrating with their forms.

This integration requires version of WatuPRO not older than 5.8.0.1

To make this work you need to create a drop-down selector field in your Ultimate Member form. Then follow these two steps:

  1. The meta_key of the field should be watupro_groups
  2. The Choices callback value should be exactly watupro_get_user_groups

That’s it, save your field and you are all set in Ultimate member.

3. Then in WatuPRO -> User Groups page make sure the following option is checked and save:

Now when someone registers through your Ultimate Member forms they will be able to choose user group from WatuPRO.

Flashcard Questions in WatuPRO

A new WatuPRO feature from version 5.7.6 allows you to create flashcard questions.

What is it?

In essence flashcard questions are multiple-choice questions presented as flashcards. Each flashcard has two sides that are supposed to match. But since this is a quiz you will probably want to make some wrong flashcards so the quiz taker should show which are correct and which are wrong. If a flashcard’s back side correctly matches the front side, the respondent should leave the card flipped on the back side. If the match is not correct, the respondent should click again to unflip the flashcard.

You can see an example of such quiz at the end of this post.

How to set it up?

Flashcards are just multiple-choices questions where each answer is a flashcard – either correct or a wrong one. So you first need to create a multiple choices question:

Then select that the question will use flashcards:

Note that you can’t use the checkbox groups feature together with flashcards so one of the options will always be automatically unchecked.

Then for each answer of the question you enter the two sides of the flashcard, separated by the chosen flashcard separator. By default it is = (in which case obviously the front or back cannot contain = sign). You can change the separator in the flashcard design settings page.

Here’s an example of a question that matches countries to cities:

Some flashcards match correctly while others do not. This is exactly the same logic of the usual “Multiple-choices / checkbox” questions.

Flashcard Design Settings

Next to the “This uses flashcards” checkbox you will see a link to the flashcard design settings page. It allows you to specify how the flashcards look and what separator you will use when entering both sides of the flashcard:

An Example

Here’s an example quiz to see how this works:

1. Countries / Cities
Italy
Rome
France
London
India
Mumbai
USA
Miami
Canada
Istanbul
2. Countries / Continents
Australia
Europe
Chile
South America
Russia
Africa
Uganda
Africa
Norway
Europe
Iceland
America

 

[WatuPRO Intelligence Module] Troubleshooting Paid Quizzes

When you set up a price for a quiz it automatically becomes a paid quiz and cannot be accessed before a payment is processed. Once the user pays for a quiz they will immediately gain access to the quiz.

Do not cache pages with paid quizzes especially when they accept non-logged in users. When the page is cached, the session or cookie parameters cannot be set properly. This is the first thing you have to check. Make sure the pages with paid quizzes are excluded from caching.

What to do if this does not happen:

Check for Payment Errors

Go to WatuPRO Settings page, scroll to the Payment Options section and check fot the “View payment errors log” link under the Other payment instructions box:

You’ll see what caused the error there. Very often errors happen when you use Paypal IPN. Most users should not use Paypal IPN but use Paypal PDF mode instead.

If your site is not on SSL you can not use Paypal IPN.

WooCommerce Bridge Users

If you are selling quizzes using our WooCommerce Bridge, check the following:

  1. Your WooCommerce product must be marked as Virtual AND Downloadable.
  2. The custom attribute must have name “watupro” (all small letters) and its value must be the ID of the quiz you are selling. Double check you have entered the correct ID.
  3. Check the order status of the WooCommerce order. It must be Completed. Any other order status will not mark the quiz as paid.

If you have endured all above is right, continue with the “No payment errors” section below.

No Payment Errors?

If there are no payment errors you may want to double check if the specific user has paid for the quiz. Go to WatuPRO Quizzes -> View Results page. On the paid quizzes you will see a “View payments” link within the top links. There you can check for that specific payment and even add it manually if needed.

If the payment is there and the user still cannot access the quiz, the problem is usually caused by a caching plugin. You should not cache the dynamic quiz pages, ever. Disable whatever caching system you are using on these pages and things will work fine.

If the problem is neither of these feel free to contact us. Make sure you provide us URL and login so we can check your problem.

I Can Access the Quiz but Getting Payment Buttons on Submit

This typically happens on some paid quiz for non-logged in users only and it is because the server is losing the session cookie during Ajax requests. Ideally you should have your server admin or hosting support fix this so $_SESSION is available in admin-ajax.php.

If for some reason this can’t happen you can switch off Ajax for the quiz from WatuPRO Settings page.

I Can Access the Quiz When I am Not Supposed To

In some cases you expect the quiz to ask you for charge but instead you are allowed to take the quiz. Possible causes:

  1. Obviously, double check for a payment made. Maybe you forgot? Go to WatuPRO Quizzes -> View Results page. On the paid quizzes you will see a “View payments” link within the top links.
  2. If your user role has rights to manage quizzes you will be able to access paid quizzes always.
  3. Maybe you have not purchased the quiz individually, but have gotten a bundle that gives access to it? Check this on Quiz Bundles page (under the WatuPRO menu)
  4. It’s also possible that you have given access to this quiz to users from specific WatuPRO groups or BuddyPress groups (if you have the BuddyPress bridge)