Use one of the available code templates for product or variant ids in Shopify Flow
{% for getProductData_item in getProductData %} {{getProductData_item.id}} {% endfor %}
{% for products_item in collection.products %} {{products_item.id}} {% endfor %}
{% for lineItems_item in order.lineItems %} {{lineItems_item.product.id}} {% endfor %}
{% for fulfillmentLineItems_item in fulfillment.fulfillmentLineItems %} {{fulfillmentLineItems_item.lineItem.product.id}} {% endfor %}
{% for getDraftOrderData_item in getDraftOrderData %} {% for lineItems_item in getDraftOrderData_item.lineItems %} {{lineItems_item.product.id}} {% endfor %} {% endfor %}
{% for getOrderData_item in getOrderData %} {% for lineItems_item in getOrderData_item.lineItems %} {{lineItems_item.product.id}} {% endfor %} {% endfor %}
{% for lineItems_item in order.lineItems %} {{lineItems_item.variant.id}} {% endfor %}
{% for getOrderData_item in getOrderData %} {% for lineItems_item in getOrderData_item.lineItems %} {{lineItems_item.variant.id}} {% endfor %} {% endfor %}
{% for getDraftOrderData_item in getDraftOrderData %} {% for lineItems_item in getDraftOrderData_item.lineItems %} {{lineItems_item.variant.id}} {% endfor %} {% endfor %}
{% for fulfillmentLineItems_item in fulfillment.fulfillmentLineItems %} {{fulfillmentLineItems_item.lineItem.variant.id}} {% endfor %}
{% for getProductVariantData_item in getProductVariantData %} {{getProductVariantData_item.id}} {% endfor %}
{% for lineItems_item in draftOrder.lineItems %} {{lineItems_item.product.id}} {% endfor %}
{% for lineItems_item in draftOrder.lineItems %} {{lineItems_item.variant.id}} {% endfor %}
Draft products
Before creating a task to change the prices of products sold in your store, you can create a task with the product status “Draft” to see the changes you need without immediately changing the price of the product being sold. You will get to know better how this app works.
Show a discount
To show the discount, you can change the compare-at price with option “adjust compare-at-price based on price”. The compare-at price must be higher than the price so that customers see that your products is on sale.