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

#   Wrong product is shown

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 10 months ago [\#182102](#182102) by [cgonline](/forum/user/34948-cgonline "View cgonline's Profile")  *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182102 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")* was created by *[cgonline](/forum/user/34948-cgonline "View cgonline's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.8
-- Browser(s) name and version -- : Chrome/Ie/Firefox (latest)
-- Error-message(debug-mod must be tuned on) -- : Wrong product is shown

When going to one specific product page, the wrong product is shown.
Titles are almost identical, but not the same.

Example:
Url1: /lines/nylon/hunter-freestyle-retriever-line.html
Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html

The product of url2 shows in both cases (even on the wrong canonical url which are different in DB).
How can I fix that so the right product shows instead?

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

11 years 10 months ago [\#182121](#182121) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182121 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")*

Hi,

If you enable the option "Remove products and categories id in URLs " in Configuration &gt; Features &gt; SEF that should solve this issue.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 10 months ago [\#182265](#182265) by [cgonline](/forum/user/34948-cgonline "View cgonline's Profile")  Replied by *[cgonline](/forum/user/34948-cgonline "View cgonline's Profile")* on topic *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182265 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")*

Hi Xavier

Thank you, but that option have been enabled since the beginning.. ![:)](/media/kunena/emoticons/8.png ":)")
These are the settings: [ i.imgur.com/JqyyTIq.png](http://i.imgur.com/JqyyTIq.png)

Any other known solutions? (Or is this a known bug..?) ![;)](/media/kunena/emoticons/11.png ";)")
I am a developer myself and could probably find the issue, but I have no clue where to look (where the id's are worked out according to the url/menuitem/prod id)..

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

11 years 10 months ago [\#182267](#182267) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182267 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")*

Hi,

I wanted to say "Disable".
Are the Alias of the two products differrent ? Or the sames, if the sames so please edit them to have different aliases.

To find the source of the problem I think that there is some checks to do in the file "components/com_hikashop/router.php" function "hiakshop_retrieve_url_id()".

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 10 months ago -  11 years 10 months ago [\#182630](#182630) by [cgonline](/forum/user/34948-cgonline "View cgonline's Profile")  Replied by *[cgonline](/forum/user/34948-cgonline "View cgonline's Profile")* on topic *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182630 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")*

Awesome. If found the issue through the code.

The issue is that real product name have more non a-z characters in it that the router (regex) cannot find.
On top of that, the product didnt have a computed alias set. But - The computed alias gets a match when the router runs, because it trims out the non a-z characters.
All I had to do, was to find the product in the backend and press "save" on it.

So, a final question: There are many products without an alias and going through them manually and press Save will work, but there are many.
Is there some way to mass generate new alias's for all products (ie. do a mass Save function)?

Last edit: 11 years 10 months ago by [cgonline](/forum/user/34948-cgonline "View cgonline's Profile").

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

11 years 10 months ago [\#182641](#182641) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Wrong product is shown](/forum/26-product-category-display/873421-wrong-product-is-shown#182641 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.8 -- Browser(s) name and version -- : Chrome/Ie/Firefox (latest) -- Error-message(debug-mod must be tuned on) -- : Wrong product is shown  When going to one specific product page, the wrong product is shown. Titles are almost identical, but not the same.  Example: Url1: /lines/nylon/hunter-freestyle-retriever-line.html Url2: /lines/nylon/hunter-freestyle-retriever-reflect-line.html  The product of url2 shows in both cases (even on the wrong canonical url which are different in DB). How can I fix that so the right product shows instead?")*

Hi,

The mass actions don't call the save function of the product class, so the aliases will not be added automatically.
What can be done is create a little function which will just call the save function to save the products in a foreach.

Or, you can export the products, fill the product alias column in the csv file an import it back.

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

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

[](#top)
