Configuration
A Validation Control text box appears in the cart for each line item configured with either Force or Optional validation. Force validation items require the user to populate the text box with a valid pass/membership number and click the Check Validation button next to the text box in order to be able to finalize the sale in the pages. If points or uses are needed for the validation and the pass does not have enough points or uses remaining, the user is not allowed to finalize the sale and the message displayed informs them of this.
Items configured with Optional validation allow the user to complete the sale with or without the entry of a valid pass/membership number. If a pass number is entered in this case and the user clicks the Check Validation button, the pass is checked to see if there is a valid special to apply to the item or if upon processing of the sale a use or a point needs to be subtracted. If there is a valid special to apply to the item, the price displayed in the cart reflects the discounted price immediately after the user clicks the Check Validation button. If points or uses are needed for the validation and the pass does not have enough points or uses remaining, the user is not allowed to finalize the sale and the message displayed informs them of this.
The following site config keys along with comments have been added to support informational text that displays during the validation process as well as setting the prefix to use for pass/membership numbers:
• Set ValidationRequiredText to text to display in the cart when hovering over the red X image for line items that require validation
Site Admin Panel > Validation Settings > ValidationRequiredText value = You must enter a valid Membership number in order to purchase this item
• Set ValidationOKText to text to display in the cart when hovering over the green checkmark image when validation passes for a line item.
Site Admin Panel > Validation Settings > ValidationOKText value = Membership Validation Completed
• Set ValidationEditText to text to display in the cart when hovering over the pencil/notepad imageafter a line item has been successfully validated.
Site Admin Panel > Validation Settings > ValidationEditText value = Edit Membership Validation Information
• Set ValidationFailedText to text to display in the cart when validation fails for a line item.
Site Admin Panel > Validation Settings > ValidationFailedText value = Unsuccessful - please try another pass number
• Set ValidationPrefix to the prefix associated with gst_pass.pass_no in your access control preferences.
Site Admin Panel > Validation Settings > ValidationPrefix value = P