Bug reports with selection product and variants

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Bug reports with selection product and variants

Post by sixbynine » 27 Jun 2018, 08:01

1/ Adding two variant products of a selection product with one variant attribute for each will result in creating two variants products but :

- the first one will get the first and the second variant attributes
- the second one will have no variant attribute at all.

expected :
Capture2.png
Capture2.png (12.39 KiB) Viewed 3145 times
what i get after saving :
Capture.PNG
Capture.PNG (18.03 KiB) Viewed 3145 times
2/ Copying a selection product will only copy the "master" select product but not the "sub" default products of the selection product duplicated.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Bug reports with selection product and variants

Post by aimeos » 27 Jun 2018, 22:20

We are currently in the process of rewriting that part for the next version. Please stay tuned till next week :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Bug reports with selection product and variants

Post by sixbynine » 28 Jun 2018, 07:13

Thank you very much :)

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Bug reports with selection product and variants

Post by aimeos » 02 Jul 2018, 08:27

That part has been rewritten now :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Bug reports with selection product and variants

Post by sixbynine » 18 Jul 2018, 06:50

2/ Copying a selection product will only copy the "master" select product but not the "sub" default products of the selection product duplicated.
It this also fixed? Duplicating a selection product seems to be as before : only the selection product is duplicated but the default products, including the variants are not created.

Thank you a lot in advance,

sbn

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Bug reports with selection product and variants

Post by aimeos » 18 Jul 2018, 07:19

Yes, that's still the same and we don't know if it's a good thing to copy the articles as well, especially because we need to improve performance of that part if you have 100s of articles in a selection product.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Bug reports with selection product and variants

Post by sixbynine » 18 Jul 2018, 09:11

Ok thank you for your answer !

In my case, duplicating a product is done just to save time and find the new selection product as the original one, so it seems logical to me that the new defaults product are created too, but the way it works is already better and faster than nothing :)

I also have a problem (bug?) when duplicating a selection product, sometimes the preview image of the original one is deleted. I'm still trying to understand when exactly.

Thank you,

sbn

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Bug reports with selection product and variants

Post by sixbynine » 25 Jul 2018, 11:00

I'm still thinking about the duplication of a select products AND ITS VARIANTS. I think it's really useful and logical to have this option. I understand that a loop with 1000 variants to create could cause unstable results because of the max-execution-time of php that will be different on the users' server.

So, I suggest to :

1/ set a safe limit of variants that can be duplicated
2/ count the amount of variants that the select product has got.
3/ if the amount of variants is bigger thant the limit value, the select product is duplicated without variants
4/ else, the product is duplicated and its variants and subproducts are created too.

I'll try to work on it and make a PR.
I'm interested in any help, if you have information i.e. about where this job is done.

Thank you

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Bug reports with selection product and variants

Post by aimeos » 26 Jul 2018, 21:21

Wouldn't limit the number of variants when copying a product. Either all or nothing :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply