Hi
I’m currently building my website with Virtue Premium with Woocommerce on.
Also, I installed the “Booking plug-in” in order to make booking based on the calendar available.
This is the booking plugin
*Login to see link
ISSUE:
I am trying to hide the variation price from the product page, and I could do this with WordPress default theme such as Twenty Fifteen but not with my VIRTUE Premium.
Current booking looks like this
Screen 01
But I need to hide the price from “Woocommerce price” just like this
Screen 02
The reason why this “hiding option” is working on Wordlresss default theme (ex; Twenty Fifteen), but not with VIRTUE is because the VIRTUE is not allowing WooCommerce HOOK to execute. Thie “hiding function” is triggered by using below removing HOOK: woocommerce_single_variation to hide the WooCommerce price if the Booking setting is enabled for the product.
I found the code snippet from line number 344 to 347 of the custom-woocommerce.php of Virtue Premium is not allowing to remove the WooCommerce price from the Booking plugin.
The HOOK which I am using to remove the WooCommerce price is executing first and after that, the same HOOK is executing from the Theme to display the WooCommerce price. Due to this, the WooCommerce price is not getting hide from our Booking plugin.
I tried commenting the code which is on line number 344 to 347 of the custom-woocommerce.php of Virtue Premium and then checked and it is working fine and allowing to remove the WooCommerce price from our Booking plugin. But I am not sure that doing this will affect other things or not, so please help me out !