Hello
please, open section >Setup Fields>Products and drag necessary fields to left column.
I’m sorry for late reply.
Alex
Thread Starter
LukeB
(@lukeblackmore)
Thanks, now the fields are showing in the product section.
BUT… whilst the snippet is running/active – the export fails (says ‘the site is experiencing technical difficulties’).
When I deactivate the snippet – the export runs without error – but the booking start date column is then, of course, blank.
I presume there may be a fault in my snippet…but I’ve no idea where to start with that.
Any help appreciated.
Luke
-
This reply was modified 6 years, 3 months ago by
LukeB.
-
This reply was modified 6 years, 3 months ago by
LukeB.
h Luke
Could you visit >WooCommerce>Status, tab Logs and review last “fatal-error-xx” file ?
thanks, Alex
Thread Starter
LukeB
(@lukeblackmore)
Pasted below
2020-03-05T08:04:37+00:00 CRITICAL Uncaught Error: Call to undefined function wcs_get_subscriptions_for_order() in /var/sites/b/booking.alley-catz.com/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()’d code:21
Stack trace:
#0 /var/sites/b/booking.alley-catz.com/public_html/wp-includes/class-wp-hook.php(286): WOE_Subscription_Fields_mod->get_subscription_details(‘728’)
#1 /var/sites/b/booking.alley-catz.com/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘728’, Array)
#2 /var/sites/b/booking.alley-catz.com/public_html/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-engine.php(451): apply_filters(‘woe_order_expor…’, ‘728’)
#3 /var/sites/b/booking.alley-catz.com/public_html/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-export.php(19): WC_Order_Export_Engine::build_file(Array, ‘preview’, ‘browser’, 0, ‘5’)
#4 /var/sites/b/booking.alley-catz.com/public_html/wp-content/plugins/woo-order-export-lite/classes/clas in /var/sites/b/booking.alley-catz.com/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()’d code on line 21
-
This reply was modified 6 years, 3 months ago by
LukeB.
Hello
Code for “Subscriptions” plugin uses function “wcs_get_subscriptions_for_order”.
Please, remove it and use only
https://algolplus.com/plugins/snippets-plugins/#bookings
thanks, Alex
Thread Starter
LukeB
(@lukeblackmore)
I just knew I’d done something daft…thank you so much for your help.
All resolved and working well thanks
Thread Starter
LukeB
(@lukeblackmore)
The only thing I’d add is that all of the booking # persons fields are exporting as blank, which is odd…it’s not a massive issue, but if there’s a quick fix I’d love to include that too.
hi Luke
Probably, this code is outdated a bit.
Could you upload fresh “WooCommerce Bookings” plugin to helpdesk ?
thanks, Alex
Thread Starter
LukeB
(@lukeblackmore)
Sure…will have to be next week when we’re less busy with weekend bookings.
I’ll get back to you then.
Luke
We’ll celebrate Mother’s Day on Monday, so don’t hurry 🙂