Pricing & Sales Overview
This section covers both frontend price display and backend discount logic for the storefront.
Frontend: Price Displayโ
The frontend uses a simplified sale workflow where webops only needs to update the compareAtPrice field in Shopify to manage sales. See Price Display for details.
Backend: Discount Typesโ
The Shopify Script applies multiple types of discounts to cart line items based on customer tags, product tags, and product attributes. The script runs on every checkout and evaluates each line item for applicable discounts.
Available Discountsโ
- Free Swatches - Up to $20 in free swatches for eligible customers
- Free Swatch Books - Up to $4 in free swatch books for eligible customers
- Rush Fee Waivers - 100% off rush fees for exchanges
- Price Matching - Campaign-specific price matching for tagged customers
- Compare At Price - General sale fallback for all shoppers
Discount Priorityโ
For each line item, the script processes in this order:
- Free Swatches - Applied if eligible
- Free Swatch Books - Applied if eligible
- Rush Fee Waivers - Applied if eligible
- Price Comparison (highest priority wins):
- Check all eligible price matches โ select lowest
- If no price match, check compare at price
- Apply the best available discount with appropriate message
Important: Only one pricing discount (price match OR compare at price) is applied per line item.