Flow Automation: Categorizing Products Based on Conditions
You can use Flow Automation to automatically add products to specific collections based on defined conditions like product type, title, price, or tags. This helps streamline product organization and improve collection visibility on your storefront.
Field Description
Field |
Description |
| Collection ID | To find the ID, go to the collection details page. The number string after "/categories/" in the URL is the collection ID. |
How to Get a Collection ID
- From your SHOPLINE admin panel, go to Products > Collections, then select the collection you want to view.
- On the collection details page, check the URL in your browser. The number string after "/categories/" is the collection ID.
Supported Actions
You can use the following actions with this trigger. Click on each action name to view its setup details:
- [Product] Bulk Product Operation
- [Product] Product Status Updated
- [Product] Product Inventory Changed
- [Product] Product Created
Example Use Case
Here’s a real-world example of using the "Product is created" trigger — When a product is created and its type is "A", the system automatically adds the product to the corresponding collection. This helps streamline product classification and reduces manual work (available in product templates):
- Trigger: Product is created
- Condition: Product type is "A"
- Action: Add product to the "A Collection"
Available Templates
Here are ready-to-use templates that incorporate this trigger. Click a template to view or apply it:
-
Schedule tagged products to be added to a collection: Triggered at a scheduled time. Products with specific tags (e.g., [Holiday]) are automatically added to the designated collection.
Note: This template is particularly useful for seasonal collections or time-based promotions. -
Categorize products based on price range: When a product is created, the system automatically evaluates the sales prices of all SKUs. Based on the price range, the product is added to the appropriate collection. For example:
- If all SKUs are priced at or below USD 500, the product is added to the "Under 500 Collection".
- If all SKUs are priced between USD 501 and USD 1,000 (inclusive), the product is added to the "Under 1,000 Collection".
- If any SKU is priced above USD 1,000, the product is added to the "Over 1000 Collection".
-
Tag and categorize products based on title or SKU attributes: Triggered upon product creation. For example:
- If the product title contains "A", tag it as [A].
- If the SKU title contains "B", tag it as [B].
- If the SKU code contains "C", add it to the "C Collection".
- Categorize products based on product type: Triggered when a product is created via manual input, plugin, or import. If the product type is "A", the product is automatically added to the "A Collection".
-
Categorize products by SKU values: Triggered upon product creation. For example:
- If any SKU title contains "A", add it to the "A Collection".
- If all SKUs contain "B", add them to the "B Collection".
- Automatically categorize based on product description or title: When a product is created and its description, abstract, or title contains "A", the system adds it to the "A Collection".