Articles on: Online store
This article is also available in:

Hide product images on thank-you page

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.



Overview of Preferences
Add tracking code to thank-you page
Add a custom notification to thank you page

Updated on: 15/08/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!