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
| Field | Type | Description |
|---|
| Product | integer | Product ID |
Optional Fields
| Field | Type | Description |
|---|
| Regular Price | number | Standard price |
| Sale Price | number | Discounted price |
| Sale Start | date | Sale start date |
| Sale End | date | Sale 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
| Variable | Type | Description |
|---|
{{Action.product_id}} | integer | Product ID |
{{Action.old_price}} | string | Previous price |
{{Action.new_price}} | string | New price |
Common Workflows
External Price Sync
- Trigger: External system price update
- Action: Update Product Price
- Product: Find by SKU
- Regular Price: External price
Seasonal Sale
- Trigger: Scheduled time
- Action: Update Product Price
- Sale Price: Discount amount
- Sale End: End of season
Dynamic Pricing
- Trigger: Inventory threshold
- Condition: Stock < 5
- 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