Implemented Rollback Functionality

This commit is contained in:
2025-08-06 15:18:44 -05:00
parent d741dd5466
commit 78818793f2
20 changed files with 6365 additions and 74 deletions

View File

@@ -6,6 +6,12 @@ SHOPIFY_ACCESS_TOKEN=your-admin-api-access-token
TARGET_TAG=sale
PRICE_ADJUSTMENT_PERCENTAGE=10
# Operation Mode Configuration
# OPERATION_MODE determines whether to update prices or rollback to compare-at prices
# Options: "update" (default) or "rollback"
OPERATION_MODE=update
# Optional Configuration
# PRICE_ADJUSTMENT_PERCENTAGE can be positive (increase) or negative (decrease)
# Example: 10 = 10% increase, -15 = 15% decrease
# Example: 10 = 10% increase, -15 = 15% decrease
# Note: PRICE_ADJUSTMENT_PERCENTAGE is only used in "update" mode