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

#   Same product name is not working but ID should make the difference

##

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 9 months ago [\#287332](#287332) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  *[Same product name is not working but ID should make the difference](/forum/19-hikamarket/893713-same-product-name-is-not-working-but-id-should-make-the-difference#287332 "-- HikaShop version -- : 3.2.2 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : A product with the same code already exists  Hello,  I have a product Name &quot;Potatoe&quot; from one vendor, with the ID in the URL : .../156-potatoe  When I want to add a product with the same name &quot;Potatoe&quot; from a different vendor, I get the error message: &quot;A product with the same code already exists&quot;  Since the ID is in the URL and it should be a different one... I'm wondering why it's not enough to make the difference ? The debug mode isn't helping.  Can you please help me?  Regards,  Topic maybe usefull:   www.hikashop.com/forum/product-category-...cs-error.html#193420")* was created by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")*

-- HikaShop version -- : 3.2.2
-- HikaMarket version -- : 2.0.1
-- Joomla version -- : 3.8.4
-- PHP version -- : 7.1.7
-- Browser(s) name and version -- : CHROME
-- Error-message(debug-mod must be tuned on) -- : A product with the same code already exists

Hello,

I have a product Name "Potatoe" from one vendor, with the ID in the URL : .../156-potatoe

When I want to add a product with the same name "Potatoe" from a different vendor, I get the error message:
"A product with the same code already exists"

Since the ID is in the URL and it should be a different one... I'm wondering why it's not enough to make the difference ?
The debug mode isn't helping.

Can you please help me?

Regards,

Topic maybe usefull:
[ www.hikashop.com/forum/product-category-...cs-error.html#193420](https://www.hikashop.com/forum/product-category-display/875423-add-values-to-characteristics-error.html#193420)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzNzEzLXNhbWUtcHJvZHVjdC1uYW1lLWlzLW5vdC13b3JraW5nLWJ1dC1pZC1zaG91bGQtbWFrZS10aGUtZGlmZmVyZW5jZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 9 months ago [\#287333](#287333) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same product name is not working but ID should make the difference](/forum/19-hikamarket/893713-same-product-name-is-not-working-but-id-should-make-the-difference#287333 "-- HikaShop version -- : 3.2.2 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : A product with the same code already exists  Hello,  I have a product Name &quot;Potatoe&quot; from one vendor, with the ID in the URL : .../156-potatoe  When I want to add a product with the same name &quot;Potatoe&quot; from a different vendor, I get the error message: &quot;A product with the same code already exists&quot;  Since the ID is in the URL and it should be a different one... I'm wondering why it's not enough to make the difference ? The debug mode isn't helping.  Can you please help me?  Regards,  Topic maybe usefull:   www.hikashop.com/forum/product-category-...cs-error.html#193420")*

Hello,

You should use the vendor product prefix code.
[ www.hikashop.com/support/documentation/1...onfig\_market\_general](https://www.hikashop.com/support/documentation/143-hikamarket-configuration.html#config_market_general)

Regards,

---

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

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

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 9 months ago [\#287674](#287674) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[Same product name is not working but ID should make the difference](/forum/19-hikamarket/893713-same-product-name-is-not-working-but-id-should-make-the-difference#287674 "-- HikaShop version -- : 3.2.2 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : A product with the same code already exists  Hello,  I have a product Name &quot;Potatoe&quot; from one vendor, with the ID in the URL : .../156-potatoe  When I want to add a product with the same name &quot;Potatoe&quot; from a different vendor, I get the error message: &quot;A product with the same code already exists&quot;  Since the ID is in the URL and it should be a different one... I'm wondering why it's not enough to make the difference ? The debug mode isn't helping.  Can you please help me?  Regards,  Topic maybe usefull:   www.hikashop.com/forum/product-category-...cs-error.html#193420")*

Hello,

Should I place "%d" in the prefix field ? I tried. I get the same error when I try to save a same name product with another vendor...
"A product with the same code already exists"

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzNzEzLXNhbWUtcHJvZHVjdC1uYW1lLWlzLW5vdC13b3JraW5nLWJ1dC1pZC1zaG91bGQtbWFrZS10aGUtZGlmZmVyZW5jZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 9 months ago [\#287675](#287675) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same product name is not working but ID should make the difference](/forum/19-hikamarket/893713-same-product-name-is-not-working-but-id-should-make-the-difference#287675 "-- HikaShop version -- : 3.2.2 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.4 -- PHP version -- : 7.1.7 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : A product with the same code already exists  Hello,  I have a product Name &quot;Potatoe&quot; from one vendor, with the ID in the URL : .../156-potatoe  When I want to add a product with the same name &quot;Potatoe&quot; from a different vendor, I get the error message: &quot;A product with the same code already exists&quot;  Since the ID is in the URL and it should be a different one... I'm wondering why it's not enough to make the difference ? The debug mode isn't helping.  Can you please help me?  Regards,  Topic maybe usefull:   www.hikashop.com/forum/product-category-...cs-error.html#193420")*

Hello,

The setting will use the prefix and then add the vendor_id plus an underscore.
For example, if you set-up the prefix "v" and the vendor id is 3, the product code will be Code:

v3_product_code

Please note that there is also another setting in the "main" section of the HikaMarket setting called "avoid duplicate product code".
If the product code already exists, it will detect and try to avoid any conflict.

Regards,

---

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

The following user(s) said Thank You: [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.049 seconds

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