ShopBase Help Center

Explore How-To's and learn eCommerce best practices from our knowledge base.

Home Hide product images on thank-you page

Hide product images on thank-you page

This article is also available in:

In this article, we will show you how to remove product images in the customer's thank-you page.

Step by Step Tutorial

From your ShopBase admin, go to Online Store > Preferences.
Navigate to the Additional scripts, and paste the following script to the Head section.
<script>
	window.sbsdk.ready(function() {
	    window.sbsdk.page.onContextUpdate(function(context) {
	    	switch (context.type) {
				case 'post_checkout':
				    // Inject code tracking at thank you page here
				    document.querySelectorAll('.order-summary__section--product-list').forEach(function(e) {
                        e.remove();
                    })
	    			break;
				default:
	    			break;
	    	};
	    });
	});
</script>
Click Save to finish.