Troubleshoot product selector JavaScript plugin implementation
Learn how to troubleshoot issues with the Product Selector JavaScript plugin by following these steps.
If you encounter issues when using the Product Selector JavaScript plugin, try the following steps to facilitate troubleshooting:
-
Check and ensure that you upload files in the .JS format. If you upload a file in the .JS format, the MIME type is
text/javascript. If you upload a text file, the MIME type istext/plain, which can result in plugin errors. - If you find that the plugin is not working, copy one of the preceding sample codes to a file, then upload the file and test if it is working.
-
To see all possible errors, enter the console of your browser and add logs to verify whether the passed-in values are correct. For example, enter
console.log(currentZCharge.DISCOUNT + " charge discount").