Custom script

The module allows you to load a custom script in each product page.
Additionally, you can load a global script which applies to all products with the module enabled.
Path of the global script:

Path of the custom script:

You can use these scripts to extend the module functionality in an easy way.
Each field gets a function that is called when the field value is changed by the customer, here’s an example:
Supposing the field name is “width”, the function name is then “dp_width”.
The “dp_” prefix stands for “Dynamic Product” and aims to prevent any conflict with existing functions.

Hidden fields will have a null value (0 for numeric fields, an empty string for text and date fields)

Was this article helpful to you? Yes No