Including the module
The module is namedws-product-reminder-1.7.0.js and requires the jQuery library.
The form fields
The module must find these four classes in your form. Without them, it doesn’t recognize the input rows.Checking and deleting
checkOnChange saves the customer a click but triggers a server request for each row. For forms with many rows, it’s worth sticking with the bulk check via checkButtonClass instead.Segmented product number
Many product ranges have product numbers made up of several blocks, for example123-456-XL. The module can split the input field into three fields for this.
All parameters in this group only take effect as long as
numberIntoElements is set to true. If you turn off the segmentation, a single input field with the class from productNumberClass remains.
There’s no parameter for the maximum length of the third block. It takes whatever follows the second separator.In the previous documentation, the second and third blocks both have
input_number_part1 as their default value. This is a transcription error, corrected here to input_number_part2 and input_number_part3.Advertising medium code
As of version 1.6.0, the module can separate an advertising medium code from the same text input as the product number.The cookie
cookieActionParam was added in version 1.7.0 because multiple OTPX parameters with the same name on one page could lead to errors. If you use more than one direct order form on a page, give each one its own parameter name.Scroll position
After checking, the page reloads. These three parameters make sure the customer doesn’t lose their place.scrollPosition and reloadInputName are only needed as long as scrollOnReload is enabled.
