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 mappingEdit mappings ) button to view the field mappings.
  3. Check the value configured for price_rule.allocation_method
  1. If it is set to each or across, then no further action is needed. You are all set!

    Otherwise, change the mapping depending on the type: 

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 (Edit mappings) 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:

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).

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.