Update Product Price

Change product prices programmatically.

Overview

The Update Product Price action modifies a WooCommerce product’s pricing. This includes regular price, sale price, and sale schedule.

Configuration

Required Fields

FieldTypeDescription
ProductintegerProduct ID

Optional Fields

FieldTypeDescription
Regular PricenumberStandard price
Sale PricenumberDiscounted price
Sale StartdateSale start date
Sale EnddateSale end date

Example Configurations

Set Regular Price

Product: {{Trigger.product_id}}
Regular Price: {{Trigger.new_price}}

Put on Sale

Product: {{Trigger.product_id}}
Sale Price: {{Trigger.sale_price}}
Sale Start: {{Trigger.start_date}}
Sale End: {{Trigger.end_date}}

End Sale

Product: {{Trigger.product_id}}
Sale Price: (clear)

Price Sync

Product: {{Trigger.wp_product_id}}
Regular Price: {{Trigger.external_price}}
Sale Price: {{Trigger.external_sale_price}}

Output Data

VariableTypeDescription
{{Action.product_id}}integerProduct ID
{{Action.old_price}}stringPrevious price
{{Action.new_price}}stringNew price

Common Workflows

External Price Sync

  1. Trigger: External system price update
  2. Action: Update Product Price
    • Product: Find by SKU
    • Regular Price: External price

Seasonal Sale

  1. Trigger: Scheduled time
  2. Action: Update Product Price
    • Sale Price: Discount amount
    • Sale End: End of season

Dynamic Pricing

  1. Trigger: Inventory threshold
  2. Condition: Stock < 5
  3. Action: Update Product Price
    • Sale Price: Clearance price

Best Practices

  • Log price changes for audit
  • Consider tax implications
  • Test with variable products
  • Sync with external systems carefully