VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: henry_osn on June 13, 2017, 01:57:02 AM

Title: [Solved] Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 13, 2017, 01:57:02 AM
After an upgrade to VM 3.2.3, when choosing a custom field, all are displayed in the cart, instead of the chosen one. Before update the version it was VM 3.0.18. Can you help me? Thanks. Website: "http://seupetart.com.br/comprar"
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: Milbo on June 13, 2017, 09:16:07 AM
Please try this version http://dev.virtuemart.net/attachments/download/1081/com_virtuemart.3.2.3.9577.zip
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 13, 2017, 16:46:32 PM
Thanks for your help.
The problem still continues  :'(

Joomla! 3.7.2
Virtuemart 3.2.3.9577
PHP Version 7.0.18
MySQL Version 5.6.35
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: jenkinhill on June 13, 2017, 17:09:24 PM
Try with Protostar to check if there is a template issue.
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 13, 2017, 17:42:11 PM
Yes, the same thing happens, I've already done all the installation from scratch, Joomla and VM and the problem still persists. Thanks.
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 13, 2017, 19:31:09 PM
Server logs:

Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory
[Tue Jun 13 12:56:22.278301 2017] [:error] [pid 18194:tid 140139888088832] [client XXX.XXX.XXX.XXX:23352] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:56:24.797613 2017] [:error] [pid 18194:tid 140139888088832] [client XXX.XXX.XXX.XXX:23352] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:56:25.174110 2017] [:error] [pid 18194:tid 140139888088832] [client XXX.XXX.XXX.XXX:23352] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:56:50.156712 2017] [:error] [pid 18191:tid 140139804169984] [client XXX.XXX.XXX.XXX:23419] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/carrinho-3
[Tue Jun 13 12:56:55.449367 2017] [:error] [pid 18191:tid 140139804169984] [client XXX.XXX.XXX.XXX:23419] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory
[Tue Jun 13 12:57:04.949072 2017] [:error] [pid 18191:tid 140139804169984] [client XXX.XXX.XXX.XXX:23419] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:57:10.030138 2017] [:error] [pid 18194:tid 140139751720704] [client XXX.XXX.XXX.XXX:23456] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:57:10.456334 2017] [:error] [pid 18194:tid 140139751720704] [client XXX.XXX.XXX.XXX:23456] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/comprar
[Tue Jun 13 12:57:37.164996 2017] [:error] [pid 18194:tid 140139898578688] [client XXX.XXX.XXX.XXX:23500] Failed loading /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/:  /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/: cannot read file data: Is a directory, referer: http://seupetart.com.br/carrinho-3
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: Milbo on June 14, 2017, 10:13:02 AM
You have a lot jquery errors, you must fix this first. ah forget it, was my error.

I think I need to see your setup, to understand how the customfields are created. Please send me a login to your store per Pn. Maybe also your skype id, then we can chat
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 14, 2017, 15:53:50 PM
Hi Milbo, thanks for your reply. I sent the PM.

Thanks again.
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 20, 2017, 23:46:14 PM
I discovered the problem. When you create more than one custom field, such as image or text, even selecting only one of them, the others will be selected and adding in the cart. How do I select which option is added to the cart and not all available?

Thanks again.
Title: Re: Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: henry_osn on June 26, 2017, 15:46:05 PM
My solution. I create a single custom field of type M (image) and then display it in 3 different positions according to one class of each image.

In summary I made an override in /template/html/com_virtuemart/sublayouts/customfields.php. Since the VM returns the custom fields in string, I have transformed the string in array. For each item, I rebuild the list in different positions, I do this with conditionals (IF and ELSE) according to a class of each image.

http://seupetart.com.br/comprar/tela-detail#tab4

Thank you all for the contributions.
Title: Re: [Solved] Custom Fields after update VM 3.0.18 to VM 3.2.3
Post by: Milbo on July 05, 2017, 21:07:47 PM
wow, hardcore. But your case is really, very special.