
Drive Upsells and Cross-Sells to Increase AOV
Enhance your WooCommerce personalization by offering customers a simple, one-click way to upgrade or switch products.
By guiding users toward higher-value or complementary items at the right moment, you can improve conversions and maximize revenue without disrupting the shopping experience.
This includes inserting dynamic WooCommerce values (like cart data or customer details) into your content, as well as enabling actions such as replacing products in the cart to support upsell and cross-sell strategies.
Use cases
- Replace a product in the cart with a higher-value alternative to increase average order value
- Replace a product with a premium version to encourage an upsell
- Swap a product with a complementary item to promote cross-sell opportunities
- Offer an upgrade option directly in the cart or in a pop-up
- Guide users toward better product choices without requiring manual cart edits
Add or Replace product button
The Replace Product button allows users to swap products in their cart with a single click. It can be used anywhere on your site to present targeted offers or messages, but is most commonly used on cart pages or in conditional pop-ups to promote upsells and cross-sells.
To create the button, add the following shortcode to your page:
[ifsoWC type='replace-product-button' add='123' remove='234' amount='2' submit='BTN TEXT' reload='yes' ajax='yes']
Parameters:
add– The ID of the product to add to the cartremove– The ID of the product to remove from the cartamount– Number of items to addsubmit– Button textclassname– Optional CSS classreload/ajax– Control how the cart updates
Variation support:
To replace a specific product variation:
[ifsoWC type='replace-product-button' add='4578' remove='4578' add_variation='4583' remove_variation='4582']
How to implement
The Replace Product shortcode is typically used together with If-So conditions to control when and where the button appears.
For example, you can display the button only when specific conditions are met, such as:
- If a specific product is in the cart, show a button to replace it with a higher-value alternative
- If a customer purchased product X, suggest adding a complementary item
- If the cart contains items from a certain category, offer an upgrade or bundle
To do this, add the shortcode inside an If-So trigger or conditional element, and set the relevant WooCommerce condition. When the condition is met, the Replace Product button will be displayed to the user.
This approach ensures that upsell and cross-sell offers are shown at the right moment, making them more relevant and effective.
Step-by-step: How to implement upsell & cross-sell using the product replacement shortcode
The setup involves two main steps: (1) creating a trigger with the relevant WooCommerce condition, and (2) adding the Replace Product shortcode to the content.
- Download and activate the If-So Dynamic Content plugin and the If-So & WooCommerce integration.
- On your WordPress dashboard, go to If-So → Add New to create a new trigger.
- In version A, set the WooCommerce condition (for example, Product in cart or Purchase history).
- In the content area of that version, add the Replace Product shortcode. For example:
[ifsoWC type='replace-product-button' add='123' remove='234' submit='Upgrade Product']
- (Optional) Add additional versions with different conditions and replacement offers.
- Save the trigger.
- Embed the trigger on your site using its shortcode (e.g.,
) in the relevant location, such as the cart page, product page, or a pop-up.
When the condition is met, the Replace Product button will appear and allow users to swap products in their cart with a single click.
Didn’t find what you need?
Try it Free
Download the If-So & WooCommerce integration