LiteSpeed Breaks Checkout
-
Checkout breaks when adding this to functions.php and LiteSpeed Caché enabled. Problem appears even when all cache settings are off.
It only works when LiteSpeed Cache disabled.
Tried with many themes for example: Twenty Seventeen and Woopress.add_filter( 'woocommerce_cart_item_name', 'quadlayers_product_image_checkout', 9999, 3 ); function quadlayers_product_image_checkout( $name, $cart_item, $cart_item_key ) { if ( ! is_checkout() ) {return $name;} $product = $cart_item['data']; $thumbnail = $product->get_image( array( '50', '50' ), array( 'class' => 'alignleft' ) ); /*Above you can change the thumbnail size by changing array values e.g. array(‘100’, ‘100’) and also change alignment to alignright*/ return $thumbnail . $name; }
Image of blocked Checkout: Image
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘LiteSpeed Breaks Checkout’ is closed to new replies.