diff --git a/src/Hyyan/WPI/Cart.php b/src/Hyyan/WPI/Cart.php index ae3d564..e07ac7c 100644 --- a/src/Hyyan/WPI/Cart.php +++ b/src/Hyyan/WPI/Cart.php @@ -137,7 +137,7 @@ public function translate_cart_item_permalink( $item_permalink, $cart_item ) { If ( $cart_variation_id !== 0 ) { // Variation $variation_translation = $this->get_variation_translation( $cart_variation_id ); - return $variation_translation->get_permalink(); + return $variation_translation ? $variation_translation->get_permalink() : $item_permalink; } return $item_permalink;