Home › Forums › WoodMart support forum › Products variations does not work: "Please, choose product options by visiting" › Reply To: Products variations does not work: "Please, choose product options by visiting"
ammarket
Hi…Thanks for your answer.
I already deactivated all plugins, tested it with default WP themes, etc.
I also created a staging area to work on it…I am performing some tests on that staging area (Test/Clone Website)
What I need to do is:
I need to find which javascript file is loading the product variations on the woodmart theme (on the product page for every single product)…So, When I find it, I need to exclude it from “DELAY JAVASCRIPT EXECUTION” on the wp rocket panel.
I am looking at the Network tab (On Chrome Dev Tools) trying to find all javascript files Woodmart theme loads when a product is loaded…
This is what I have so far:
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/revslider/public/assets/js/
setREVStartSize
rev_slider_
revslider_
window.RS_MODULES
/woodmart/js/scripts/global/helpers.min.js
/woodmart/js/scripts/wc/productImages.min.js
/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=5.9.0
/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=5.9.0
/wp-content/plugins/woocommerce-multilingual/res/js/cart_widget.min.js?ver=4.12.1
/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.9.0
/wp-content/themes/woodmart/js/scripts/wc/actionAfterAddToCart.min.js?ver=6.1.4
/wp-content/themes/woodmart/js/scripts/wc/swatchesVariations.min.js?ver=6.1.4
/wp-content/themes/woodmart/js/scripts/wc/addToCartAllTypes.min.js?ver=6.1.4
/wp-content/themes/woodmart/js/scripts/wc/woocommerceQuantity.min.js?ver=6.1.4
/wp-content/themes/woodmart/js/scripts/wc/cartWidget.min.js?ver=6.1.4
As you can see, there are some javascript files related to “add to cart”, “cart widget”, “swatches variations”. These are woodmart related files.
What I am asking for is some help from your developers in order to find which Javascript file should I exclude from “DELAY JAVASCRIPT EXECUTION” on the wp rocket in order to avoid getting this annoying message:
“Please, choose product options by visiting PRODUCT_NAME”
Any suggestions or help from your part? I really appreciate your assistance on that issue.
Thank you…
https://docs.wp-rocket.me/article/1560-delay-javascript-execution-compatibility-exclusions#woodmart