Published on Nov 9, 2020

How to add Cross-sells to Added to Cart message in WooCommerce

Sridhar Katakam

This members-only tutorial builds on top of the earlier How to add custom HTML to Add to Cart message in WooCommerce tutorial by making it dynamic i.e., showing the current product's cross-sells in a grid below the standard added to cart message.

Before:

After:

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [WooCommerce] Customize add to cart message

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right