• Resolved blenkhn

    (@blenkhn)


    Unfortunately you cannot see the problem on the front end of the site. We use myworks to sync the order with accounting and the format of the variable that is sent from the gazchap has a nested array.

    array (
      0 => 
      array (
      ),
    )

    This is not the standard now with woocommerce. Is there a way that you can fix it?

    It should look like

    array (
      0 => '',
    )

    if empty and

    array (
      0 => '123456ponumber',
    )

    if there is a value

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gazchap

    (@gazchap)

    The purchase order data submitted during checkout (which doesn’t just include a number, but can also include a full postal address etc.) is stored in an array in the meta table, yes.

    Changing this has backwards compatibility concerns, albeit ones that are straightforward to resolve.

    There may be filters available within your MyWorks sync plugin that allow you to modify the data as it goes through, though?

    Thread Starter blenkhn

    (@blenkhn)

    They are wanting you to update the plugin. I have just made an order with a po number and the results are this.

    array (
      0 => 
      array (
        'number' => '123456789',
      ),
    )

    It might be an idea to force people to update your plugin….

    Thread Starter blenkhn

    (@blenkhn)

    Where is the other information you are referring to?

    Plugin Author gazchap

    (@gazchap)

    Some users may have the options turned on to collect other information as well as the purchase order number, for example the name and address of the person that provided the purchase order. This information is stored in the array too, if given.

    The MyWorks Sync plugin doesn’t have any filters available which would allow this to be changed in your case, which is definitely something I’d suggest they add.

    Meantime, I can change my plugin to save the data as individual keys instead of an array, but I’m unable to provide an ETA on this as I’m on Christmas break now.

    Plugin Author gazchap

    (@gazchap)

    Hi blenkhn,

    I have just pushed a version 2.0 update live which, amongst a couple of other tweaks, now saves data in individual fields as well as the array so you should be able to do this now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘_gazchap_purchase_order’ is closed to new replies.