• Hi,

    i created some custom fields, that are accessible in the plugin using the dropdown “add fields”. If i add the fields to the export, it will export something like:

    s:32:”a:1:{i:20;a:1:{i:57;s:3:”Mr.”;}}”;

    The value the user enters into this field is just “Mr.”, so i only need to export this value. Any idea?

    Best regards
    Sascha

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi Sascha

    Please, visit this page to understand naming for order/item hooks
    https://algolplus.com/plugins/documentation-order-export-woocommerce/

    you should use <b>unserialize</b> to get array.
    thanks, Alex

    Thread Starter SaschaLoeffler

    (@saschaloeffler)

    Hi Alex,

    thanks for your fast reply. As i just have a basic understanding of coding, can you please explain me further.. I have several fields, e.g. plain_orders__attendee_salutation

    how can i get them unserialized in the export? What do i need to add to the settings page?

    Actually for this field it looks like:

    {
    “segment”: “misc”,
    “key”: “plain_orders__attendee_salutation”,
    “label”: “_attendee_salutation”,
    “format”: “string”,
    “colname”: “Attendee Salutation”
    },

    Plugin Author algol.plus

    (@algolplus)

    i created some custom fields,

    how did you do it ?
    what plugin do you use ?

    Thread Starter SaschaLoeffler

    (@saschaloeffler)

    Hi Alex,

    we created the fields using the functions.php and it looks like this:

    woocommerce_form_field( "attendee_salutation[$wbc_product_id][$variation_id]", array(
    	'type'          => 'select',
    	'class'         => array( 'my-field-class form-row-wide' ),
    	'required'      => $required_data,
    	'label'         => __( 'Salutation*' ),
    	'options'       => array(						
    		'Mr.'	=> __( 'Mr.', 'wps' ),
    		'Mrs.'	=> __( 'Mrs.', 'wps' ),
    		'Ms.'	=> __( 'Ms.', 'wps' ),
    		'Dr.' 	=> __( 'Dr.', 'wps' ),
    		'Prof.'	=> __( 'Prof.', 'wps' ),
    	)
     ),$checkout->get_value( "attendee_salutation[$wbc_product_id][$variation_id]" ));
    Plugin Author algol.plus

    (@algolplus)

    hi Sascha

    “plain_orders__attendee_salutation” won’t work , as you added this field for products ( not for order).

    You can try use this topic https://algolplus.freshdesk.com/support/solutions/articles/25000018287-add-calculated-field-for-product-

    But it will be faster just submit whole code(functions.php) to helpdesk. I’ll apply your code, review created fields and provide solution.

    thanks, Alex

    Hello,

    Sorry, i know it is not the right place for my question, but i d’ont know where to ask. I receive notification each time there is a question about your plugin. You helped me with my question so i don’t need help anaymore, i would like unsubscribe but i can’t find how. In the email it is written : “Login and visit the topic to reply to the topic or unsubscribe from these emails” but now that i am logged i can’t see where i should change this setting.

    Thx a lot !

    Plugin Author algol.plus

    (@algolplus)

    hi @raph7433

    Please, visit https://www.ads-software.com/support/plugin/woo-order-export-lite/ and click “Unsubscribe from this plugin” at top of the page

    Done ! thx a lot and congrats again for your great work and great support !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Export Custom Order Field’ is closed to new replies.