kevinburgess
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Adding license code to Woocommerce payloadMy code above did not work – in the end I paid a developer to write the php snippet for it. It was more complex than originally thought, as the keys are encrypted in the database so there needs to be a decrypt action as part of it all.
Forum: Plugins
In reply to: [License Manager for WooCommerce] Adding license code to Woocommerce payloadOk – I’m a complete novice, but is this anywhere near getting the license into the payload?
`function my_custom_wc_api_order_response( $order_data, $order ) {
$license = get_post_meta($order_id , ‘license_key’ , true );
$order_data[‘license_key’] = $license;
return $order_data;
}add_filter( ‘woocommerce_api_order_response’, ‘my_custom_wc_api_order_response’, 10, 3 );
Hi, any update on this? It’s a client site that needs attention. Thanks.
Update – my debug.log shows this:
[25-Sep-2018 18:42:21 Europe/London] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (18/07/2016) at position 0 (1): Unexpected character in /home/sites/5b/1/14f219b517/public_html/wp-content/plugins/ultimate-member/includes/core/class-date-time.php:170
Stack trace:
#0 /home/sites/5b/1/14f219b517/public_html/wp-content/plugins/ultimate-member/includes/core/class-date-time.php(170): DateTime->__construct(’18/07/2016′)
#1 /home/sites/5b/1/14f219b517/public_html/wp-content/plugins/ultimate-member/includes/core/um-filters-fields.php(210): um\core\Date_Time->format(’18/07/2016′, ‘j M Y’)
#2 /home/sites/5b/1/14f219b517/public_html/wp-includes/class-wp-hook.php(286): um_profile_field_filter_hook__date(’18/07/2016′, Array)
#3 /home/sites/5b/1/14f219b517/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(’18/07/2016′, Array)
#4 /home/sites/5b/1/14f219b517/public_html/wp-content/plugins/ultimate-member/includes/um-short-functions.php(698): apply_filters(‘um_profile_fiel…’, ’18/07/2016′, Array)
#5 /home/sites/5b/1/14 in /home/sites/5b/1/14f219b517/public_html/wp-content/plugins/ultimate-member/includes/core/class-date-time.php on line 170Hi there, I have version 2.0.25 on my site. I’m using the Avada theme. All settings checked. It works on my test server, but will not load correctly in the live environment.
An error pops up saying that the page didn’t load due to a 500 error, but it’s not explaining why.