Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Dražen 1 year, 1 month ago.

Author Posts
April 15, 2024 at 8:57 am #15518273

a1B

Hello,

I'm having a problem with my comparison page. I already had a ticket for the issue but it has now been deleted - not sure why. The page was translated with your plugin from Bulgarian (main) to English. However, when I try to remove a product from the English page it is not possible. The product is not removed, that is, the page does not work.

Your colleagues and I uploaded the topic to a sandbox test environment and they had to run checks, but now the ticket is gone.

I am asking for assistance in fixing the problem as I have an angry customer who expects the problem to be fixed.

I can reupload the theme to a test environment.

We already tried to fix the problem with this code, but it didn't work ( bellow).

- 1. Go to Appearance > Theme File Editor and select the file \XTS\Modules\Compare::remove_from_compare in wp-content/themes/woodmart/inc/integrations/woocommerce/modules/compare/class-compare.php
2. Substitute this part of the code:
1
2
3

if ( $id === $product_id) {
unset( $products[ $key ] );
}
with:

1
2
3

if ( $id == $product_id) {
unset( $products[ $key ] );
}

April 15, 2024 at 9:18 am #15518522

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

the ticket is still there and my colleagues are waiting for your reply/action to be able to proceed.

Please go to the next link and update with your reply so we can further check the issue:

- https://wpml.org/forums/topic/woodmart-compare-page-still-showing-issues-after-applying-workaround/page/2/

Regards,
Drazen

The topic ‘[Closed] Compare page doesn't work’ is closed to new replies.