Bug report regarding seo url regex
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 mcdeth on March 29, 2024, 01:46I tried email, but was asked to write on forum so here it is.
URL of the page filter in seo url is ALWAYS a regex and it can cause two problems.
First problem: first entry is first in priority
Priority is based on first entry, that is:
If you add first
/gender-girl/
and then you add new filter for seo url, the first one will take priority over new entry
/gender-girl/product_cat-lego/
and if you add in future new, first onewill take over priority too
/gender-girl/product_cat-lego/age-5
and there's no possibility to change priority without re-adding all. list can get big over time. there's no possibility not to use regex (match ONLY /gender-girl/ ). It's difficult to scale, quite difficult to reorganize categories in future. Solution would be adding a regex, to match only exact URL if needed, or not. or adding at least possibility to change priority
Another thing regarding regex is that
/gender-girl/product_cat-{any}/
will work if you chose one category
/gender-girl/product_cat-lego/
AND when you chose more than one category too
/gender-girl/product_cat-lego-blankets/
so it makes a weird sets with names, for example:
{product_cat} for girl
if user chooses 2 different categories along with gender, it will result in:
blankets and lego for a girl
It's extremely difficult to manage and scale.
I tried email, but was asked to write on forum so here it is.
URL of the page filter in seo url is ALWAYS a regex and it can cause two problems.
First problem: first entry is first in priority
Priority is based on first entry, that is:
If you add first
/gender-girl/
and then you add new filter for seo url, the first one will take priority over new entry
/gender-girl/product_cat-lego/
and if you add in future new, first onewill take over priority too
/gender-girl/product_cat-lego/age-5
and there's no possibility to change priority without re-adding all. list can get big over time. there's no possibility not to use regex (match ONLY /gender-girl/ ). It's difficult to scale, quite difficult to reorganize categories in future. Solution would be adding a regex, to match only exact URL if needed, or not. or adding at least possibility to change priority
Another thing regarding regex is that
/gender-girl/product_cat-{any}/
will work if you chose one category
/gender-girl/product_cat-lego/
AND when you chose more than one category too
/gender-girl/product_cat-lego-blankets/
so it makes a weird sets with names, for example:
{product_cat} for girl
if user chooses 2 different categories along with gender, it will result in:
blankets and lego for a girl
It's extremely difficult to manage and scale.
Quote from Pablo Borysenco on March 29, 2024, 12:32Hello
What plugin version number are you using?
Please describe in more detail what result you want to get
for custom link analysis you can use hooks - https://products-filter.com/hook/woof_seo_do_index
Hello
What plugin version number are you using?
Please describe in more detail what result you want to get
for custom link analysis you can use hooks - https://products-filter.com/hook/woof_seo_do_index
Quote from mcdeth on March 29, 2024, 12:55I'm using latest version, I bought plugin few days ago.
What I think the URL Seo option needs is more detailed regex or possibility to match URLs.
The URL for top category:
/gender-girl/
Shouldn't match this:
/gender-girl/product_cat-{any}-and-product_cat-xxxxx/
or
/gender-girl/product_cat-{any}/age-10/
I want to make seo title etc only for specified url, but script makes it a regex by automatic for whole url. If I wanted to match all 3 examples, it would be better to have option to use in url:
/gender-girl/product_cat-{any}/*
2nd thing is priority. i want to change the priority (though it can be partially solved by regex).
If I make a rule for
/gender-girl/
any FUTURE NEW RULES containing similar url will be ignored, for example
/gender-girl/product_cat-toys/
won't work. would be good to change priorities in rules, not randomly by the date of creation.
hope my description is clear
I'm using latest version, I bought plugin few days ago.
What I think the URL Seo option needs is more detailed regex or possibility to match URLs.
The URL for top category:
/gender-girl/
Shouldn't match this:
/gender-girl/product_cat-{any}-and-product_cat-xxxxx/
or
/gender-girl/product_cat-{any}/age-10/
I want to make seo title etc only for specified url, but script makes it a regex by automatic for whole url. If I wanted to match all 3 examples, it would be better to have option to use in url:
/gender-girl/product_cat-{any}/*
2nd thing is priority. i want to change the priority (though it can be partially solved by regex).
If I make a rule for
/gender-girl/
any FUTURE NEW RULES containing similar url will be ignored, for example
/gender-girl/product_cat-toys/
won't work. would be good to change priorities in rules, not randomly by the date of creation.
hope my description is clear
Quote from Pablo Borysenco on March 29, 2024, 14:11Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
In this case, you may need to customize the code. An example - wp-content\plugins\woocommerce-products-filter\ext\url_request\classes\seo.php - https://share.pluginus.net/image/i20240329141107.png
and use {end} in url rules
Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
In this case, you may need to customize the code. An example - wp-content\plugins\woocommerce-products-filter\ext\url_request\classes\seo.php - https://share.pluginus.net/image/i20240329141107.png
and use {end} in url rules
Quote from mcdeth on March 29, 2024, 14:26Well... I was kinda hoping it gets to future updates as it's pretty basic logic, because current scripts logic is like:
If it's a kid then call him a kid.
If it's a girl, then call him a kid too, because we already defined it's a kid before birth.
In other words:
if you define $a = 0, then script thinks $ab = 0 too.
Well... I was kinda hoping it gets to future updates as it's pretty basic logic, because current scripts logic is like:
If it's a kid then call him a kid.
If it's a girl, then call him a kid too, because we already defined it's a kid before birth.
In other words:
if you define $a = 0, then script thinks $ab = 0 too.
Quote from Pablo Borysenco on April 1, 2024, 11:32Hello
This is a different logic, searching for a match
But I will pass this on to the developers
Hello
This is a different logic, searching for a match
But I will pass this on to the developers
Quote from mcdeth on April 1, 2024, 13:37Thanks, searching for a match would make a sense when you can change priority, just as here:
https://share.pluginus.net/video/v20240401130839.mp4
;)
Thanks, searching for a match would make a sense when you can change priority, just as here:
https://share.pluginus.net/video/v20240401130839.mp4
;)
Quote from Pablo Borysenco on April 2, 2024, 11:18Hello
ok
welcome;)
Hello
ok
welcome;)
Quote from mcdeth on April 22, 2024, 20:18I still don't get it what's the logic behind setting seo names and robots
Settings:
URL depth: 2
Rules (URL of page): /filter/color-black/
H1/Meta title: Black clothes
So once we use filter, the website url after filtering is: shop . com/filter/color-black/
Then if I use filter again,for example additional filter like a category:
/filter/color-black/product_cat-tshirt/
/filter/color-black/product_cat-underpants/
These links are still doindex and ALL have title "Black clothes". For google and customers it's logically a duplicate and extremely confusing = the seo extensions makes more harm than good.
You could possibly say I can be more specific and set filters for each category:
/filter/color-black/product_cat-{any}/ = set it as {pa_cat} black
but it doesn't make sense because I have to think of every possible combination! Like:
/filter/color-black/size-{any}/
/filter/color-black/pattern-{any}/
https://pasteboard.co/CzWZfLBTZrPl.jpg
So at the end, all I wanted to do is black clothes but I have to create dozen of filters
I still don't get it what's the logic behind setting seo names and robots
Settings:
URL depth: 2
Rules (URL of page): /filter/color-black/
H1/Meta title: Black clothes
So once we use filter, the website url after filtering is: shop . com/filter/color-black/
Then if I use filter again,for example additional filter like a category:
/filter/color-black/product_cat-tshirt/
/filter/color-black/product_cat-underpants/
These links are still doindex and ALL have title"Black clothes". For google and customers it's logically a duplicate and extremely confusing = the seo extensions makes more harm than good.
You could possibly say I can be more specific and set filters for each category:
/filter/color-black/product_cat-{any}/ = set it as {pa_cat} black
but it doesn't make sense because I have to think of every possible combination! Like:
/filter/color-black/size-{any}/
/filter/color-black/pattern-{any}/
https://pasteboard.co/CzWZfLBTZrPl.jpg
So at the end, all I wanted to do is black clothes but I have to create dozen of filters
Quote from Pablo Borysenco on April 23, 2024, 11:09Hello
Rules (URL of page): /filter/color-black/ -- H1/Meta title: Black clothes - In this case, I don’t know why you added the description “clothing” for the color black. In this case you need to use /filter/color-black/product_cat-clothing/ - and it will work correctly
Or if you are on the clothing category page (any result is clothing) - /clothes/filter/color-black/
But if you want to link to subcategories, you should create rules for all categories that are logically clothing. /filter/color-black/product_cat-pants
In any case, if this does not suit you, you can implement your custom logic. There are enough hooks for this - woof_seo_meta_title, woof_seo_h1, woof_seo_meta_description, woof_seo_text
Hello
Rules (URL of page): /filter/color-black/ -- H1/Meta title: Black clothes - In this case, I don’t know why you added the description “clothing” for the color black. In this case you need to use /filter/color-black/product_cat-clothing/ - and it will work correctly
Or if you are on the clothing category page (any result is clothing) - /clothes/filter/color-black/
But if you want to link to subcategories, you should create rules for all categories that are logically clothing. /filter/color-black/product_cat-pants
In any case, if this does not suit you, you can implement your custom logic. There are enough hooks for this - woof_seo_meta_title, woof_seo_h1, woof_seo_meta_description, woof_seo_text