Cart transform
Product price campaigns on Shopify Plus and Development stores use Shopify Cart Transform Functions to apply price adjustments. No product duplication is involved — the original products are always used.
How it works
Creating the campaign — You define the variations and their price adjustment rules in Personizely.
Activating the campaign — Once activated, the Shopify Cart Transform Function is registered and begins applying the configured rules to your store.
Price adjustments:
- Storefront — Prices are adjusted using our client-side script. Using predefined CSS selectors, the script locates and replaces the elements displaying the product price and compare-at price. See Price CSS selectorsStorefront Selector Settings for configuration details.
- Cart and checkout — Prices are modified through the Shopify Cart Transform Function, ensuring price consistency according to the campaign rules. The transformation rules are stored in product metafields, which are read by the function when the product is added to the cart.
Each variation's changes are applied sitewide to visitors assigned to that group.
Configuration
For a full reference on setting price adjustment rules — actions, values, rounding options, and examples — see Price adjustment rulesPrice Adjustment Rules.
Preview
To verify how price transformations appear on the storefront, use the Preview button on any variation. A URL will be generated that opens the campaign preview on your store. Make sure all changes are saved before opening the preview link.
In preview mode, prices transformed by the script are highlighted with a red outline. Cart transformations will not apply in preview unless the campaign is running or scheduled.
Market-specific campaigns
If you need different pricing rules for different markets, create separate campaigns per market and use a target with a Market filter. If the price rules are the same across all markets, a single campaign is sufficient.
Notes
- Price transformation rules are applied in the following order: variant-specific rule → product-level rule → original price.
- Subscription product prices cannot be adjusted.
- If a product or variant does not have a compare-at price but a rule is set for it, it will not be displayed on the storefront.
- Before launching, go through the QA ChecklistQA Checklist to verify everything is configured correctly.
Requirements
- Your store must be on the Shopify Plus or Development plan (Shopify Functions are not available on other plans).
- Bundle products cannot be used in price campaigns. Both bundle functionality and price testing rely on Cart Transform Functions, and Shopify only permits one transform per line item.
For an overview of both strategies and how the strategy is selected, see Product price (Shopify)Product Price (Shopify).