UPDATE:
Thanks to this post on Stackoverflow, I decided to override the woocommerce/templates/single-product.php in my child theme and enqueue my scripts before the wp_header() call. Which is a working solution for targeting for my goal of enqueueing scripts by targeting the specific template file, allowing me to avoid the unnecessary if-statement. Does anyone know a better method if so I will be open to suggestions otherwise I will just mark this as resolved.
-
This reply was modified 2 years, 6 months ago by Abdi Issak.