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

#   Identical Products with minor differences

##

- **[Smiler](/forum/user/2107-smiler "View Smiler's Profile")**
- [![Smiler's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2107.jpg)](/forum/user/2107-smiler "View Smiler's Profile") Topic Author
- [ Offline](/forum/user/2107-smiler)

Less More

- Posts: 52
- Thank you received: 2
-
-
-
- [](http://www.arran-cats.com)
-

10 years 7 months ago [\#237996](#237996) by [Smiler](/forum/user/2107-smiler "View Smiler's Profile")  *[Identical Products with minor differences](/forum/32-content-creation/884108-identical-products-with-minor-differences#237996 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.51 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Firefox  My wife wants to use Hikashop business for running her bookshop. It is unusual in that it only sells books by one author. The author wrote 20 books and my wife scours the net to collect these to sell, more as a resource for fans than any profit (maybe in a million years). Our problem is this.....  Each individual book is unique, one might be inscribed by the author, one may have a drawing by his wife, another, some unique feature someone might be looking for and obviously each book will be in a different condition. So, we need to have each and every book available as a separate product. The problem arises in that we might have 20 copies of each book and they obviously all have the same title so the product code generated causes an error, if we put our own code in the SEO alias generates an error and if we change that it messes up the SEO. I realise this is an unusual situation, the fans of these books are very picky and want to see what they are getting, characteristics and variants won't cut it. I'm thinking we need a random product code generator but how will we solve the SEO alias?  Can anyone think of another solution? (Giving up is not a possibility!)")* was created by *[Smiler](/forum/user/2107-smiler "View Smiler's Profile")*

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.51
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Firefox

My wife wants to use Hikashop business for running her bookshop. It is unusual in that it only sells books by one author. The author wrote 20 books and my wife scours the net to collect these to sell, more as a resource for fans than any profit (maybe in a million years). Our problem is this.....

Each individual book is unique, one might be inscribed by the author, one may have a drawing by his wife, another, some unique feature someone might be looking for and obviously each book will be in a different condition. So, we need to have each and every book available as a separate product. The problem arises in that we might have 20 copies of each book and they obviously all have the same title so the product code generated causes an error, if we put our own code in the SEO alias generates an error and if we change that it messes up the SEO.
I realise this is an unusual situation, the fans of these books are very picky and want to see what they are getting, characteristics and variants won't cut it. I'm thinking we need a random product code generator but how will we solve the SEO alias?

Can anyone think of another solution? (Giving up is not a possibility!)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODg0MTA4LWlkZW50aWNhbC1wcm9kdWN0cy13aXRoLW1pbm9yLWRpZmZlcmVuY2VzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 7 months ago [\#237998](#237998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Identical Products with minor differences](/forum/32-content-creation/884108-identical-products-with-minor-differences#237998 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.51 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Firefox  My wife wants to use Hikashop business for running her bookshop. It is unusual in that it only sells books by one author. The author wrote 20 books and my wife scours the net to collect these to sell, more as a resource for fans than any profit (maybe in a million years). Our problem is this.....  Each individual book is unique, one might be inscribed by the author, one may have a drawing by his wife, another, some unique feature someone might be looking for and obviously each book will be in a different condition. So, we need to have each and every book available as a separate product. The problem arises in that we might have 20 copies of each book and they obviously all have the same title so the product code generated causes an error, if we put our own code in the SEO alias generates an error and if we change that it messes up the SEO. I realise this is an unusual situation, the fans of these books are very picky and want to see what they are getting, characteristics and variants won't cut it. I'm thinking we need a random product code generator but how will we solve the SEO alias?  Can anyone think of another solution? (Giving up is not a possibility!)")*

Hi,

I don't see the problem in have different product codes and different aliases for each one.

If you don't want the check on the aliases you can remove the code: Code:

if(!empty($product-&gt;product_alias)){ $query = 'SELECT product_id FROM '.hikashop_table('product').' WHERE product_alias='.$this-&gt;db-&gt;Quote($product-&gt;product_alias); $this-&gt;db-&gt;setQuery($query); $product_with_same_alias = $this-&gt;db-&gt;loadResult(); if($product_with_same_alias &amp;&amp; (empty($product-&gt;product_id) &#124;&#124; $product_with_same_alias!=$product-&gt;product_id)){ $app-&gt;enqueueMessage(JText::_( 'ELEMENT_WITH_SAME_ALIAS_ALREADY_EXISTS' ), 'error'); JRequest::setVar( 'fail', $product ); return false; } }

in the file administrator/components/com_hikashop/classes/product.php
However, in that case, you need to have the "remove categories and products ids from URLs" setting of the HikaShop configuration turned off. Because, without the id in the URL, the system can only rely on the alias to distinguish between the products and if several have the same alias, all the links will go the same product.

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

- **[Smiler](/forum/user/2107-smiler "View Smiler's Profile")**
- [![Smiler's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2107.jpg)](/forum/user/2107-smiler "View Smiler's Profile") Topic Author
- [ Offline](/forum/user/2107-smiler)

Less More

- Posts: 52
- Thank you received: 2
-
-
-
- [](http://www.arran-cats.com)
-

10 years 7 months ago [\#238134](#238134) by [Smiler](/forum/user/2107-smiler "View Smiler's Profile")  Replied by *[Smiler](/forum/user/2107-smiler "View Smiler's Profile")* on topic *[Identical Products with minor differences](/forum/32-content-creation/884108-identical-products-with-minor-differences#238134 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.51 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Firefox  My wife wants to use Hikashop business for running her bookshop. It is unusual in that it only sells books by one author. The author wrote 20 books and my wife scours the net to collect these to sell, more as a resource for fans than any profit (maybe in a million years). Our problem is this.....  Each individual book is unique, one might be inscribed by the author, one may have a drawing by his wife, another, some unique feature someone might be looking for and obviously each book will be in a different condition. So, we need to have each and every book available as a separate product. The problem arises in that we might have 20 copies of each book and they obviously all have the same title so the product code generated causes an error, if we put our own code in the SEO alias generates an error and if we change that it messes up the SEO. I realise this is an unusual situation, the fans of these books are very picky and want to see what they are getting, characteristics and variants won't cut it. I'm thinking we need a random product code generator but how will we solve the SEO alias?  Can anyone think of another solution? (Giving up is not a possibility!)")*

Thanks Nicolas, I was just worried about any impact to SEO having either no or a made up alias might have. We'll leave it as is and just put our own codes and alias in.

Thanks once again.

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

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