Home Forums WoodMart support forum Ajax shop and Product navigation issue

Ajax shop and Product navigation issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168108

    markostojanovic
    Participant

    Hi,

    I have some questions:
    1. Whan option AJAX Shop is enabled I have some issues:
    – Scroll page on click to filter, please see the video.- Mobile menu ajax active state doesn’t work
    – Google Analytics doesn’t work – video

    2. Product navigation on the single product page does not pull products from current categories?

    Greeting,
    Marko

    #168147

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    1.1) In order to fix Scroll page on click to filter, please add this code to the functions.php of the child theme:

    add_filter( 'woodmart_ajax_scroll_class', function () {
    	return '.website-wrapper';
    } );

    1.2) Google Analytics doesn’t work: Actually, when you navigate to another category by AJAX technology it means the page remains the same (without reloading) and the appropriate content is uploaded. For now, we do not have the option to correct that.

    1.3) Mobile menu ajax active state doesn’t work: AJAX technology only loads the main content, because of this the mobile menu remains old. if we are also using AJAX to update the mobile menu, it will take too much time and then AJAX is better off.

    2) By default, the WooCommerce plugin doesn’t have products next/previous arrows functionality at all. To implement this feature we use standard WordPress PHP get_next_post and get_prev_post functions that can obtain adjacent posts from the database. Unfortunately, it takes products from the whole table and depends only on the shop page order. The system can’t know that you previously visited this product’s category page. Yes, it would be much better to show next/prev product from the same category. But how the system might know which one? The product can be from multiple categories. Then, from which category next product should be taken? Or for example, if I use filter by price or by color/size the order for products changes again. And naturally, that when you open some product from that page you must see products from the same color/size or from the same price filter interval. And there are a lot of such cases that make it impossible to make product arrows buttons work as expected.
    We spent a lot of time investigating this issue but, unfortunately, there is no solution to this problem. You can check any other theme for WooCommerce and you will see the same issue.

    Best Regards

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