VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jimleeder123 on December 01, 2015, 17:24:07 PM

Title: Child product Names Resetting Themselves
Post by: jimleeder123 on December 01, 2015, 17:24:07 PM
I'm using Joomla 2.5.28 and VM 3.0.12 for this website.

I'm finding that every time I edit a child product or edit the parent product, the associated child products reset their names. When I create a child product, usaully I just have to type in "10"" or "12"" etc as the product name such as "Margherita" or "Funghi" will already be in there. However whenever edited or parent is edited, it resets the child name to just "10" or "12" etc.

Any idea why this is please?
Title: Re: Child product Names Resetting Themselves
Post by: jimleeder123 on December 04, 2015, 11:38:20 AM
Anyone have any idea please? (bumping up due to no activity)
Title: Re: Child product Names Resetting Themselves
Post by: Jörgen on December 04, 2015, 11:59:23 AM
Hello

I have seen something similar.

This behaviour is maybe not expected, but with a bit of planning this can be avoided. Never have the parent open if You plan to edit Child parameters that are displayed in any of the parents views.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Child product Names Resetting Themselves
Post by: jimleeder123 on December 04, 2015, 12:15:13 PM
Yes its a very odd bug which hopefully will be patched. Wonder if its the Joomla or PHP level?
Title: Re: Child product Names Resetting Themselves
Post by: Jörgen on December 04, 2015, 12:52:39 PM
Hello again
This can´t be patched, if I understand this right. You have data in two forms, last saved wins. This is like editing a product in two views at the same time, last saved view sets the data.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Child product Names Resetting Themselves
Post by: jimleeder123 on December 04, 2015, 17:27:19 PM
What a pain. Am trying the latest Joomla with the latest VM on our newest website so hopefully won't happen on this version, doubt it though.

Thanks for your replies though anyway.
Title: Re: Child product Names Resetting Themselves
Post by: Jörgen on December 05, 2015, 18:20:03 PM
Hello again

If it the same issue that I see You solve this by not saving the parent if You open child products through the parent view. Update the parent view with F5 if You want to see the changes made by the child view before editing any more in the parent view or simply close the parent without saving if You aren´t interested in editing in the parent view. The issue is when saving data in the parent after editing data in the child views that are common to both views. If You just remember what You are actually editing this will not be a big issue.

regards

Jörgen @ Kreativ Fotografi


Title: Re: Child product Names Resetting Themselves
Post by: Milbo on December 07, 2015, 20:05:02 PM
the form has two times the same data, yes.

When you open a parent, and open the children in another tab, and you change the name of the children, you must reload the form of the parent!

Else the old name of the children is in the overview tab and is stored. The right way is btw to use the overview tab and not to enter the children. When you use generic child variant customfield, then you can even directly change the chosen dimension (the one which is show in the dropdown).
Title: Re: Child product Names Resetting Themselves
Post by: jimleeder123 on December 17, 2015, 14:22:40 PM
Update on this - I think the name resets itself because it doesn't like the " character. Child names such as 9" pizza get reset but small pizza stays the same, so the problem lies with that and maybe other characters.