Request for new hook before ‘gtm4wp_fire_additional_datalayer_pushes’
-
Hi, I’m working on a Woocommerce project and need to adjust product pricing in the datalayer. Some of our products are getting bundled with the help of the ‘Product Bundles for WooCommerce’ plugin. With product bundles we make of an invisible discount. The issue we are facing is that the combined price of the products is not the same as the checkout price.
The dataLayer now contains all the products of the budle, and the product bundle itself with a price of 0.00. A fix for this issue could be making a new filter available to enable us the edit the object which gets pushed to the datalayer. The filter should be triggered before or within the ‘gtm4wp_fire_additional_datalayer_pushes’ function. This will enable us to check the pricing and swapout the bundle prices.
- You must be logged in to reply to this topic.