Sphinxxxx
Forum Replies Created
-
Hm.. The backups started working again today. Possibly related to us disabling an old plugin which handled WooCommerce payments (“WooCommerce Klarna Gateway”).
Does that make sense? What would it take for a separate plugin to interfere with BackWPup?
It doesn’t look like it’s being cached though. Our hosting provider claims it isn’t, and if I browse to
/wp-cron.php
, thedate
response header is the date and time right now?date: Mon, 27 May 2019 18:39:11 GMT
As far as I can see: No (there are no new entries in the “Logs” or “Backups” lists).
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Klarna CheckoutThanks, and sorry for not reporting back sooner. You are correct, I needed to use a couple of Klarna hooks to make this work. The process is described here (Swedish): https://krokedil.se/lagg-till-en-checkbox-att-prenumerera-pa-nyhetsbrev-klarna-checkout-kassan/
The code (goes in
functions.php
):add_filter( 'kco_create_order', 'my_add_newsletter_signup' ); add_filter( 'kco_update_order', 'my_add_newsletter_signup' ); function my_add_newsletter_signup( $create ) { $create['options']['additional_checkbox']['text'] = 'Subscribe to our newsletter'; $create['options']['additional_checkbox']['checked'] = false; $create['options']['additional_checkbox']['required'] = false; return $create; } add_action( 'klarna_before_kco_confirmation', 'my_add_kco_order_data', 10, 2 ); function my_add_kco_order_data($order_id, $klarna_order ) { // $klarna_order is the returned object from Klarna if( $klarna_order['merchant_requested']['additional_checkbox'] ) { update_post_meta( $order_id, 'ss_wc_mailchimp_opt_in', 'yes' ); } }
Thanks, but I think you misunderstand; I do have all variations in the catalog, and I need the specific variant ID to be submitted, which it wasn’t.
However, your second point lead me to the answer:
We have the
Use Facebook for WooCommerce extension content_id logic
option checked, so the “simple products” option wasn’t visible. I changed it toPixelYourSite content_id logic
and then *un*checked the “simple products” option, and then changed back toUse Facebook for WooCommerce extension content_id logic
...And now it works. But that looks like a bug, right? In
Use Facebook for WooCommerce extension content_id logic
mode, the “simple products” checkmark should probably be ignored in the event handling from the Product page?