Ask Your Question
0

What is the method for modifying WooCommerce product URLs by including SKU and deleting the title?

asked 2022-07-15 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-08 02:00:00 +0000

bukephalos gravatar image

One possibility is to use a plugin like "Permalink Manager Pro" which allows for customizing product URL structures. Here's an example of how to modify the structure to include the SKU and remove the title:

  1. Install and activate Permalink Manager Pro plugin.
  2. Go to WordPress dashboard > Permalink Manager > Permastructures tab.
  3. Find the "Product category" and "Product tag" sections and click "Edit":
  4. In "Product permalink structure" field enter: %product_sku%/.
  5. In "Product category" and "Product tag" settings turn on "Replace regular product permalinks" option.
  6. Go to "Custom permalinks" tab, click the "Add new" button and fill the form:
  • Permalink type: Product
  • Title: [leave blank]
  • Permalink: %product_sku%/

Click "Publish" to save changes.

This will modify your product URLs to include the SKU and remove the title from the URL.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-15 11:00:00 +0000

Seen: 13 times

Last updated: Jan 08 '23