Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

hedgehog

Custom canonical urls

Recommended Posts

I have a lot of mostly identical products, e.g "marbles 20pcs" and "marbles 50pcs". So, i want to make a "marbles 20pcs" a canonical page, and place a relevant canonical tag on the "marbles 50pcs" product page. Is there any way to do it? There is a paid plugin for PS but no options for TB.

I know that the best solution would be to merge the two products into one with options but still would be great to have an opportunity to edit canonical. Right now they just point to the product page itself, with no way to edit it.

Share this post


Link to post
Share on other sites

You would need to override the function we are using for canonical urls and make a module to interface with it, doing what you are looking for. 

Share this post


Link to post
Share on other sites
2 hours ago, lesley said:

You would need to override the function we are using for canonical urls and make a module to interface with it, doing what you are looking for. 

is there any plans adding it in the next versions, by chance?

Share this post


Link to post
Share on other sites

In my view, the best solution would be to rename the products.

i think eg
marbles 50pcs - variant 1
marbles 50pcs - variant 2
etc

if necessary in the htaccess add / change

example

# Redirect
Redirect 301 category/marbles-50pcs https://myshop/category/marbles-50pcs-variant_1

or so

Edited by colorful-ant

Share this post


Link to post
Share on other sites
12 hours ago, colorful-ant said:

What happens if you look at the duplicate urls tool in the back office?
Does it show problem with the urls?

If yes, your problem seems to be here.

The urls are not duplicate, the names too. But the descriptions are identical. So it will be a duplicated content for google. And if someone links to the 2nd product, the link juice will not pass to the 1st product as I'd want (if no canonical tags are set)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×