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

#   Variations

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 1 month ago [\#66996](#66996) by [sgascotland](/forum/user/9418-sgascotland "View sgascotland's Profile")  *[Variations](/forum/4-how-to/66996-variations#66996 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")* was created by *[sgascotland](/forum/user/9418-sgascotland "View sgascotland's Profile")*

So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:

is there a faster way to do this maybe have a set price for small medium and large any then any colour.

or can i edit more than one at a time :S

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

14 years 1 month ago [\#67077](#67077) 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 *[Re: Variations](/forum/4-how-to/66996-variations#67077 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi,

I think that you can do it by creating and importing a CSV file.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 3 weeks ago [\#68935](#68935) by [sgascotland](/forum/user/9418-sgascotland "View sgascotland's Profile")  Replied by *[sgascotland](/forum/user/9418-sgascotland "View sgascotland's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#68935 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

bump.

even if using another product as a template so its just changing the name and picture :dry: . i have loads of vereations and its taking up alot of time.

can this be done.

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

14 years 3 weeks ago [\#68996](#68996) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#68996 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Yes, you can copy products via the "copy" button on the products listing in the Business edition.
That will copy all the variants/prices/images data into a new product and you will then just have to change the name and the picture.

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

13 years 11 months ago [\#78391](#78391) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#78391 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi Nicolas,
Hope you are well.
Think sgascotland may have come up against the same problem as me...

If you create a product with say 10 variants for that product/characteristic, and then copy the product using the the copy button, it creates 10 variants with the previous name for the item code. This means that we need to change each one of those variant item codes individually to reflect the actual product it belongs to. As one person tried to cancel an order as they thought they were getting the wrong product when they looked at the code on the invoice ![:-(](/media/kunena/emoticons/22.png ":-(")

Is there a way we could put an "update all variants" button which just renames the variants to the main product name after the copy, or easier still, could we update the variants attached to the copied product on the initial save after the copy :-)as the copy would have to be saved because of the new image/product name or other detail ![:-)](/media/kunena/emoticons/3.png ":-)") (a quick reflection just before sending this...the button would be a good option because if we changed the product name for any reason we could then change the variants to match ![:-)](/media/kunena/emoticons/3.png ":-)") )

Thanks Nicolas (or whoever may pick up this thread ![:-)](/media/kunena/emoticons/3.png ":-)") )

Ian

- [ ![2012-11-23&#95;130724.png](/forum/attachment/7157) ](/forum/attachment/7157 "...-23&#95;130724.png") [ ](/forum/attachment/7157?download=1 "...-23&#95;130724.png")

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

13 years 11 months ago [\#78700](#78700) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#78700 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi,

If your variants have the same name. You should only put the name in the main product. The variants will pick up the main product name automatically.
And when you copy the product, the variants will be copied with an empty name so if you change the name of the main product of the copy, the variants of that product will also use the new name automatically.

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

13 years 11 months ago [\#78713](#78713) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#78713 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi Nicolas,

The name on the variant I do leave blank. It's the actual auto generated variant code that gets copied that needs to change.

Thanks

Ian

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

13 years 11 months ago [\#79160](#79160) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#79160 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi,

So you would like to change the code of all the variants of a product when the product code changes ?

Nothing is impossible, but there is no option for that at the moment and that would be quite complex to add to the system.

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

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

Less More

- Posts: 173
- Thank you received: 8
-
-

13 years 11 months ago [\#79226](#79226) by [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")  Replied by *[ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#79226 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi Nicolas,

Yes, the variant codes no longer match, and I would like to bring them in line with the product name, also if you copy a copy it starts increasing the field value, I know in an ideal world we wouldn't do this and try and use a base to copy from, but my customer is whingeing at me lol...because he can. And also if there are variants of cloth etc that have say 10 different colours, then it can become a bit tiring renaming each code.

Thanks

Ian

- [ ![2012-11-28&#95;094857.png](/forum/attachment/7231) ](/forum/attachment/7231 "...-28&#95;094857.png") [ ](/forum/attachment/7231?download=1 "...-28&#95;094857.png")

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

13 years 11 months ago [\#79706](#79706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Variations](/forum/4-how-to/66996-variations#79706 "So I think i have it down i add variations for colour and size then I go into manage variations and add all the prices thats fine but it takes to long :woohoo:  is there a faster way to do this maybe have a set price for small medium and large any then any colour.  or can i edit more than one at a time :S")*

Hi,

For the copy, I can propose you to change the code of the function copyProduct in the file administrator/components/com_hikashop/helpers/import.php
There you can change the line:
$newProduct-&gt;product_code = $this-&gt;template-&gt;product_code.'_copy'.rand();
and the line:
$copy-&gt;product_code = $copy-&gt;product_code.'_copy'.rand();
in order to set the product code format you want when you copy products.

For the modification of the main product code to be propagated to the variants, that's a lot more complex. You can always do it in the saveForm function of the file administrator/components/com_hikashop/classes/product.php but that's quite complex to do and you need to load the variants, change their code and save them back yourself.

The following user(s) said Thank You: [ianspeed](/forum/user/1602-ianspeed "View ianspeed's Profile")

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

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

[](#top)
