OCAPI get geolocation #452
Replies: 5 comments
-
it should be not hide on the hook |
Beta Was this translation helpful? Give feedback.
-
@aventurinisalesforce so how do you access the request variable then? in storefront controllers, it's passed into the function, the hook only passes the referenced object(dw.ocapi.shop.order.afterPOST passes in order, for example) |
Beta Was this translation helpful? Give feedback.
-
request object will be available directly like request.locale or request.clientId. |
Beta Was this translation helpful? Give feedback.
-
Makes sense, thanks! |
Beta Was this translation helpful? Give feedback.
-
https://github.com/SalesforceCommerceCloud/sfcc-hooks-collection/pull/25/files |
Beta Was this translation helpful? Give feedback.
-
Is there a way to get the request (I need geolocation specifically) in OCAPI hooks?
Beta Was this translation helpful? Give feedback.
All reactions