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

#   Characteristics with Dynamic Variants

##

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

Less More

- Posts: 149
- Thank you received: 0
-
- [](http://www.webarts.com.cy)
-

14 years 10 months ago [\#32411](#32411) by [webarts](/forum/user/144-webarts "View webarts's Profile")  *[Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32411 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")* was created by *[webarts](/forum/user/144-webarts "View webarts's Profile")*

Hi,

I am interested in creating a characteristic called "Batch". This batch needs to be used as an internal separator for the products of the same type.

---

Example:
Product: "Nike Shoes - Model 1"
Total Stock: 100
Batch Stock
00100 30
00110 40
11001 30

---

As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.

Can you advice if this can be somehow implemented in Hikashop

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyNDExLWNoYXJhY3RlcmlzdGljcy13aXRoLWR5bmFtaWMtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

14 years 10 months ago [\#32429](#32429) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32429 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Hi,

You could have numbers for your characteristic values: batch 1, batch 2, batch 3
Then, in each variant, you could put the batch number as product code or product name.

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

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

Less More

- Posts: 149
- Thank you received: 0
-
- [](http://www.webarts.com.cy)
-

14 years 10 months ago [\#32506](#32506) by [webarts](/forum/user/144-webarts "View webarts's Profile")  Replied by *[webarts](/forum/user/144-webarts "View webarts's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32506 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Hi Nikolas,

I am not sure I understand the solution.
I have checked the tables in the database and they are as below:

"hikashop_characteristic"

---

characteristic_id characteristic_parent_id characteristic_value

"hikashop_variant"

---

variant_characteristic_id variant_product_id ordering

As I can understand from above structure of the tables, we cannot keep value at the variant level. It only keeps the relation of the characteristics and the products. Can you explain where I can keep the variant name

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyNDExLWNoYXJhY3RlcmlzdGljcy13aXRoLWR5bmFtaWMtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

14 years 10 months ago [\#32530](#32530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32530 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Each variant of a product is stored in the product table as a normal product.
So you will have entries in the variant table linking the main product and the characteristics and you will also have entry in the variant table linking the variants and the characteristics values.

You can click on the "manage variants" button on your product edition page to access the listing of variants of your product and modify the information of the variants there.

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

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

Less More

- Posts: 149
- Thank you received: 0
-
- [](http://www.webarts.com.cy)
-

14 years 10 months ago [\#32614](#32614) by [webarts](/forum/user/144-webarts "View webarts's Profile")  Replied by *[webarts](/forum/user/144-webarts "View webarts's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32614 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Hi Nikolas,

I have created the below configuration in hikashop.
1. Create Characteristic "Batch No"
2. Characteristic "Batch No" has values : "Batch 1", "Batch 2", "Batch 3", "Batch 4", "Batch 5" (as the most batches a product can has is five)

I want to achieve the below:
1. Display "Batch No" characteristic (with the stock number) only to "Wholesalers group". We have already implemented this for the regular stock of a product by adding the code in front\views\product\tmpl\quantity.php line 56:
if(hikashop_isAllowed('&lt;group id&gt;')) {
.....
}

Can you advice where the variants are displayed so we can add the same code as well

2. In the product detail page I would like to display the variant code instead of the variant value from the characteristic. Can you advice how this can be implemented

Thanks

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

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

Less More

- Posts: 149
- Thank you received: 0
-
- [](http://www.webarts.com.cy)
-

14 years 10 months ago [\#32617](#32617) by [webarts](/forum/user/144-webarts "View webarts's Profile")  Replied by *[webarts](/forum/user/144-webarts "View webarts's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32617 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Hi,

Point 1 from previous post is already enforced by previous solution for the general stock. We only need to enforce access on the specific group on each variant for each product.

Can you provide a solution for the second point

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMyNDExLWNoYXJhY3RlcmlzdGljcy13aXRoLWR5bmFtaWMtdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

14 years 10 months ago [\#32655](#32655) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Characteristics with Dynamic Variants](/forum/4-how-to/32411-characteristics-with-dynamic-variants#32655 "Hi,  I am interested in creating a characteristic called &quot;Batch&quot;. This batch needs to be used as an internal separator for the products of the same type. ----- Example: Product: &quot;Nike Shoes - Model 1&quot; Total Stock: 100 Batch Stock 00100 30 00110 40 11001 30 -----  As you can understand the batch numbers are specific per product therefore we cannot pre-create them on the characteristic.  Can you advice if this can be somehow implemented in Hikashop  Thanks")*

Hi,

The variant information is displayed by the file components/com_hikashop/views/product/tmpl/show.php. Note that view files should be edited via the menu Display-&gt;Views so that you don't loose your changes when you update HikaShop.

However, the characteristics dropdowns are displayed by the file administrator/components/com_hikashop/types/characteristic.php
It can also be overridden but it can't be done via the interface:
[ www.hikashop.com/en/support/documentatio...tation.html#override](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#override)

For the variant name, you will find that line:
&lt;?php echo $variant-&gt;product_name;?&gt;
in the file components/com_hikashop/views/product/tmpl/show.php

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

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

[](#top)
