Add pickup point on orders checkout ?

destpat
New Member
4 0 1

Hello,

 

I have a iframe with map and pickup point, when my user select the one, i want add my pickup point id to the current order. Then i want get this pickup point id from the request /admin/api/#{api_version}/orders/#{order_id}.json.

Is this possible?

Replies 2 (2)
Josh
Shopify Staff
1131 82 203

Hi @destpat , 

 

This sounds like a perfect use-case for metafields. It wouldn't be available at /orders/#[id}.json, but would be available at /orders/#[id}/metafields.json instead.

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

michaelholland
New Member
2 0 0

Is it still the case that MetaFields are the only way to store & Retrieve this Pickup information on an Order?  I was hoping that I could determine which Orders are Pickup vs Shipping by reading the "requires_shipping" field in the JSON at either the Order or Line level - but when we mark an Order for Pickup in Store, this field still appears as "true" which must mean that's not the intended usage.  Also, I was hoping the "origin_location" would reflect the Store that is selected for the customer to Pickup their Order, but that doesn't appear to be the case either.  Can anyone explain how (using either REST or GraphQL API) we can identify which Orders are Pickup vs Ship, and from where they should be Picked Up?  Thanks in advance for your assistance.