[Skip to main content](#vessel-content)

#   How could I set canonical from category id?

##

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 315
-
-
-
- [](http://www.d-dd.ru)
-

10 years 4 months ago [\#243414](#243414) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  *[How could I set canonical from category id?](/forum/44-mass-actions/885151-how-could-i-set-canonical-from-category-id#243414 "-- HikaShop version -- : 2.6.3  I have tried this mass action:  but get this url:  category&#95;id don't changed to it's value.  How could do this trtick?")* was created by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")*

-- HikaShop version -- : 2.6.3

I have tried this mass action:

[ ![2016-06-18&#95;21-34-54.png](/forum/attachment/32180) ](/forum/attachment/32180 "...8&#95;21-34-54.png")

Code:

{category_id}/{product_id}-{product_alias}

but get this url: Code:

http://flyshoes.ru/{category_id}/235-new-balance-574-blue-i-krossovki-zhenskie-golubye-i

category_id don't changed to it's value.

How could do this trtick?

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

- [ ![2016-06-18&#95;21-34-54.png](/forum/attachment/32180) ](/forum/attachment/32180 "...8&#95;21-34-54.png") [ ](/forum/attachment/32180?download=1 "...8&#95;21-34-54.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84ODUxNTEtaG93LWNvdWxkLWktc2V0LWNhbm9uaWNhbC1mcm9tLWNhdGVnb3J5LWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 4 months ago [\#243583](#243583) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How could I set canonical from category id?](/forum/44-mass-actions/885151-how-could-i-set-canonical-from-category-id#243583 "-- HikaShop version -- : 2.6.3  I have tried this mass action:  but get this url:  category&#95;id don't changed to it's value.  How could do this trtick?")*

Hi,

This is not possible that way, but could be an interesting feature.
For now, you have to add a filter on the desired category and replace "{category_id}" in the action by the category name directly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84ODUxNTEtaG93LWNvdWxkLWktc2V0LWNhbm9uaWNhbC1mcm9tLWNhdGVnb3J5LWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")**
- [![progreccor's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4816.jpg)](/forum/user/4816-progreccor "View progreccor's Profile") Topic Author
- [ Offline](/forum/user/4816-progreccor "Москва")
- SEO, webdesign

Less More

- Posts: 2293
- Thank you received: 315
-
-
-
- [](http://www.d-dd.ru)
-

10 years 4 months ago [\#243660](#243660) by [progreccor](/forum/user/4816-progreccor "View progreccor's Profile")  Replied by *[progreccor](/forum/user/4816-progreccor "View progreccor's Profile")* on topic *[How could I set canonical from category id?](/forum/44-mass-actions/885151-how-could-i-set-canonical-from-category-id#243660 "-- HikaShop version -- : 2.6.3  I have tried this mass action:  but get this url:  category&#95;id don't changed to it's value.  How could do this trtick?")*

my general goal is to set all canonical url for all goods in shop.

Many problems appears if I simply set "Use canonical URL and generate it if missing" - some addreses get wrong value. So I need to manually crawl the site with particular order. That is not good.

And I think that set canoncial address is good option in mass actions.

All work fine but I can't get category canonical address to include it in canonical address for product (like this: {category_canonical}/{product_id}-{product_alias})

So there is no solution for this? It is really terrible now to mannualy set all canonical addreses....

---

Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84ODUxNTEtaG93LWNvdWxkLWktc2V0LWNhbm9uaWNhbC1mcm9tLWNhdGVnb3J5LWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 4 months ago [\#243700](#243700) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How could I set canonical from category id?](/forum/44-mass-actions/885151-how-could-i-set-canonical-from-category-id#243700 "-- HikaShop version -- : 2.6.3  I have tried this mass action:  but get this url:  category&#95;id don't changed to it's value.  How could do this trtick?")*

Hi,

No solution for this for the moment, I have added this on our todo list.

My solution allow to not edit all the products one by one but to set the canonical url to the products categories per categories which is quicker. Simply use the mass actions, and filter to a category, then for the path use "MY_CATEGORY/{product_id}-{product_alias}"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL21hc3MtYWN0aW9ucy84ODUxNTEtaG93LWNvdWxkLWktc2V0LWNhbm9uaWNhbC1mcm9tLWNhdGVnb3J5LWlkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.219 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
