• Resolved alortiz3

    (@alortiz3)


    alortiz3

    I have the following code in my functions.php file:

    // Custom Fields 2 to ShipStation
    
    add_filter( 'woocommerce_shipstation_export_custom_field_2', 'shipstation_custom_field_2' );
    
    function shipstation_custom_field_2() {
    	return '_order_item_wh'; // Warehouse ID
    }
    //Custom Field 3
    add_filter( 'woocommerce_shipstation_export_custom_field_3', 'shipstation_custom_field_3' );
    
    function shipstation_custom_field_3() {
    	return 'po_number'; // Customer PO Number
    }
    //End Custom Fields to ShipStation

    However, only custom field 3 is importing. I also duplicated custom 3 into custom 2 and still nothing shows. Here’s an example output:

    <CustomField1>
    <![CDATA[ ]]>
    </CustomField1>
    <CustomField2>
    <![CDATA[ ]]>
    </CustomField2>
    <CustomField3>
    <![CDATA[ 102822A ]]>
    </CustomField3>`

    Any assistance will be greatly apprecaited!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Saif

    (@babylon1999)

    Hello @alortiz3,

    Thank you for reaching out.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I recommend you work with a WooExpert to achieve this.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your reply. I was able to solve this issue. It is interesting to notice that the field suggested by this plugin does not work, so I had to use “order_location” instead of “_order_item_wh”. The field “_order_item_wh” works fine for a Rest API but does not work for ShipStation. I believe the issue is “item location vs order location”. If I’m not mistaken ShipStation uses “order location” rather than item location. In any case, it works now and seems to be working very well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Fields Not Importing’ is closed to new replies.