I have a view that list my woocommerce products, in that view I use a shortcode attribute (catrel) to show some products in diferent pages according to certain category: all the categories on the parent page (Obras), and only one category on the child pages (Contemporaneas, etc.).
The problem is when I try to sort the results on a page with the shortcode attribute seted to a category name (on any of the child pages of Obras) the "js_event_wpv_parametric_search_results_updated" is never triggered, it seems that the ajax request is never happen, I also checked the browser console, on the network tab and there is no post request maded when i change any sorting option. The "js_event_wpv_parametric_search_triggered" event works well.
My "Custom Search Settings" are these:
- Let me choose individual settings manually
+ Update the View results every time an input changes
If you go to hidden link and use the sorting options (Ordenar por) it works well. The problem is at the child pages, for example: hidden link
When I try to use the sorting controls the results update doesn't trigger (the filters works well, actually if I change the sorting and, after that, apply a filter then the results are updated).
In the images you can see the console logs that I'm using to know if the event is triggered or not. On the parent page the results update is working (two logs), but on the child page I only get the "search triggered!" log.
Let me know if you need access to the site.
I have the [wpv-filter-controls] shortcode wrapping the filters and the sorting controls, but maybe I'm missing something. Here's the code of the "Search and Pagination":
Once I added the default sorting option shortcode for Toolset it works perfectly fine, so I would recommend using this instead of using the written out HTML.
If you check the pages now the sorting should be working fine as well as triggering the custom code.