[PRO] Custom taxonomy from woocommerce-brands filter overrides current taxonomy being a category
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Denis on September 11, 2021, 12:20Project setup:
I have created a filter with WOOF Pro which is working wonderfully, latest WooCommerce, Wordpress, and WOOF. I am using elementor to create a custom Product Category archive page (this is important). There is a lot of essential content for each category handled manually like this that needs to stay shown while browsing a category page. When using AJAX filtering, everything works wonderfully. I am using
[woof_products per_page=12 columns=3 is_ajax=1 taxonomies=product_cat:64]for the product loop on this page and I am using the Elementor widget WOOF - WooCommerce Products Filter. My filter has autosubmit and is working well with pagination and AJAX filtering - I stay on the category page, filters are applied and displayed before my product loop, page title stays "Category name Archives" and my custom Elementor content is being shown. It works as long as I use price range filter or attribute filters.Problem description:
The problem comes in, when I use a custom taxonomy
Brandscreated by plugin woocommerce-brands. When I filter products by brands, it works great in AJAX mode - products are filtered and a filter is added before product loop. My URL after applying a taxonomy filter changes to /category-slug/?swoof=1&product_brand=novaservis&paged=1&really_curr_tax=64-product_cat and this should be fine. Site breadcrumbs show "Home / Category" and I am seeing my Elementor template. However, when I refresh the site (or open a product and press browser back button), I am redirected to a custom taxonomy site, where only products matching my category are being displayed, but my URL is changed to /category-slug/?swoof=1&product_brand=brandname&really_curr_tax=64-product_cat (but still stays on category-slug), my breadcrumbs now state "Home / Brands / Brandname", site title changes to "Brandname archives" and my custom Elementor template is gone. Filter before product loop still works and states "Brands: Brandname", but a Brands filter is completely gone from the WOOF filter (I do have "Hide empty terms" set to "Yes") .Another test I made is using a second custom taxonomy called collection, which does the same thing as Brands. If I choose to filter both taxonomies, upon refresh I'm redirected to the first of the two and problem stays. If I only pick the other taxonomy, same thing happens, but I'm redirected to "Home / Collections / Collectionname" instead of Brands taxonomy page.
Clearing the filter does AJAX clearing but I remain on the taxonomy subpage with only results matching that taxonomy. Creates a madly confusing user experience.
Removing taxonomies from filter solves these issues. However I need taxonomy filtering to work as well.
Expected function:
When selecting a filter based on custom taxonomy while on a category page, remain on that page after refresh, keep displaying custom Elementor content set up specifically and conditionally to a category (where the filtering is initiated) and don't change site title or breadcrumbs. These features are essential for good navigation as our e-commerce store is rather big.
Project setup:
I have created a filter with WOOF Pro which is working wonderfully, latest WooCommerce, Wordpress, and WOOF. I am using elementor to create a custom Product Category archive page (this is important). There is a lot of essential content for each category handled manually like this that needs to stay shown while browsing a category page. When using AJAX filtering, everything works wonderfully. I am using [woof_products per_page=12 columns=3 is_ajax=1 taxonomies=product_cat:64] for the product loop on this page and I am using the Elementor widget WOOF - WooCommerce Products Filter. My filter has autosubmit and is working well with pagination and AJAX filtering - I stay on the category page, filters are applied and displayed before my product loop, page title stays"Category name Archives" and my custom Elementor content is being shown. It works as long as I use price range filter or attribute filters.
Problem description:
The problem comes in, when I use a custom taxonomy Brands created by plugin woocommerce-brands. When I filter products by brands, it works great in AJAX mode - products are filtered and a filter is added before product loop. My URL after applying a taxonomy filter changes to /category-slug/?swoof=1&product_brand=novaservis&paged=1&really_curr_tax=64-product_cat and this should be fine. Site breadcrumbs show "Home / Category" and I am seeing my Elementor template. However, when I refresh the site (or open a product and press browser back button), I am redirected to a custom taxonomy site, where only products matching my category are being displayed, but my URL is changed to /category-slug/?swoof=1&product_brand=brandname&really_curr_tax=64-product_cat (but still stays on category-slug), my breadcrumbs now state "Home / Brands / Brandname", site title changes to"Brandname archives" and my custom Elementor template is gone. Filter before product loop still works and states"Brands: Brandname", but a Brands filter is completely gone from the WOOF filter (I do have"Hide empty terms" set to"Yes") .
Another test I made is using a second custom taxonomy called collection, which does the same thing as Brands. If I choose to filter both taxonomies, upon refresh I'm redirected to the first of the two and problem stays. If I only pick the other taxonomy, same thing happens, but I'm redirected to "Home / Collections / Collectionname" instead of Brands taxonomy page.
Clearing the filter does AJAX clearing but I remain on the taxonomy subpage with only results matching that taxonomy. Creates a madly confusing user experience.
Removing taxonomies from filter solves these issues. However I need taxonomy filtering to work as well.
Expected function:
When selecting a filter based on custom taxonomy while on a category page, remain on that page after refresh, keep displaying custom Elementor content set up specifically and conditionally to a category (where the filtering is initiated) and don't change site title or breadcrumbs. These features are essential for good navigation as our e-commerce store is rather big.
Quote from Pablo Borysenco on September 13, 2021, 11:22Hello
Please check an option on Advanced->Options - https://share.pluginus.net/image/i20210913121906.png
Drop me exact link to the issue
Hello
Please check an option on Advanced->Options - https://share.pluginus.net/image/i20210913121906.png
Drop me exact link to the issue
Quote from Denis on September 13, 2021, 14:22Hello,
I don't understand your response - what did you mean by "Drop me exact link to the issue"?
I tried setting "Disable swoof influence" to both "Yes" and "No", but I don't see any change in the behaviour I described.
Hello,
I don't understand your response - what did you mean by"Drop me exact link to the issue"?
I tried setting"Disable swoof influence" to both"Yes" and"No", but I don't see any change in the behaviour I described.
Quote from Pablo Borysenco on September 14, 2021, 11:44Hello
I don't understand your response - what did you mean by "Drop me exact link to the issue"? - Drop me the link to a page where I can see this error
Hello
I don't understand your response - what did you mean by"Drop me exact link to the issue"? - Drop me the link to a page where I can see this error
Quote from Denis on September 14, 2021, 13:52To update you, "Disable swoof influence" is now set to "No" as per your previous instructions. The site is now being redirected to the general /shop/ site upon refresh, not to the taxonomy archive. But this time for any filter that is being used, not just custom taxonomy.
The site is in development, so it is password protected. I'll be leaving the password to access the site for you in the Private data for this topic section.
Instructions to replicate error:
- Open https://www.modralaguna.online/vodovodne-baterie/. Take a notice of current page title, breadcrumbs location and header section.
- In filter, open section titled "Výrobca" and choose any 1 value (this is
woocommerce-brandstaxonomy). This taxonomy is problematic with any "Disable swoof influence" setting.- Upon reloading products, refresh the site (F5 / CMD+R). Or open this URL (which is shown when using AJAX filter): https://www.modralaguna.online/vodovodne-baterie/?filtrovanie=1&product_brand=novaservis&really_curr_tax=64-product_cat
- Take a notice of current page title, breadcrumbs location and header section and compare them. Breadcrumbs now show "Domov / Obchod" (translated to "Home / Shop") instead of the correct category and page header is gone.
To update you,"Disable swoof influence" is now set to"No" as per your previous instructions. The site is now being redirected to the general /shop/ site upon refresh, not to the taxonomy archive. But this time for any filter that is being used, not just custom taxonomy.
The site is in development, so it is password protected. I'll be leaving the password to access the site for you in the Private data for this topic section.
Instructions to replicate error:
- Open https://www.modralaguna.online/vodovodne-baterie/. Take a notice of current page title, breadcrumbs location and header section.
- In filter, open section titled"Výrobca" and choose any 1 value (this is
woocommerce-brandstaxonomy). This taxonomy is problematic with any"Disable swoof influence" setting. - Upon reloading products, refresh the site (F5 / CMD+R). Or open this URL (which is shown when using AJAX filter): https://www.modralaguna.online/vodovodne-baterie/?filtrovanie=1&product_brand=novaservis&really_curr_tax=64-product_cat
- Take a notice of current page title, breadcrumbs location and header section and compare them. Breadcrumbs now show"Domov / Obchod" (translated to"Home / Shop") instead of the correct category and page header is gone.
Quote from Pablo Borysenco on September 15, 2021, 10:57Hello
In this case set "Disable swoof influence" as "Yes"
And instead of a third party plugin for brand, use an attribute or custom taxonomy
Hello
In this case set "Disable swoof influence" as"Yes"
And instead of a third party plugin for brand, use an attribute or custom taxonomy
Quote from Denis on September 16, 2021, 11:55I use WooCommerce's official
woocommerce-brandsplugin, because it allows me to import/export products with brands data, create landing pages for each brand, create links to landing pages in product detail meta and allows filtering.Brands is a custom taxonomy. I am using a similar code of my own for "product-collections" and that is nothing more than a custom taxonomy.
Any tips on how to resolve this issue while retaining the use of custom taxonomies from plugins such as
woocommerce-brands? If there is nothing to be done, I can not use swoof, unfortunately.
I use WooCommerce's official woocommerce-brands plugin, because it allows me to import/export products with brands data, create landing pages for each brand, create links to landing pages in product detail meta and allows filtering.
Brands is a custom taxonomy. I am using a similar code of my own for"product-collections" and that is nothing more than a custom taxonomy.
Any tips on how to resolve this issue while retaining the use of custom taxonomies from plugins such as woocommerce-brands? If there is nothing to be done, I can not use swoof, unfortunately.
Quote from Pablo Borysenco on September 16, 2021, 12:20Hello
I use WooCommerce's official
woocommerce-brandsplugin - this is a third-party plugin that is sold on the woocommerce site.Brands is a custom taxonomy - yes you are right, but this plugin adds functionality that overrides the page template to the brand archive page (if there is this slug in the get request). I meant to make the custom taxonomy without this functionality. You can use this - https://wordpress.org/plugins/custom-post-type-ui/
All I can suggest is to forcefully change the display template - "Disable swoof influence" as "Yes".
Hello
I use WooCommerce's official woocommerce-brands plugin - this is a third-party plugin that is sold on the woocommerce site.
Brands is a custom taxonomy - yes you are right, but this plugin adds functionality that overrides the page template to the brand archive page (if there is this slug in the get request). I meant to make the custom taxonomy without this functionality. You can use this - https://wordpress.org/plugins/custom-post-type-ui/
All I can suggest is to forcefully change the display template - "Disable swoof influence" as"Yes".
Quote from Denis on February 17, 2022, 18:09Hello,
I tried everything and configuring Woof with WooCommerce brands has been the biggest pain. "Disable swoof influence" (which is now very poorly translated to Slovak and is hard to find) is set to "Yes". Even after setting this, whenever I use filter in a category archive filtering by woocommerce_brands taxonomy and refresh the page, Woof shows the landing page for that taxonomy instead of the current archive category where it was filtered from initially. This does not happen if I turn Woof plugin off. This is a breaking bug for our store and I spent over $90 trying to fix it with 2 developers assisting without ANY SOLUTION besides removing WooCommerce Brands and writing a custom taxonomy from the ground up. With our current product DB complexity, the cost estimation for that is $300.
Can I force Woof filter to actually load the page where landed on by URL? If I get redirected to https://website.com/category/shirts?swoof=1&paged=1&product_brand=test&really_curr_tax=64-product_cat (in this scenario, 64-product_cat is the "Shirts" product category), the website title and contents indicate I am looking at "Test Archives" and it removes all content related to "Shirts". If I clear the filter and refresh again, I get the original "Shirts" archive as I am supposed to.
Thank you for any help.
Hello,
I tried everything and configuring Woof with WooCommerce brands has been the biggest pain."Disable swoof influence" (which is now very poorly translated to Slovak and is hard to find) is set to"Yes". Even after setting this, whenever I use filter in a category archive filtering by woocommerce_brands taxonomy and refresh the page, Woof shows the landing page for that taxonomy instead of the current archive category where it was filtered from initially. This does not happen if I turn Woof plugin off. This is a breaking bug for our store and I spent over $90 trying to fix it with 2 developers assisting without ANY SOLUTION besides removing WooCommerce Brands and writing a custom taxonomy from the ground up. With our current product DB complexity, the cost estimation for that is $300.
Can I force Woof filter to actually load the page where landed on by URL? If I get redirected to https://website.com/category/shirts?swoof=1&paged=1&product_brand=test&really_curr_tax=64-product_cat (in this scenario, 64-product_cat is the"Shirts" product category), the website title and contents indicate I am looking at"Test Archives" and it removes all content related to"Shirts". If I clear the filter and refresh again, I get the original"Shirts" archive as I am supposed to.
Thank you for any help.
Quote from Denis on February 17, 2022, 20:01Update - I created a page specifically for "page 2" of "Shirts archive". I am ajaxified. If I only use AJAX, it works. However, if I click a product and go back (loading the page again), it takes me to page 2 then. Can I always have woof load everything from the archive's first page?
Update - I created a page specifically for"page 2" of"Shirts archive". I am ajaxified. If I only use AJAX, it works. However, if I click a product and go back (loading the page again), it takes me to page 2 then. Can I always have woof load everything from the archive's first page?
Quote from Pablo Borysenco on February 18, 2022, 12:39Hello
Please use this extension - https://products-filter.com/extencion/seo-url-request - this is a new extension that should help you
Hello
Please use this extension - https://products-filter.com/extencion/seo-url-request - this is a new extension that should help you
Quote from Denis on February 18, 2022, 12:41Hello,
The extension you linked opened "Shortcodes archive" on your website, no extension.
Hello,
The extension you linked opened"Shortcodes archive" on your website, no extension.
Quote from Pablo Borysenco on February 18, 2022, 13:21The link was invalid due to text formatting
try this link - https://products-filter.com/extencion/seo-url-request
The link was invalid due to text formatting
try this link - https://products-filter.com/extencion/seo-url-request
Quote from Denis on February 18, 2022, 13:26I read the post but I don't see any information where to get that new extension - do I have to buy it? Where do I download it? How do I install it?
I read the post but I don't see any information where to get that new extension - do I have to buy it? Where do I download it? How do I install it?
Quote from Pablo Borysenco on February 18, 2022, 13:33Please watch this video - https://products-filter.com/video#beGT6p_look
It's a built-in extension (you don't have to pay) - https://c2n.me/4eYXCFL.png
Please watch this video - https://products-filter.com/video#beGT6p_look
It's a built-in extension (you don't have to pay) - https://c2n.me/4eYXCFL.png
Quote from Denis on February 18, 2022, 13:45After enabling this extension, I get the following message when using ajaxified shop (both with swoof influence enabled and disabled):
Proxy Error (502)
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the requestReason: Error reading from remote server
After enabling this extension, I get the following message when using ajaxified shop (both with swoof influence enabled and disabled):
Proxy Error (502)
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
Quote from Denis on February 18, 2022, 13:49Update, it only works if I use "swoof" as a slug, instead of our "filter". Is there any change to change this behavior?
Update, it only works if I use"swoof" as a slug, instead of our"filter". Is there any change to change this behavior?
Quote from Pablo Borysenco on February 21, 2022, 11:42hello
Try to use the slug: "filtered"
hello
Try to use the slug:"filtered"