Comments on: [wcj_order_custom_field] https://booster.io/shortcodes/wcj_order_custom_field/ WordPress WooCommerce Plugin Fri, 10 May 2024 05:55:22 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: RokasJ https://booster.io/shortcodes/wcj_order_custom_field/#comment-83362 Sat, 06 Jun 2020 07:59:11 +0000 https://booster.io/?p=6240#comment-83362 In reply to Jeova.

Hi,

Unfortunately it’s currently not possible to do that yet.

Best regards,
Rokas – Support team

]]>
By: Matt https://booster.io/shortcodes/wcj_order_custom_field/#comment-83350 Fri, 05 Jun 2020 23:51:42 +0000 https://booster.io/?p=6240#comment-83350 Will this work for arrays within arrays?

Here is an example of a custom field from within one of my orders:

“shipping_lines”:[{“id”:64,”method_title”:”On-Farm Pickup”,”method_id”:”local_pickup_plus”,”instance_id”:”0″,”total”:”0.00″,”total_tax”:”0.00″,”taxes”:[],”meta_data”:[{“id”:677,”key”:”_pickup_appointment_start”,”value”:”1591279200″},{“id”:678,”key”:”_pickup_appointment_end”,”value”:”1591280100″},{“id”:679,”key”:”_pickup_location_id”,”value”:”783″},{“id”:680,”key”:”_pickup_location_address”,”value”:{“country”:”CA”,”state”:”ON”,”postcode”:”O0O0O0″,”city”:”London”,”address_1″:”7375 Example Road”,”address_2″:””}},{“id”:681,”key”:”_pickup_location_name”,”value”:”Millar Berry Farms”},{“id”:682,”key”:”_pickup_location_phone”,”value”:”1234567890″},{“id”:707,”key”:”_pickup_items”,”value”:[59,63]}]},{“id”:65,”method_title”:”On-Farm Pickup”,”method_id”:”local_pickup_plus”,”instance_id”:”0″,”total”:”0.00″,”total_tax”:”0.00″,”taxes”:[],”meta_data”:[{“id”:689,”key”:”_pickup_appointment_start”,”value”:”1591452000″},{“id”:690,”key”:”_pickup_appointment_end”,”value”:”1591452900″},{“id”:691,”key”:”_pickup_location_id”,”value”:”785″},{“id”:692,”key”:”_pickup_location_address”,”value”:{“country”:”CA”,”state”:”ON”,”postcode”:”O0O0O0″,”city”:”London”,”address_1″:”7375 Example Road”,”address_2″:””}},{“id”:693,”key”:”_pickup_location_name”,”value”:”Location – Greens Pickup”},{“id”:694,”key”:”_pickup_location_phone”,”value”:”1234567890″},{“id”:708,”key”:”_pickup_items”,”value”:[60,62]}]},{“id”:66,”method_title”:”On-Farm Pickup”,”method_id”:”local_pickup_plus”,”instance_id”:”0″,”total”:”0.00″,”total_tax”:”0.00″,”taxes”:[],”meta_data”:[{“id”:701,”key”:”_pickup_appointment_start”,”value”:”1591365600″},{“id”:702,”key”:”_pickup_appointment_end”,”value”:”1591366500″},{“id”:703,”key”:”_pickup_location_id”,”value”:”786″},{“id”:704,”key”:”_pickup_location_address”,”value”:{“country”:”CA”,”state”:”ON”,”postcode”:”O0O0O0″,”city”:”London”,”address_1″:”7375 Example Road”,”address_2″:””}},{“id”:705,”key”:”_pickup_location_name”,”value”:”Location – Baked Goods Pickup”},{“id”:706,”key”:”_pickup_location_phone”,”value”:”1234567890″},{“id”:709,”key”:”_pickup_items”,”value”:[61]}]}]

I would like to display _pickup_appointment_start value as a Date and Time. Is this possible?

]]>
By: Jeova https://booster.io/shortcodes/wcj_order_custom_field/#comment-83315 Fri, 05 Jun 2020 03:17:19 +0000 https://booster.io/?p=6240#comment-83315 Hi

I’m using this shorcode to display a custom field, but the field is a date, so I wish I could use the date_format arg, like other specific data shorcode.
Is there any way I can accomplish this result with custom field?

Thanks.

]]>
By: albertm https://booster.io/shortcodes/wcj_order_custom_field/#comment-64109 Wed, 04 Dec 2019 10:35:03 +0000 https://booster.io/?p=6240#comment-64109 HI, I activated the “cost of good” module and now I need to recall that field (cost and expeditions) in the order summary.
I use [wcj_order_custom_field] in the email custom, but I don’t understand what to insert as the name of the field to be called.
tips?

]]>
By: Booster Support Team https://booster.io/shortcodes/wcj_order_custom_field/#comment-23136 Wed, 16 May 2018 14:18:18 +0000 https://booster.io/?p=6240#comment-23136 In reply to Ibrahim Jaber.

Hi Ibrahim,

`[wcj_order_custom_field]` shortcode uses `get_post_custom()` function (https://codex.wordpress.org/Function_Reference/get_post_custom).

If you need meta, there is `[wcj_order_meta]` shortcode in Booster (https://booster.io/shortcodes/wcj_order_meta/).

Also you may want to check `[wcj_order_checkout_field]` shortcode (https://booster.io/shortcodes/wcj_order_checkout_field/).

Hope that helps.

Best regards,
Tom

]]>
By: Ibrahim Jaber https://booster.io/shortcodes/wcj_order_custom_field/#comment-23111 Wed, 16 May 2018 04:07:22 +0000 https://booster.io/?p=6240#comment-23111 Does this fields use the meta keys? or is it something else

]]>