Cart transform
4 min
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 docid 0hvslwdndftvtyxccs0wz 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 docid\ mbamxjk2qdeqxe92il3ul 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 docid\ xqw2gtk2cwdwaddslfmfs 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 docid\ f hzyvg5wdcdrrsgdv965

