Penny Scaffold

Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Woocommerce address field in CSV #1322315
    Penny Scaffold
    Participant

    Hi Andras,

    Thank you so much to you and your colleague for going over and above with this one – I managed to pull a load of extra columns using https://docs.woocommerce.com/wc-apidocs/class-WC_Abstract_Order.html based on the info you’ve given me.

    You’ve been awesome, thank you!

    Penny

    in reply to: Woocommerce address field in CSV #1321191
    Penny Scaffold
    Participant

    Hi,

    I cannot thank you enough, that worked perfectly getting the user ID! I am now struggling to get the WC billing address and info, which is the bit I really need.

    I’ve used the suggestion offered here:

    Woocommerce info in CSV export?

    However the CSV is then full of the following:
    <b>Notice</b>: billing_first_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require_once(‘wp-admin/admin.php’)
    <b>Notice</b>: billing_last_name was called incorrectly. Order properties should not be accessed directly. Backtrace: require_once(‘wp-admin/admin.php’)
    <b>Notice</b>: billing_address_1 was called incorrectly. Order properties should not be accessed directly. Backtrace: require_once(‘wp-admin/admin.php’)

    etc. which stems from

    $firstname = utf8_decode($order->billing_first_name);
    $lastname = utf8_decode($order->billing_last_name);
    $address = utf8_decode($order->billing_address_1) . ‘ / ‘ . $order->billing_postcode . ‘ / ‘ . utf8_decode($order->billing_city);

    I am guessing perhaps an update to WooCommerce or Tickets Plus since the article was written means we need to call billing_first_name etc. differently in order for this to work? I’d really very much appreciate any help – it is so close but I am at a loss at how to fix this!

    Thank you hugely,

    Penny

    in reply to: Questions for primary ticket holder only #1321141
    Penny Scaffold
    Participant

    No problem at all, I thought I should check! Thanks so much for getting back to me.

    Best wishes,

    Penny

    in reply to: Woocommerce address field in CSV #1321140
    Penny Scaffold
    Participant

    Hi,

    I’m afraid this still isn’t working. I’ve actioned the following to be sure
    – the entire function
    – in a fresh WordPress install
    – on different hosting with a fresh theme
    – with only the absolute minimum plugins required and all up to date with the latest version
    – php version 5.6.31

    and am still getting the same error:
    Parse error: syntax error, unexpected ‘add_filter’ (T_STRING)

    for this line:
    add_filter( $filter_name, ‘tribe_export_custom_add_columns’, 100 );

    However I’ve tried adapting the function and regardless of how it is adapted it still continues to return errors.

    Unfortunately without this ability we won’t be able to proceed with using this plugin as it is critical for our CRM that we download the billing details with the tickets in the CSV. But I’m sure this is an implementation issue as others have managed this successfully!

    – I’m assuming this function should be placed in the functions.php file?
    – Would there be any conflict with this function and the latest versions of Event Tickets, Event Tickets Plus or WooCommerce that I am using?

    Many thanks for your help,

    Penny

Viewing 4 posts - 16 through 19 (of 19 total)