Home › Forums › WoodMart support forum › Compare not working even on your demo website
Compare not working even on your demo website
- This topic has 24 replies, 3 voices, and was last updated 3 years, 8 months ago by Artem Temos.
-
AuthorPosts
-
April 22, 2021 at 8:37 pm #285704
steph_inventParticipantHello,
The compare is not working properly on my website. When I add products to the compare list, the count number does not show properly when I navigate to another page.
I have noticed that you have exactly the same problem on your demo website as you can in this screenshot/video: http://somup.com/crf3YyFFkQ
Would you please fix that?
Thank you
RegardsApril 22, 2021 at 9:43 pm #285732
Elise NoromitMemberHello,
Please provide your site admin access to the private area.
Please confirm the permit for us to deactivate the plugins not related to the theme and switch to the parent theme for the while of checking what may take up to 15 minutes.
Best Regards
April 23, 2021 at 7:32 am #285808
steph_inventParticipantHello
Please find below the access you need and you have my permission to desactivate the plugins. I am using already the parent theme so need to do anything.
But why you cannot see that on your end since you have the same problem on your demo https://woodmart.xtemos.com/shop/ ?
Thank you
RegardsApril 23, 2021 at 9:09 pm #286089
Elise NoromitMemberHello,
I am checking the Compare page it works as it should https://gyazo.com/686946046be4ead93f93c88003aebc9d
Please clarify the problem, describe the steps to reproduce it.
Best Regards
April 23, 2021 at 10:17 pm #286119
steph_inventParticipantHello,
I have showed you in a video the steps to reproduce the problem and on your own demo. The same thing happens on my website.
Here again the video: http://somup.com/crf3YyFFkQ
Steps:
1. I have added two products to the compare lit. The compare list shows “2”
2. When I go to another page like “Blog” or “Pages” or “Elements”, it shows “0” on the compare list
3. When I go again to “Shop”, it shows “2”I believe that the video is self content and explain everything obviously: http://somup.com/crf3YyFFkQ
It is a problem that happens on your demo and on my website and there is someone else who reported the same problem too! I think your development team should look closely to this problem and find a solution and publish a new release.
Thank you
RegardsApril 24, 2021 at 2:43 pm #286261
Elise NoromitMemberHello,
I have followed your actions and I can’t catch the problem https://gyazo.com/e4efa57d6af8d0534c7bd8e1765ae9c4
Please disable all the cache plugins and check the issue, if the problem is gone, try to exclude the Wishlist/Compare list from the caching.
If you have any questions please feel free to contact us.
Best Regards
April 24, 2021 at 6:26 pm #286279
steph_inventParticipantHello
Please find below the screenshot in the private area.
Can you forget please my website and take a look on your own website since the problem is the same and you have it on your website: http://somup.com/crf3YyFFkQ
Thank you
RegardsApril 26, 2021 at 10:14 am #286704
Elise NoromitMemberHello,
Our development theme is working under it and it will be fixed in our nearest update that is going to be released in the nearest couple of days.
Best Regards
April 26, 2021 at 1:14 pm #286800
steph_inventParticipantHello
Thank you for your reply.
By the way, there is a very similar problem with the Cart. Maybe your development team can fix both problems at the same time. Regarding the cart, they need to ajaxify it:
when you go from one page to another, the cart flash to zero before showing the price again. here is the topic: https://xtemos.com/forums/topic/bug-with-cart-icon-after-update-6-0-2/Thank you
regardsApril 27, 2021 at 6:08 am #287008
Artem TemosKeymasterHi,
It is a different problem and we have already fixed it in our 6.0.4 update.
Kind Regards
April 27, 2021 at 4:37 pm #287302
steph_inventParticipantHello
What is fixed in 6.0.4? the compare or the cart problem?Thank you
RegardsApril 28, 2021 at 6:03 am #287437
Artem TemosKeymasterHello,
We have fixed the bug with compare and wishlist counters.
Kind Regards
May 6, 2021 at 9:00 pm #290296
steph_inventParticipantHello,
The problem is still there even with the new version
I have added two products to the compare list then I have deleted one of them, the counter shows always 2.
Regards
May 7, 2021 at 6:28 am #290354
Artem TemosKeymasterHi,
We have just tested this on your website and it seems to work correctly https://prnt.sc/12m25te
https://prnt.sc/12m26tbKind Regards
May 7, 2021 at 11:53 am #290496
steph_inventParticipantHello,
I am not sure how you tested and the image you have sent me show only the presence of a product inside the compare list. This works fine however the problem is with the counter that disappear while surfing on the website. Please fin below in the private area a video that shows the error. Actually it is the same error that I have reported in the first message in 22th of April.
Regards
May 7, 2021 at 12:03 pm #290499
steph_inventParticipantHello
To complete my message, here is a video that shows that it does not work even on your demo
Try to add two products, navigate on the demo, go to the compare list and then come back to the shop, add a 3rd product, go to the compare list, remove a product, and go back to any other page. You will see that the counter will remain 0 while there are two products in the compare list!
Regards
May 7, 2021 at 12:15 pm #290509
Artem TemosKeymasterHi,
Could you please send us a link to your website where we can see this issue?
Kind Regards
May 7, 2021 at 5:35 pm #290620
steph_inventParticipantHello
Please find below the link to my website but as you can see the problem exists too on your own demo website!
Thank you in advance
RegardsMay 10, 2021 at 6:26 am #291116
Artem TemosKeymasterCould you please send us your admin access so we can check?
May 10, 2021 at 12:05 pm #291284
steph_inventParticipantHello
Please find below the admin access.
I remind you that you have the same problem on your own demo as I have showed you in the video before.
Thank you
RegardsMay 10, 2021 at 1:47 pm #291310
Artem TemosKeymasterWe have cleared the cache on your website and it seems to work correctly now.
As for our demo, we haven’t updated our theme there yet.May 10, 2021 at 2:07 pm #291313
steph_inventParticipantHello,
I do not know if you have tested as I have told you because I am using a private chrome session as you can see in the video in private area below (so there is no caching a) and it is still not working! Please check it again and test the scenario I gave you:
1. Add 2 products to the compare list
2. surf into other pages
3. Add a third product to the compare list
4. surf again
5. go to the compare list and delete one of the products
6. surf into another pages and you will see that the compare list does not update.Please check it with your dev team because nothing has been changed, there is still a bug with the compare list counter.
Regards
May 10, 2021 at 2:59 pm #291326
Artem TemosKeymasterYes, we found another problem, you are right. Try to add the following PHP code snippet to the child theme functions.php file to fix this
function woodmart_remove_from_compare() { $id = sanitize_text_field( $_GET['id'] ); if ( defined( 'ICL_SITEPRESS_VERSION' ) && function_exists( 'wpml_object_id_filter' ) ) { global $sitepress; $id = wpml_object_id_filter( $id, 'product', true, $sitepress->get_default_language() ); } $cookie_name = woodmart_compare_cookie_name(); if ( ! woodmart_is_product_in_compare( $id ) ) { woodmart_compare_json_response(); } $products = woodmart_get_compared_products(); foreach ( $products as $k => $product_id ) { if ( intval( $id ) == $product_id ) { unset( $products[ $k ] ); } } $products = array_values( $products ); if ( empty( $products ) ) { setcookie( $cookie_name, false, 0, COOKIEPATH, COOKIE_DOMAIN, false, false ); $_COOKIE[$cookie_name] = false; } else { setcookie( $cookie_name, json_encode( $products ), 0, COOKIEPATH, COOKIE_DOMAIN, false, false ); $_COOKIE[$cookie_name] = json_encode( $products ); } woodmart_compare_json_response(); } add_action( 'wp_ajax_woodmart_remove_from_compare', 'woodmart_remove_from_compare' ); add_action( 'wp_ajax_nopriv_woodmart_remove_from_compare', 'woodmart_remove_from_compare' );
May 10, 2021 at 5:18 pm #291350
steph_inventParticipantHello,
Thank you for your quick reply.
I have did few tests and seems working, I will continue doing some tests to make sure that everything is working fine. However, I have noticed that on some pages, the counter flash an old value before updating it to the correct new value. For example, when I have 4 products in the compare list and I go to the “Blog” page, I see the counter “2é for a fraction of second before it shows the correct counter of 4, and when I go to any other page it shows the counter 0 for a fraction of second before it shows the correct counter 4.
Since I am not using a child theme, do you think that this will be integrated in the next release? and if yes, when will you have the new release?
Thank you in advance
RegardsMay 11, 2021 at 6:07 am #291446
Artem TemosKeymasterHello,
Yes, it will be added in our next theme update that will be released in 3-5 weeks.
As for the flash, it is the way it works when you have a cache plugin active. It is the same mechanism as with the shopping cart.Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register