Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove product thumbnail from iThemes Exchange cart, checkout and confirmation
<?php
/*
------------------------------------------------------------------------------------------
Remove thumbnails from iThemes checkout and order confirmation
------------------------------------------------------------------------------------------
*/
function custom_exchange_get_content_cart_items_elements( $parts ) {
foreach ( $parts as $key => $part ) {
if ( 'item-featured-image' == $part ) {
unset( $parts[$key] );
}
}
return $parts;
}
add_action( 'it_exchange_get_content_cart_items_elements', 'custom_exchange_get_content_cart_items_elements' );
add_action( 'it_exchange_get_content_checkout_items_elements', 'custom_exchange_get_content_cart_items_elements' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.