Open
Overview of the issue
If you are using WoodMart theme in conjunction with WPML, you may experience that the Compare Feature does not function as expected. After adding products to the compare list, attempting to remove a product from the list fails, with the product persisting despite user actions.
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/themes/woodmart/inc/integrations/woocommerce/modules/compare/class-compare.php file.
- Replace:
if ( $id === $product_id ) { unset( $products[ $key ] ); }
- With:
if ( $id == $product_id ) { unset( $products[ $key ] ); }