eplanne
Forum Replies Created
-
Forum: Plugins
In reply to: [PW WooCommerce Gift Cards] Fatal error: Uncaught DivisionByZeroErrorNo one?
Hi @duracelltomi . Wow, thank you for the quick reply!
I have followed the guidelines from CookieBot and set up a Consent Initialization which fires before any other tag. However, the datalayer event gtm4wp.checkoutStepEEC is still the trigger for a EE Click Tracking Helper tag as per your guide, and since this event fires from the server earlier than the consent, it doesn’t work. Shall I change the trigger for the Click Tracking Helper?
This is the current order for the relevant datalayer events (in the same order you would see in GTM preview):
Window Loaded
cookie_consent_update
Message
cookie_consent_marketing
cookie_consent_statistics
cookie_consent_preferences
DOM Ready
gtm4wp.checkoutStepEEC
Container Loaded
Initialization
Consent InitializationHi @joeoak did you find a solution for this? I’m using CookieBot and experiencing the exact same problem, the events above are triggered by the plugin before the cookie consent events from CookieBot have been loaded, and since Analytics-tags need a ad_storage and analytics_storage consent before they can fire these two events never make it to Analytics.
Anyone that can support with this? Given the double down on proper cookie consent in order to run Google Ads in the near future, this is problematic.
Forum: Plugins
In reply to: [WooCommerce] Discount (set_price or add_fee) is reset in checkoutHi @johndcoy
Thank you for your reply. How would I do that in the best way? Is there any action I can use for this purpose that fires after the ajax call?
Forum: Plugins
In reply to: [WC Fields Factory] Display fields after variations before variation priceI believe there was an ‘ missing after <?php _e( ‘Single Product Variation, so the code would be:
<li><label><input type="radio" class="wcff-fields-location-radio" name="field_location_on_product" value="woocommerce_single_variation" <?php echo ( $fields_location == "woocommerce_single_variation" ) ? "checked" : ""; ?>/> <?php _e( 'Single Product Variation', 'wc-fields-factory' ); ?></label></li>After this, the fields were displayed in the right section, but it was still displayed after the variation price, but after manually moving the variation price to a lower priority with the following code it worked:
remove_action( 'woocommerce_single_variation', 'woocommerce_single_variation', 10 ); add_action( 'woocommerce_single_variation', 'woocommerce_single_variation', 15 );So now it works exactly as I wanted! Thank you very much for your support!
/ErikForum: Plugins
In reply to: [WC Fields Factory] Display fields after variations before variation price@sarkparanjothi
Unfortunately the site is locally hosted at the moment so I have no link to share.
There’s no errors in the console. The fields are showing, but I want to manually adjust the field location.In your plugin I can choose to show the fields Before Add To Cart Button, After Add To Cart Button, Before Add To Cart Form etc. But I want to add the fields here:
add_action( ‘woocommerce_single_variation’, ‘???’, 10 );
How can I do that? I should be able to remove_action your function and then use the add_action line above with the function to show it somewhere else, but I don’t know which function to call instead of ‘???’?
Thanks!