Just a little update, i discovered that the guy which is in charge of the interface, used Avada to build the product page; in doing that the hook woocommerce_after_single_product is no longer available on the product page!!!
any suggestion on how overcome this (without modifying facebook-commerce-events-tracker.php to look for other hooks) before getting mad at him?
Hi there @popeating,
I’m glad to hear that you narrowed down the issue! However, I’d spare the person who built the product page in Avada 🙂 Instead, I’d recommend reaching out to Theme Fusion for some assistance.
The Theme Fusion support team can be reached at the following link:
https://theme-fusion.com/support/
I’m going to leave this thread open in case someone else from the community might be able to guide you in the right direction.
At the moment i “solved” this way while thinking for a permanent solution:
in facebook-commerce-events-tracker.php i modified this section
// ViewContent for individual products
add_action( 'woocommerce_after_add_to_cart_button', array( $this, 'inject_view_content_event' ) );
add_action( 'woocommerce_after_add_to_cart_button', array( $this, 'maybe_inject_search_event' ) );
changing the hook to something that is still present on the page (woocommerce_after_add_to_cart_button)
then i disabled the automatic plugin update, but since other admin can manually updated i run a seaerch/replace script everytime the hook upgrader_process_complete is triggered; it will work until no major changes, but i hope to find a final solution before then!
slash1andy
(@slash1andy)
Automattic Happiness Engineer
Hey again!
Thanks for sharing your solution, however temporary. Hopefully it helps other Avada users to work around this in the meantime while they fix this.