Home Forums WoodMart support forum Woocommerce order sync issue

Woocommerce order sync issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #378193

    mayankg507
    Participant

    Hello Team, i know it may be off subject to woodmart but i think i can approach you, since it will be useless for me to buy premium woodmart and fail to sell anything it is demotivating and how will i do the affiliate.

    lets come to problem

    We have woocommere orders Dashboard – here we get new order with status as : Processing

    order get sync to ship rocket (shipping partner)

    once we process orders from shiprocket from process to ready to ship

    the new order status updated in woocommerce dashboard should be complete, but it is coming pending and getting cancelled after somtime, i’m not able to figure out why.

    i contacted shiprocket so they send this :

    please inform seller that when we push status “Ready to Ship” to woocommerce the shipment status changes to “pending” in woocommerce panel. this is because seller has not mapped status “Ready to Ship” in woocommerce backend that is why default status that is “pending” getting updated in woocommerce. please ask seller to check with his developer and resolve this. Attached request and response for the reference

    they also send a code which i’m not able to resolve

    Requst :
    curl –location –request PUT ‘https://brandhindu.com/wc-api/v3/orders/4176?consumer_key=ck_1c361f5930f719528e72609a5373140d9204fe6a&consumer_secret=cs_471ced4fcdae271f3940ce570beef816a91ed29d’ \
    –header ‘Content-Type: application/json’ \
    –data-raw ‘{
    “order”: {
    “status”: “Ready to Ship”,
    “awb”: “”,
    “track_url”: “”
    }
    }’

    Response:
    {
    “order”: {
    “id”: 4176,
    “order_number”: “4176”,
    “order_key”: “wc_order_wvcceGfj63bA7”,
    “created_at”: “2022-04-19T02:47:00Z”,
    “updated_at”: “2022-05-11T06:29:30Z”,
    “completed_at”: “2022-05-07T16:41:35Z”,
    “status”: “pending”,
    “currency”: “INR”,
    “total”: “998.00”,
    “subtotal”: “921.88”,
    “total_line_items_quantity”: 2,
    “total_tax”: “76.12”,
    “total_shipping”: “0.00”,
    “cart_tax”: “76.12”,
    “shipping_tax”: “0.00”,
    “total_discount”: “0.00”,
    “shipping_methods”: “Free shipping”,
    “payment_details”: {
    “method_id”: “cod”,
    “method_title”: “Cash on delivery”,
    “paid”: true
    },
    “billing_address”: {
    “first_name”: “Rishabh”,
    “last_name”: “Dwivedi”,
    “company”: “”,
    “address_1”: “tripathi aspatal ganga road”,
    “address_2”: “csa hospital”,
    “city”: “Shamshabad”,
    “state”: “UP”,
    “postcode”: “209503”,
    “country”: “IN”,
    “email”: “[email protected]”,
    “phone”: “9170088472”
    },
    “shipping_address”: {
    “first_name”: “Rishabh”,
    “last_name”: “Dwivedi”,
    “company”: “”,
    “address_1”: “tripathi aspatal ganga road”,
    “address_2”: “csa hospital”,
    “city”: “Shamshabad”,
    “state”: “UP”,
    “postcode”: “209503”,
    “country”: “IN”
    },
    “note”: “”,
    “customer_ip”: “47.15.15.201”,
    “customer_user_agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36”,
    “customer_id”: 43,
    “view_order_url”: “https://brandhindu.com/my-account/view-order/4176/”,
    “line_items”: [
    {
    “id”: 974,
    “subtotal”: “499.00”,
    “subtotal_tax”: “0.00”,
    “total”: “499.00”,
    “total_tax”: “0.00”,
    “price”: “499.00”,
    “quantity”: 1,
    “tax_class”: “”,
    “name”: “Aatmadipo bhava Round neck Unisex t-shirt – Black, M”,
    “product_id”: 1218,
    “sku”: “”,
    “meta”: [
    {
    “key”: “pa_color”,
    “value”: “black”,
    “label”: “Color”
    },
    {
    “key”: “pa_size”,
    “value”: “m”,
    “label”: “Size”
    }
    ]
    },
    {
    “id”: 975,
    “subtotal”: “422.88”,
    “subtotal_tax”: “76.12”,
    “total”: “422.88”,
    “total_tax”: “76.12”,
    “price”: “422.88”,
    “quantity”: 1,
    “tax_class”: “”,
    “name”: “Sanatani Print T-shirt – hindu orange”,
    “product_id”: 2754,
    “sku”: “”,
    “meta”: [
    {
    “key”: “pa_color”,
    “value”: “orange”,
    “label”: “Color”
    }
    ]
    }
    ],
    “shipping_lines”: [
    {
    “id”: 976,
    “method_id”: “free_shipping”,
    “method_title”: “Free shipping”,
    “total”: “0.00”
    }
    ],
    “tax_lines”: [
    {
    “id”: 977,
    “rate_id”: 2,
    “code”: “IN-GST-1”,
    “title”: “GST”,
    “total”: “76.12”,
    “compound”: false
    }
    ],
    “fee_lines”: [],
    “coupon_lines”: [],
    “customer”: {
    “id”: 43,
    “created_at”: “2021-12-06T13:01:20Z”,
    “last_update”: “2022-05-08T07:02:03Z”,
    “email”: “[email protected]”,
    “first_name”: “BRAND”,
    “last_name”: “HINDU”,
    “username”: “brandhindu”,
    “role”: “administrator”,
    “last_order_id”: 4177,
    “last_order_date”: “2022-04-19T02:51:44Z”,
    “orders_count”: 2,
    “total_spent”: “998.00”,
    “avatar_url”: “https://secure.gravatar.com/avatar/1b13b05ea2641c915dc076fafcf9a4f0?s=96&d=mm&r=g”,
    “billing_address”: {
    “first_name”: “Rishabh”,
    “last_name”: “Dwivedi”,
    “company”: “”,
    “address_1”: “tripathi aspatal ganga road”,
    “address_2”: “csa hospital”,
    “city”: “Shamshabad”,
    “state”: “UP”,
    “postcode”: “209503”,
    “country”: “IN”,
    “email”: “[email protected]”,
    “phone”: “91700884”
    },
    “shipping_address”: {
    “first_name”: “Rishabh”,
    “last_name”: “Dwivedi”,
    “company”: “”,
    “address_1”: “tripathi aspatal ganga road”,
    “address_2”: “csa hospital”,
    “city”: “Shamshabad”,
    “state”: “UP”,
    “postcode”: “209503”,
    “country”: “IN”
    }
    }
    }
    ==========

    they said it need to be done at backend at woocommerce by i dont see any option, i think it need to be done with some code.

    i want the order status as completed once moved to shipping.

    thanks if you could give your precious time dear friend.

    TIA – mayank gupta

    #378241

    Hello,

    Unfortunately, no WordPress theme influences the order processor has the option to change the functionalty.

    Best Rgards

Viewing 2 posts - 1 through 2 (of 2 total)