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

#   Stupid question on product alias

##

- **[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")**
- [![brentwilliams2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile") Topic Author
- [ Offline](/forum/user/1200-brentwilliams2)

Less More

- Posts: 78
- Thank you received: 5
-
-

13 years 10 months ago [\#82860](#82860) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#82860 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")* was created by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")*

I apologize in advance, because I'm sure it's easy, but I just can't find the answer...

How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?

Thanks!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#82974](#82974) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#82974 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Hi,

What do you called "product alias" ?
Products have a product code which is automatically generated by HikaShop is empty but it could be change in the product editing page.
In the left column, you would see the option "Code" (just before "tax category", "brand"... quantity, etc).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")**
- [![brentwilliams2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile") Topic Author
- [ Offline](/forum/user/1200-brentwilliams2)

Less More

- Posts: 78
- Thank you received: 5
-
-

13 years 10 months ago [\#82986](#82986) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  Replied by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#82986 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

I see the product code, but as far as I can tell, it does not change the main URL of the product. In other words, when I'm clicking through my shop, the URL that is used for the products does not seem to be derived from the "Code" field - they are still using the URL structure from the product title.

I want to find out if Hikashop uses an alias like the core joomla articles does.

Does that make sense?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

13 years 10 months ago [\#83015](#83015) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#83015 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Products don't have an alias for the URL like articles. The text in the URL directly comes from the product name.

It's not easy to change. You would have to create a custom field of the table "product" in order to enter the alias for each product and then change the code:
stringURLSafe(strip_tags($element-&gt;product_name))
in the different files of HikaShop and replace product_name by the column name of your custom product field.
The main file where to change that is components/com_hikashop/views/product/view.html.php but it is at several places, including other files, and not always with the same $element variable name...

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

- **[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")**
- [![brentwilliams2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile") Topic Author
- [ Offline](/forum/user/1200-brentwilliams2)

Less More

- Posts: 78
- Thank you received: 5
-
-

13 years 10 months ago [\#83057](#83057) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  Replied by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#83057 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Thanks for the update, Nicolas. Would love to see this feature in a later version.

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

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

13 years 10 months ago [\#83328](#83328) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#83328 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

This isn't a stupid question. And this is certainly an important feature for SEO and should be a high priority.

I have been very careful to craft my product codes into meaningful aliases and am very surprised and disappointed there is not an option to use them in the url.

Please consider some sort of alias support as a feature in the near future.

Thanks!

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

13 years 10 months ago [\#83634](#83634) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#83634 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

It's in the TODO list.

Usually, product names should be perfect for SEO...

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

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

13 years 10 months ago [\#83756](#83756) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#83756 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Glad to hear this will be officially supported soon.

In some quick testing, it appears that everything after the product id in the url is ignored. Therefore, I should be able to make changes to URL with very little danger of breaking anything. Is this true?

I have attached a grep of the locations where the alias is computed from the product_name. Is it safe to simply change all these locations to use product_code instead of name? Changes in the cart and plugins concern me a little.

Sure will be nice once this alias code is consolidated some place ![:)](/media/kunena/emoticons/3.png ":)")

Thanks for all your help!

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

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

13 years 10 months ago [\#84562](#84562) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#84562 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Hello? Can I get some help here? I can figure out the changes, but want to make sure something unexpected isn't going to bite me.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

13 years 10 months ago [\#85193](#85193) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Stupid question on product alias](/forum/4-how-to/76918-stupid-question-on-product-alias#85193 "I apologize in advance, because I'm sure it's easy, but I just can't find the answer...  How do you set the alias for the product? It seems to be dynamically set by the title, but our processes change the name of our products after a set period of time (We sell event registrations, so the title changes after the event has initially run). But when I do that, the alias changes. Any help?  Thanks!")*

Hi,

Indeed, the places that you found in your grep is where you should change the product_name to the product_code if you want the code instead of the name of the product in the URL.
There shouldn't be any surprise if you change the product_name by product_code there.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2OTE4LXN0dXBpZC1xdWVzdGlvbi1vbi1wcm9kdWN0LWFsaWFzP3RtcGw9bWFya2Rvd24=) 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.100 seconds

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