In case you want to remove the product images in the thank-you pages that your customers can view, please follow the below instruction to hide them on your store.


Tutorial

From your store admin, go to Online Store > Preferences
Scroll to the Additional scripts > Head section and paste this scripts.

<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>

Save and you are done.
Was this article helpful?
Cancel
Thank you!