SEF URL for product variants - Forum | JoomShaper
Staff replied EasyStore

SEF URL for product variants

Asked by Alejandro 10 months ago Last activity 8 months ago

Hello,

I know this is a possible feature that is on EasyStore's request list, and I need some insight on how to implement it without affecting the core of EasyStore.

Currently, a product with a variant is dynamically displayed in the URL through the parameter ?variant=[variant ID] for search engines and platforms such as Google Merchant or Meta Catalog. What would be the correct way to make a plugin that rewrites the path, for example, instead of:

https://mystore.com/shop-categories/coats/dapperdenim-t-shirt?variant=443

it would be:

https://mystore.com/shop-categories/coats/dapperdenim-t-shirt-size-l-color-taupe

Is it possible to develop this without affecting the EasyStore core?

Thank you

2 replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out. I have checked your issue and captured an sreencast video. Please watch the video.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Alejandro Asked this

Hello,

Thank you for your response.

I watched the video, but that's not the problem. In fact, EasyStore works perfectly for filtering.

My question, or rather my suggestion, is that I would like to be able to access a specific product and variant via a friendly URL. Do you understand what I mean?

Let's take the Allura template and this product as an example:

https://demo3.joomshaper.com/2023/allura/index.php/shop-categories/coats/dapperdenim-t-shirt

By default, the variant of that product is Size: S and Color: Taupe.

If I select Size: M, the URL changes to:

https://demo3.joomshaper.com/2023/allura/index.php/shop-categories/coats/dapperdenim-t-shirt?variant=440

My suggestion for EasyStore, or rather my requirement, is that if I have friendly URLs enabled, ?variant=440 should be removed and the URL should be:

https://demo3.joomshaper.com/2023/allura/index.php/shop-categories/coats/dapperdenim-t-shirt-size-m-color-taupe

The aim is to improve EasyStore's SEO and make it easier to integrate with Google Merchant or Meta Catalog.

Thank you

Toufiq Senior Staff
10 months ago · edited

Understood. I have forwarded your issue to our developer team, and they'll review it for possible improvement.

Alejandro Asked this

Hello!

Any news on this feature?

Best regards

Toufiq Senior Staff

Please check the latest version.

Alejandro Asked this

Hello,

That feature doesn't appear in the changelog for the latest version (EasyStore v1.7.5)

I just tested it in a store I am setting up, and it still appears as ?variant=[VARIANT_ID] in the URL

Or can you tell me how to set it up?

Thank you

Toufiq Senior Staff

Ops my mistake. I thoght it was dynamic content of Page Builder. I will inform again our team. Thanks

Log in to reply.