Title: How to include Javascript inside the Quick View box?
Last modified: August 30, 2016

---

# How to include Javascript inside the Quick View box?

 *  [Fernando](https://wordpress.org/support/users/poumian/)
 * (@poumian)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/how-to-include-javascript-inside-the-quick-view-box/)
 * Hi,
 * I’m trying to implement this plugin in the Nielsen Theme (also by YITH). My regular
   Single Product page make use of a couple of custom Javascript files that help
   the user Calculate the Price based on the Quantity selected (among other functions),
   however, these custom Javascript functions don’t seem to work once I open the
   Quick View box.
 * I went through the code of this plugin and I found the Action hook called “yith_quick_view_custom_style_scripts”,
   so, I tried to enqueue these custom JS files using that Hook, but that didn’t
   work either.
 * Is there any way I can implement Javascript inside these Quick View boxes?
 * Any help regarding this topic will be greatly appreciated.
 * [https://wordpress.org/plugins/yith-woocommerce-quick-view/](https://wordpress.org/plugins/yith-woocommerce-quick-view/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/how-to-include-javascript-inside-the-quick-view-box/#post-6731656)
 * Hi,
    Using yith_quick_view_custom_style_scripts action is the right way to add
   js in quick view. But you need to make sure that this custom javascripts don’t
   use element that are not in quick view, or maybe you need to reinit some event
   after quick view loading using this trigger qv_loader_stop at document.
 * Regards 🙂

Viewing 1 replies (of 1 total)

The topic ‘How to include Javascript inside the Quick View box?’ is closed to new
replies.

 * ![](https://ps.w.org/yith-woocommerce-quick-view/assets/icon-128x128.gif?rev=
   3193930)
 * [YITH WooCommerce Quick View](https://wordpress.org/plugins/yith-woocommerce-quick-view/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-quick-view/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-quick-view/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-quick-view/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-quick-view/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-quick-view/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/how-to-include-javascript-inside-the-quick-view-box/#post-6731656)
 * Status: not resolved