Quote from pcspacegeek on November 13, 2021, 23:49
Hello,
I am having problem with the WOOF plugin. The plugin itself works very well, but it has side effect on the webpage.
I have pages where I use the WOOF filter, but I have pages where I want to show a specific product category without any product filtering. In that case I access the page with the category name in the webpage URL (no woof filter associated to this page at all). The page is still a shop page, so the “order by“ filter from woocommerce is visible. When I use the drop-down to order the products in a certain way, I get a weird behavior. When the page reloads, it is expected to see the products ordered by the chosen criteria, but it inserts the Main Shop page in front, and afterwards shows the original products ordered in the requested way. I am sure that it is done by the filter because the behavior stopped after I disabled the plugin.
I think the problem happens because WOOF hijacks this ordering mechanism. If I use the plugin, the GET part of the URL is: “?swoof=1&orderby=price-desc&really_curr_tax=24-product_cat”, if the plugin is disabled, the GET part is: “?orderby=price-desc”.
I noticed that if I switch on the “Try to ajaxiify the shop” toggle this problem disappears, mostly. The side effect what I get now is: I go into a category-based shop page, I order the products by something, click on one of the products to go on the product page, press back on the web browser to go back to the category shop page, I get the same weird behavior once again: it inserts the full main shop before the products in that category.
Thank you for the help.
Hello,
I am having problem with the WOOF plugin. The plugin itself works very well, but it has side effect on the webpage.
I have pages where I use the WOOF filter, but I have pages where I want to show a specific product category without any product filtering. In that case I access the page with the category name in the webpage URL (no woof filter associated to this page at all). The page is still a shop page, so the “order by“ filter from woocommerce is visible. When I use the drop-down to order the products in a certain way, I get a weird behavior. When the page reloads, it is expected to see the products ordered by the chosen criteria, but it inserts the Main Shop page in front, and afterwards shows the original products ordered in the requested way. I am sure that it is done by the filter because the behavior stopped after I disabled the plugin.
I think the problem happens because WOOF hijacks this ordering mechanism. If I use the plugin, the GET part of the URL is: “?swoof=1&orderby=price-desc&really_curr_tax=24-product_cat”, if the plugin is disabled, the GET part is: “?orderby=price-desc”.
I noticed that if I switch on the “Try to ajaxiify the shop” toggle this problem disappears, mostly. The side effect what I get now is: I go into a category-based shop page, I order the products by something, click on one of the products to go on the product page, press back on the web browser to go back to the category shop page, I get the same weird behavior once again: it inserts the full main shop before the products in that category.
Thank you for the help.