• Resolved marknjones

    (@marknjones)


    Hi.

    Just wondering if it’s possible for the additional custom checkout fields to be displayed within order details on the WooCommerce iOS app? I’ve added an “additional_card_message” field under the “Additional Fields” section, and while it displays correctly on the order confirmation email, it isn’t shown at all on the iOS app.

    If that’s not possible, or only with the Pro version of your plugin that’s fine, but if you could let me know it would be a great help!

    Many thanks

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

Viewing 1 replies (of 1 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    The fields in checkout field editor plugin are saved on WooCommerce order meta. You can add the below mentioned code on your child theme’s functions.php file for fetching the stored data by using rest API.

    /*
     * For latest WooCommerce Rest API
     * Add a referanse field to the Order API response.
    */ 
    function prefix_wc_rest_prepare_order_object( $response, $object, $request ) {
    	// Get the value
    	$referanse_meta_field = ( $value = get_post_meta($object->get_id(), '_billing_referanse', true) ) ? $value : '';
    
    	$response->data['referanse'] = $referanse_meta_field;
    
    	return $response;
    }
    add_filter( 'woocommerce_rest_prepare_shop_order_object', 'prefix_wc_rest_prepare_order_object', 10, 3 );

    Further, the WooCommerce iOS app uses the same rest API for retrieving the order details but the app will decide which datas needs to be retrieved.

    Currently, the WooCommerce iOS app only consider the default WooCommerce data.

    Since you want to display the custom checkout field datas on the WooCommerce app, we may need the help of the app developers. Currently we have raised a support thread on WooCommerce iOS app support forum. Once we get an update from them we can check this further. We also suggest you to raise a support thread to WooCommerce iOS app support form, which will be more helpful to achieve this.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Integration with WooCommerce iOS app’ is closed to new replies.