Not getting it to work (WooCommerce Bookings)
-
Hey guys!
Sorry to bother you ??
Thans for the great plugin, it’s really handy, expecially because I’m using Bookings, soI can’t use Woocommerce native Hold Stock (booking product has no stock).
So I have managed to set the hook correctly for my custom gateway (multibanco_ifthen_for_woocommerce), set it for 24 hours (also tried 1 day), and it’s not working property:
function woa_custom_gateways_hook( $gateways ) { $gateways[] = 'multibanco_ifthen_for_woocommerce'; $gateways[] = 'mbway_ifthen_for_woocommerce'; return $gateways; } add_filter( 'woo_cao_gateways', 'woa_custom_gateways_hook', 10, 1 );
I used Crontrol Plugin to force the cron to execute, it runs, but i still have orders > 24h ??
I’ve runned your query straight in MySQL (with proper changes), and it returns the correct out of time ID’s:
SELECT DISTINCT posts.ID FROM $wpdb->posts as posts INNER JOIN $wpdb->postmeta as meta ON posts.ID = meta.post_id WHERE posts.post_type = 'shop_order' AND posts.post_status = 'wc-on-hold' AND posts.post_date < %s AND meta.meta_key = '_payment_method' AND meta.meta_value = %s
I’ve also tried to change wc-on-hold to ‘wc-pending’, but it also does not work ??
Any clues what might be wrong?
Thanks a lot!
JPFigueiraThe page I need help with: [log in to see the link]
- The topic ‘Not getting it to work (WooCommerce Bookings)’ is closed to new replies.