{{ :logo-apl.png?nolink |}} ===== Purchase of Quiz Attempts ===== ===== Moodle Shop: Production Handlers ===== ==== Presentation ==== This handler is linked to the usernumattempts quiz access rule, based on an allowed attempts count driven by the userquiz_limits block. **Function:** Allows buying additional attempts on a quiz (target test) whose attempts are limited per user. This test must implement the [[:quizaccess:usernumattempts|User attempts]] access restriction in order to provide an effective limitation. ==== Pre-payment parameters ==== * **customersupport:** shortname of the customer support course ==== Post-payment parameters (execution) ==== === Back-office parameters === One of the three, as you choose: * **quizcmid:** quiz module instance id displayed in the URL (mod/quiz/view.php?id=) * **quizid:** number of the quiz instance known essentially in the database, and in some urls (q=) * **quizidnum:** course module identification number in the test settings if entered or generated. The parameter can accept a "comma list" form if the attempts must be added to several quiz instances. === Availability conditions === A product activating this handler is only available for purchase if: * The user is logged in * The user is enrolled in the course (tested on the first identifier of the list, so it is advised that the list of quiz references concerns the same course) === Front-office parameters === none. ==== Notes ==== - Warning, only works with instances of the Quiz module associated with a quiz access control rule based on user attempts. ---- [[local:shop:setup:std_addquizattempts|See the implementation sheet]] - [[:local:shop:structure|Back to the structure summary]] - [[:local:shop|Back to the component summary Local Shop (Boutique)]] - [[:start|Back to the catalog]]