Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
892 Lượt xem

Hello,

we get an order via shopify.


when i send a delivery out for this order, i get a tracking link/reference back from sendcloud.


Is there a way to automaticly update the  the field "tracking reference" under shipping information with the trackling link?


we need to have this send back to shopify as well.


thanks in advance

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Job:

I was studying this section too,  but didn't find any mechanism helping to automatically write the tracking reference.


You can see the field 'carrier_tracking_ref ' is isolated,with no method to assign value to it.  It need be input manually and just acting as an evaluation factor for generating the external tracking url(i.e. the field 'carrier_tracking_url').


At present my idea or suggestion is:


1,  interconnect with the carrier provider,  get their querying API,  use the python lib 'request' to fetch the delivery details. So far as I know, most carrier company has ready-made API for tracking service,  it's just simply http request.


2, overwrite the method 'write' to update the tracking reference or even the complete delivery details into the module 'stock.picking'.


Hope the above helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
1375
2
thg 5 24
6631
1
thg 10 22
3681
4
thg 10 21
6896
1
thg 1 20
6290