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

#   Default product to equal variant in code etc

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 11 months ago [\#79367](#79367) by [Barclay](/forum/user/10168-barclay "View Barclay's Profile")  *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#79367 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")* was created by *[Barclay](/forum/user/10168-barclay "View Barclay's Profile")*

so we have a product - with default characteristics - say size = 1 and color = red
it has code 1r
BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red
which has a different code - but this is the same product with different entry
how can we make the product with default characteristics, the one and only product of it's type

TIA

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

13 years 11 months ago [\#79396](#79396) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#79396 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi,

The code should be the same, can you give us screenshot of your product configuration, and the listing of this product's variants ?

Try to enable the option "Display the characteristics name" in HikaShop &gt; Configuration &gt; Display.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 10 months ago [\#80139](#80139) by [Barclay](/forum/user/10168-barclay "View Barclay's Profile")  Replied by *[Barclay](/forum/user/10168-barclay "View Barclay's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#80139 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi thanks – we have this set but the PARENT PRODUCT code e.g. is ABC

Then when I go to manage variants – the DEFAULT VARIANT that is IDENTICAL to parent because it is same defaults – INSISTS on different code – perhaps I have to link to VARIANT in MENU NOT parent product – this is difficult for client to understand – but maybe a patch?

If this is not clear I’ll send you link to site and problems

Thanks

PS - it would be nice if I could change my user name showing here

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 10 months ago [\#80140](#80140) by [Barclay](/forum/user/10168-barclay "View Barclay's Profile")  Replied by *[Barclay](/forum/user/10168-barclay "View Barclay's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#80140 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

PS - i have this active -
Hi,

The code should be the same, can you give us screenshot of your product configuration, and the listing of this product's variants ?

Try to enable the option "Display the characteristics name" in HikaShop &gt; Configuration &gt; Display.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 10 months ago -  13 years 10 months ago [\#80194](#80194) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#80194 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi,

As Xavier said, can you give us **screenshots** of :
- Your product configuration page
- Your product variants
- The problem that you are having

And provide us a **link to your web site** ? it would help me to understand you problem and where it's coming form.

Thanks ![:)](/media/kunena/emoticons/8.png ":)").

Last edit: 13 years 10 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 10 months ago [\#80337](#80337) by [Barclay](/forum/user/10168-barclay "View Barclay's Profile")  Replied by *[Barclay](/forum/user/10168-barclay "View Barclay's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#80337 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

can I privately provide access to site please - it's a development server

lite 1 - main product with default
lite2 - variation - default

thanks for your help

- [ ![lite1.png](/forum/attachment/7361) ](/forum/attachment/7361 "lite1.png") [ ](/forum/attachment/7361?download=1 "lite1.png")
- [ ![lite2.png](/forum/attachment/7362) ](/forum/attachment/7362 "lite2.png") [ ](/forum/attachment/7362?download=1 "lite2.png")
- [ ![config1.PNG](/forum/attachment/7363) ](/forum/attachment/7363 "config1.PNG") [ ](/forum/attachment/7363?download=1 "config1.PNG")
- [ ![mainprod.PNG](/forum/attachment/7364) ](/forum/attachment/7364 "mainprod.PNG") [ ](/forum/attachment/7364?download=1 "mainprod.PNG")
- [ ![variants.PNG](/forum/attachment/7365) ](/forum/attachment/7365 "variants.PNG") [ ](/forum/attachment/7365?download=1 "variants.PNG")

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

13 years 10 months ago [\#80429](#80429) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#80429 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi,

Yes you can send us the accesq by pm.

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

13 years 10 months ago [\#81400](#81400) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#81400 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi,

The main product can't have the same product code than the variant, it's working like that in HikaShop.
But I think that you are talking about the product name, which is small when on the main product, and detailed when selecting a variant.

I have done a little modification in the view "product / show_default" I have commented a part like that: Code:

// if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) // echo $this-&gt;element-&gt;main-&gt;product_name; // else echo $this-&gt;element-&gt;product_name;

With this modification, the product name is always detailed, even if on the main product.

The following user(s) said Thank You: [Lemon Tree](/forum/user/9739-lemon-tree "View Lemon Tree's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

13 years 10 months ago [\#81565](#81565) by [Barclay](/forum/user/10168-barclay "View Barclay's Profile")  Replied by *[Barclay](/forum/user/10168-barclay "View Barclay's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#81565 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi thanks for taking a look

The problem is that the main product has a default variant so that IT IS THE VARIANT - the main product is therefore IDENTICAL to one of the variants and hikashop is making us have 2 DIFFERENT product codes for the EXACT SAME product

which is a problem for accounting and inventtory etc.

I am thinking I need to have a variant called SELECT A COLOR to be default to counteract this - so I will try that and report back

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

13 years 10 months ago [\#82844](#82844) by [Lemon Tree](/forum/user/9739-lemon-tree "View Lemon Tree's Profile")  Replied by *[Lemon Tree](/forum/user/9739-lemon-tree "View Lemon Tree's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#82844 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

> Xavier wrote: Hi,
>
> The main product can't have the same product code than the variant, it's working like that in HikaShop.
> But I think that you are talking about the product name, which is small when on the main product, and detailed when selecting a variant.
>
> I have done a little modification in the view "product / show\_default" I have commented a part like that:
>
> Code:
>
>  // if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) // echo $this-&gt;element-&gt;main-&gt;product_name; // else echo $this-&gt;element-&gt;product_name;
>
>
>
>
> With this modification, the product name is always detailed, even if on the main product.

Many thanks, Xavier. This is exactly what I needed. Can you tell me, will I have to reapply this modification every time I upgrade HikaShop?

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

13 years 10 months ago [\#82849](#82849) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Default product to equal variant in code etc](/forum/4-how-to/76266-default-product-to-equal-variant-in-code-etc#82849 "so we have a product - with default characteristics - say size = 1 and color = red it has code 1r BUT when you click around and try different selections then reselect size = 1 and color = red - it comes up with a different product called say product - size 1 - color red which has a different code - but this is the same product with different entry how can we make the product with default characteristics, the one and only product of it's type  TIA")*

Hi,

If you use the view override (thanks to "Display &gt; View") you would not loose your modification with HikaShop updates/upgrades.

Regards,

---

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

The following user(s) said Thank You: [Lemon Tree](/forum/user/9739-lemon-tree "View Lemon Tree's Profile")

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

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

[](#top)
