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

#   Populating Variant Custom Fields

##

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

Less More

- Posts: 611
- Thank you received: 13
-

8 years 5 months ago [\#294522](#294522) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294522 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.10
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Firefox

Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?

thanks

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

8 years 4 months ago [\#294524](#294524) 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 *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294524 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")*

Hello,

There is no option to automatically populate variant custom fields. However, you can eventually use mass actions via "Hikashop-&gt;System-&gt;Mass actions", to apply values to custom fields of your product variants.

[ www.hikashop.com/support/documentation/167-massaction-form.html](https://www.hikashop.com/support/documentation/167-massaction-form.html)

Best regards,
Mohamed Thelji.

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

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

Less More

- Posts: 611
- Thank you received: 13
-

8 years 4 months ago [\#294595](#294595) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294595 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")*

Hi Mohamed,

Ok so that's not possible! therefore as the variants would only be replicated as to the populated custom fields on the main product page, is there a way to display what is in the custom fields in the main page instead of the variants?

Rgds

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NTA5MS1wb3B1bGF0aW5nLXZhcmlhbnQtY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

8 years 4 months ago [\#294612](#294612) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294612 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")*

Hi,

If you don't enter anything in the custom field of the variants, it will automatically use the value from the main product instead. There is nothing particular to do for that besides not filling the custom fields in the variants.

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

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

Less More

- Posts: 611
- Thank you received: 13
-

8 years 4 months ago [\#294649](#294649) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294649 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")*

Hi Nicolas,

Let me try to explain what I am trying to do.
I have created a custom field,SKU. This is used to populate the manufacturer's SKU as we use our own which is in the 'product code'.
The 'product code' works fine correctly populating in the products variants. Even though the SKU is populated it does not show in the variants and would have to be entered manually which is very time consuming. If the SKU in the main product was read by the 'order' then that would be ok as its the same SKU that would be on all of the variants. At present it seems only the empty (or populated) SKU in the variant is shown in the backend order.

What I am trying to achieve is for the custom field SKU in the 'main' product page to be shown in the order instead of the variant SKU.
I have attached files and hope this is a little more clear.
[ ![main&#95;product&#95;page.jpg](/forum/attachment/44040) ](/forum/attachment/44040 "...oduct&#95;page.jpg")

- [ ![main&#95;product&#95;page.jpg](/forum/attachment/44040) ](/forum/attachment/44040 "...oduct&#95;page.jpg") [ ](/forum/attachment/44040?download=1 "...oduct&#95;page.jpg")
- [ ![variant&#95;product&#95;page.jpg](/forum/attachment/44041) ](/forum/attachment/44041 "...oduct&#95;page.jpg") [ ](/forum/attachment/44041?download=1 "...oduct&#95;page.jpg")
- [ ![SKU&#95;2.jpg](/forum/attachment/44042) ](/forum/attachment/44042 "SKU&#95;2.jpg") [ ](/forum/attachment/44042?download=1 "SKU&#95;2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NTA5MS1wb3B1bGF0aW5nLXZhcmlhbnQtY3VzdG9tLWZpZWxkcz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

8 years 4 months ago [\#294651](#294651) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Populating Variant Custom Fields](/forum/25-install-update/895091-populating-variant-custom-fields#294651 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Firefox  Hi, Can you advise of a way to auto populate variant custom fields in products? when making changes to fields like product code in product this auto updates the variants but making changes to custom fields does not even populate the variant custom fields never mind make changes?  thanks")*

HI,

That does happen on the product page on the frontend, where you usually want to display the product custom fields.
In the order/invoice however, it's the direct value of the variant itself which is used. So if you have the value in the main product, it won't be used there.
That's the normal behavior.
If you want to change that, you need to edit the code of the view which displays the custom field in the order and modify the code to load the data of the main product with a MySQL query, etc. A PHP developer can change that for you.

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

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