News:

Looking for documentation? Take a look on our wiki

Main Menu

[Solved] Custom Fields after update VM 3.0.18 to VM 3.2.3

Started by henry_osn, June 13, 2017, 01:57:02 AM

Previous topic - Next topic

henry_osn

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"

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

henry_osn

#2
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

jenkinhill

Try with Protostar to check if there is a template issue.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

henry_osn

Yes, the same thing happens, I've already done all the installation from scratch, Joomla and VM and the problem still persists. Thanks.

henry_osn

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

Milbo

#6
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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

henry_osn

Hi Milbo, thanks for your reply. I sent the PM.

Thanks again.

henry_osn

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.

henry_osn

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.

Milbo

wow, hardcore. But your case is really, very special.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/