POS-specific Shopify Function logic

The new retailLocation field in the Function APIs allows you to tailor your logic based on whether a checkout is happening in a retail environment. This allows you to create different behaviors depending on the sales channel or even the specific retail store location. For example, you can implement location-specific discounts only for in-store purchases, creating differentiated experiences between online and retail customers.


This is a companion discussion topic for the original entry at https://shopify.dev/changelog/pos-specific-shopify-function-logic