Thanks, Artem! Managed to get it to take, but now I come back with ‘Nonce_Failure’. I’m no genius, but I am guessing there’s something wrong with the code from that page that you referenced, but I don’t know what. I placed the code at the end of the functions.php file, as given:
function getCartItemThumbnail( $img, $cart_item ) {
if ( isset( $cart_item[‘product_id’] ) ) {
$product = wc_get_product($cart_item[‘product_id’]);
if ( $product && $product->is_type( ‘variable’ ) ) {
// Return variable product thumbnail instead variation.
return $product->get_image();
}
}
return $img;
}
add_filter( ‘woocommerce_cart_item_thumbnail’, ‘getCartItemThumbnail’, 111, 2 );
Honestly the end looks a bit odd to me, but I don’t know why. Thanks!