• Resolved thrifty13

    (@thrifty13)


    I sync via a feed plugin instead (necessary for my products due to attributes) but I can’t figure out how to get orders to sync
    I have productID as the main id in my feed..
    I had to write a script to even acknowledge my orders (which I did by doing the following)

    TOKEN=$(sudo -u bitnami -i -- wp eval 'echo facebook_for_woocommerce()->get_connection_handler()->get_page_access_token();')
    
    for i in $(curl -s -X GET -G -d "state=CREATED" -d "access_token=$TOKEN" https://graph.facebook.com/<MYSTOREIDHERE>/commerce_orders  | jq -r '.data | map(.id)| join(" ")')
    do
    fborder=$i
    wooorder=$(sudo -u bitnami -i -- wp wc shop_order create --user=<myusernamehere> --customer_note="facebook order $fborder" --transaction_id="$fborder" --status=pending --customer_id=0 --shipping={"excerpt":"facebook order $fborder"} --porcelain)
    UUID=$(cat /proc/sys/kernel/random/uuid)
    curl -X POST -d "idempotency_key=$UUID" -d "merchant_order_reference=$wooorder" -d "access_token=$TOKEN" https://graph.facebook.com/$fborder/acknowledge_order 
    <trimmed extra stuff I have in my script, such as getting shipping info and product info into the woo order>
    done
    

    but I currently have to manually update the tracking # on each order, and it’s fairly tiresome to do at our volume, and cancellations are a bugger as facebook sees the integration IN PLACE..

    I’m hoping you can give me some direction on how to overcome this, and force order sync to happen via the plugin without enabling product sync, even if I need to write some custom hooks to update my products in a certain way, or update something internally to get around this..

    Additional note: I checkout on Facebook, which is a second reason I need this help, as it doesn’t appear the plugin lets me do that natively.

    Direction, not coding support, is what I’m looking for – I’m fairly technical to overcome whatever hurdles may be there, but a kick in the right direction would be welcome.
    Thanks

    • This topic was modified 3 years, 3 months ago by thrifty13.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thrifty13

    (@thrifty13)

    note.. marketplace orders ARE working, so long as I run the script above, and manually add tracking # back to facebook store orders

    Hello there @thrifty13,

    What you’re looking to accomplish is not currently possible in the extension out of the box, and instead would require a custom code solution

    Our support staff, including myself, are not developers who are able to help with these changes. As support representatives, we can only offer support for the default features and functionality of our extensions as outlined in our Support Policy

    At this point, if you would like this functionality or design changed for your site, you have three options:

    1. Make the feature request on our [Ideas Board](https://ideas.woocommerce.com/forums/133476-woocommerce) for your extension and add your vote(s) to it. The more popular an idea becomes, the more of a priority it is for our developers to review.
    2. If you want to code your own solution, check out our WooCommerce developer resources
    3. Contact a developer. https://woocommerce.com/customizations/

    Thank you for your understanding, hopefully this helps point you in the right direction!

    I will leave this thread open to see if someone from the open-source community can provide more information.

    Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I sync via a feed plugin instead (necessary for my prods) but orders wont sync’ is closed to new replies.