Variations

  • Posts: 12
  • Thank you received: 0
12 years 1 month ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #67077

Hi,

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

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
12 years 1 month ago #68935

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 or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
12 years 1 month ago #68996

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 or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
11 years 11 months ago #78391

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 :-(

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 :-) (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 :-) )

Thanks Nicolas (or whoever may pick up this thread :-) )

Ian

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #78700

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 or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
11 years 11 months ago #78713

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 or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #79160

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 or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 8
  • Hikashop Essential
11 years 11 months ago #79226

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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #79706

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->product_code = $this->template->product_code.'_copy'.rand();
and the line:
$copy->product_code = $copy->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

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum