Articles in this section

Comply with Shopify allocation_method field changes (2020-07)

Shopify has announced the removal of the discount allocation_method value one , starting with version 2020-07.

If you have a Shopify import configured for the API Discounts: Price Rule – such as Create a price rule, Update a price rule, or Create or Update a price rule – follow the steps below to ensure that you’re not using any deprecated values for the allocation_method field. If so, switch to the alternative value suggested by Shopify.

  1. Open your Shopify flow, and locate the import to the API Discounts: Price Rule.

  2. Click the Import mapping (mapping.svg) button to view the field mappings.

  3. Check the value configured for price_rule.allocation_method.

360086929232-shopify-allocation_method-1.png

allocation_method hardcoded, set to one

If it is a hardcoded value set to one , change the value from one to across.

allocation_method mapped to source

If allocation_method is a mapped field, then you can either change the value of the field coming from the source application or you can add a static lookup to change the incoming value from one to across , as described below. To change the mapping method, click the Options (settings_gear.svg) button next to the field mapping.

allocation_method set by a static lookup

In the Edit mapping panel, set the Field mapping type to Lookup and the Options to Static: Value to value. Set the fields as shown below, most importantly updating the Import field value from one to across:

360086935572-shopify-allocation_method-2.png

allocation_method set by a dynamic lookup

If allocation_method is a Dynamic search lookup, make sure to check the response data. If you’re fetching the Shopify field allocation_method directly from the response, then you’re safe since Shopify now returns across (in the place of one).