Title: JavaScript error on variations product
Last modified: July 31, 2024

---

# JavaScript error on variations product

 *  Resolved [smams](https://wordpress.org/support/users/smams/)
 * (@smams)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/javascript-error-on-variations-product/)
 * Hi. I have a custom plugin which slightly modifies the variation products so 
   that it provides additional options for the user. The plugin works well on regular
   products however, on variation products the customer receives a JS error and 
   therefore, is unable to add the product to cart. The error seems to be on line
   266 with “hasOwnProperty” and the message is “Cannot read properties of null”.
   Is there a solution to this issue or could perhaps I could exclude the product
   gallery slider on all variation products somehow?
 * Many thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Niloy – Codeixer](https://wordpress.org/support/users/im_niloy/)
 * (@im_niloy)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/javascript-error-on-variations-product/#post-17938302)
 * For now, you can comment `variationImage` call from wpgs.js file. which disable
   the js code loading for variation products. if you need any custom solution email
   us at [support@codeixer.com](https://wordpress.org/support/topic/javascript-error-on-variations-product/support@codeixer.com?output_format=md)

Viewing 1 replies (of 1 total)

The topic ‘JavaScript error on variations product’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-gallery-slider/assets/icon-256x256.gif?rev=3065029)
 * [Product Gallery Slider, Additional Variation Images for WooCommerce](https://wordpress.org/plugins/woo-product-gallery-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-gallery-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-gallery-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-gallery-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-gallery-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-gallery-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Niloy – Codeixer](https://wordpress.org/support/users/im_niloy/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/javascript-error-on-variations-product/#post-17938302)
 * Status: resolved