Link to home
Start Free TrialLog in
Avatar of sharingsunshine
sharingsunshineFlag for United States of America

asked on

Help Making Woo Commerce Url's Consistent

I have a new installation of woo commerce and I have noticed the urls are inconsistent regarding my products on the site.  Some urls are showing the product id and others aren't.  My preference is to not show the id.

https://www.theherbsplace.com/product/sf_p_1458/[code] - With id

[code]https://www.theherbsplace.com/product/neroli-organic-5-ml-100-pure-essential-oil/

Open in new window

- Without id

It seems when the id is in the url it goes to a category page first rather than the single product page.

I have tried changing the perma-links to something else then saving them.  Then immediately putting them back to their original setting and save again but there was no change.

Please show me how to get the product url's consistent with no id on them.
Avatar of David Favor
David Favor
Flag of United States of America image

Check your permalinks settings.

If you have mixed URLs, there may also be some sort of WooCommerce additional permalinks settings to explore also.
Avatar of sharingsunshine

ASKER

your link says
If you are using pretty permalinks, the default will be yourdomain.com/product/product-name.

Open in new window


Which is my point, it isn't supposed to have the product id appended on to the url.

I need to know why some have the product id
Best option will be to open a ticket with WooCommerce, as each version of Woo seems to work slightly different.

Whenever I hit a Woo problem, I just ask Woo support. I never try to figure out how Woo works... as the code is cobbled together so... oddly... difficult to figure it all out.
Please can you post a screenshot of your permalink settings? Include the "Optional" and the "Product" Permalinks like this:
wc-perma.JPG
ASKER CERTIFIED SOLUTION
Avatar of Adrian Thompson
Adrian Thompson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You have answered my question as to why this happened.  Looking at my sitemap I can see there are too many to change manually.  Therefore, I will just keep them they way they are.
Thanks for your continued help.
Thanks! You are welcome