Home Forums WoodMart support forum Compare not working even on your demo website

Compare not working even on your demo website

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #285704

    steph_invent
    Participant

    Hello,

    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
    Regards

    #285732

    Hello,

    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

    #285808

    steph_invent
    Participant

    Hello

    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
    Regards

    #286089

    Hello,

    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

    #286119

    steph_invent
    Participant

    Hello,

    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
    Regards

    #286261

    Hello,

    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

    #286279

    steph_invent
    Participant

    Hello

    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
    Regards

    #286704

    Hello,

    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

    #286800

    steph_invent
    Participant

    Hello

    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
    regards

    #287008

    Artem Temos
    Keymaster

    Hi,

    It is a different problem and we have already fixed it in our 6.0.4 update.

    Kind Regards

    #287302

    steph_invent
    Participant

    Hello
    What is fixed in 6.0.4? the compare or the cart problem?

    Thank you
    Regards

    #287437

    Artem Temos
    Keymaster

    Hello,

    We have fixed the bug with compare and wishlist counters.

    Kind Regards

    #290296

    steph_invent
    Participant

    Hello,

    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

    #290354

    Artem Temos
    Keymaster

    Hi,

    We have just tested this on your website and it seems to work correctly https://prnt.sc/12m25te
    https://prnt.sc/12m26tb

    Kind Regards

    #290496

    steph_invent
    Participant

    Hello,

    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

    #290499

    steph_invent
    Participant

    Hello

    To complete my message, here is a video that shows that it does not work even on your demo

    http://somup.com/crhilVF5Mh

    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

    #290509

    Artem Temos
    Keymaster

    Hi,

    Could you please send us a link to your website where we can see this issue?

    Kind Regards

    #290620

    steph_invent
    Participant

    Hello

    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
    Regards

    #291116

    Artem Temos
    Keymaster

    Could you please send us your admin access so we can check?

    #291284

    steph_invent
    Participant

    Hello

    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
    Regards

    #291310

    Artem Temos
    Keymaster

    We 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.

    #291313

    steph_invent
    Participant

    Hello,

    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

    #291326

    Artem Temos
    Keymaster

    Yes, 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' );
    #291350

    steph_invent
    Participant

    Hello,

    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
    Regards

    #291446

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 25 posts - 1 through 25 (of 25 total)