VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: patbe60 on March 31, 2017, 12:16:13 PM

Title: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on March 31, 2017, 12:16:13 PM
Hello
After updating VM from 3.2.0 to 3.2.1 I get the following error:

When ordering a child product with different customfields than the parent product everything looks fine in the confirm email (see attachment first_confirm_email)
When updating the orderstatus the customer sees all of a sudden also the customfields of the parent product (see attachment update_status).

In my example the customer ordered a midifile as a child product. This doesn't have the fields NOTENSCHRIFT or AUDIOTRACKS. After updating the orderstatus (it doesn't matter wich kind of orderstatus) these fields ar shown in the email.

The problem started with version 3.2.1

Regards
Patrik

VM 3.2.1
Joomla 3.6.5
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: Milbo on March 31, 2017, 19:46:47 PM
And this fields are cart attributes? or "cart input"?

I really wonder how this can happen. hmm
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on March 31, 2017, 23:13:04 PM
Yes these are cart attributes, disabled in child products.
When downgrading to version 3.2.0 everything works fine.

Below you see how it looks like in VM 3.2.0 and before.
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: Milbo on April 01, 2017, 09:49:53 AM
It should work to use the vm3.2.1, but the sublyout/customfield.php of the vm3.2.0.

The advantag is, you have the vm3.2.1, besides this part and if it works then, I know exactly from where it comes from.

The customfields of the parent are overwritten? or disabled? Maybe it is not an error, maybe it is actually so that it works now as "expected" but different than before. You have my skype, you may contact me there, but dont wonder... the sun is shining and I will be in my garden.
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on April 01, 2017, 20:02:39 PM
Yes, it works fine with the customfield.php of VM 3.2.0

The customfields of the parents are disabled. Additionally I have the iStraxx download plugin activated for the children.

I don't know wether you will adjust this in a future version or wether I have to make some changes in my child products.

Thanks a lot and best regards
Patrik
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: Milbo on April 02, 2017, 09:45:44 AM
I have to check your configuration, of your children and parent. Maybe it is a new sideeffect, which is intended, or not.

The difference is mainly, that the customfields of the product are now always loaded. Before it checked the sent data, and when there was data, it loaded only the customfields with data, which was actually not correct.
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on April 03, 2017, 13:27:54 PM
Attached you find as an example the configuration of a parent product and its child configuration.

Regards
Patrik
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: Milbo on April 03, 2017, 13:41:34 PM
So disabling them does not work? But why are they cart attribute? do you sell the parent also?
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on April 03, 2017, 14:40:43 PM
Yes, as you can see on the pics, the parents are also orderable.

But as I said in my first post: Everything looks fine (product in frontend, first email of order confirmation) except when I send an email with update of orderstatus. In this email all of a sudden the cart attributs of the parents appear.
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: Milbo on April 05, 2017, 20:55:10 PM
I could reproduce this and found a fix.

It was really a crazy thing, because the print, delivery note, invoice, triggered from FE/BE and mails triggered from the FE were correct. Only the mails triggered from the BE were incorrect. Nasty thing.
Title: Re: Customfield problem in Confirm Email VM 3.2.1
Post by: patbe60 on April 05, 2017, 22:47:24 PM
Thanks for the fix. Great support as always!

Regards
Patrik