INSTRUCTIONAL VIDEO:
![]()
Use Case
Removing an entire Brand within the client’s catalog and rendering it “Out of Stock” so it won’t show up in their ads.
Example:
Bed, Bath and Beyond client calls urgently wants to remove Keurig products off their ads because of the breaking news that there’s a pending lawsuit of Keurig machines exploding.
Solution is to apply the following Max code to Availability Field in Product Catalog:
Copy and Paste this Code |
{{#if (icontains brand "Enter Brand Name Here")}}out of stock{{else}}{{"availability"}}{{/if}}
|
Instructions to ADD Max Rule Yourself: Copy (control C or command C) the code above Go to Product Catalog → Map section → Availability field Click on Edit Field (pencil icon) Paste the code you entered REPLACE “Brand Name Here” and carefully replace and write the brand name you are trying to remove. Make sure it is between the quotes Leave the rest of the code alone and don’t edit anything else! Click APPLY
|
NOTES:Input this code only on the Availability field in the Product Catalog brand / google_product_category - input the field(s) that you want to match "Nike"/"Adidas"/ "Flip Flops" input the text you want to match for each field Text is case insensitive so "Nike"/"nike", "Adidas"/"adidas" and "Flip Flops"/"flip flops" will be matched icontains does not accept lists so if you want to mark multiple brand/google_product_category/etc as out of stock a new (icontains <field> <text>) must be added for each additional brand or category
out of stock- any matching IDs will have out of stock input into the availability field. Change out of stock if you want to insert different text.
|
Comments
0 comments
Please sign in to leave a comment.