When adding multiple custom fields at once to a product, only 1 is saved

Started by BjornOnPole, November 05, 2013, 10:58:33 AM

Previous topic - Next topic

BjornOnPole

VM 2.0.24
Joomla 2.5.14

I have several custom fields, all belonging to a parent custom field.
When I add more than 1 custom fields to a product, fill them in, and then save the product, only one is saved. The parent fields are all saved too, but the custom field belonging to that parent is not.

Here is an example of what I am trying to say:

http://i.imgur.com/NlfaBTg.png

My only solution is to fill one custom field, save the product, and repeat. This is a very slow process and not how it should work, I think.

Is there any solution?

Thanks in advance!

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/



BjornOnPole

Quote from: Maxim Pishnyak on November 07, 2013, 19:58:06 PM
Probably you have http://forum.virtuemart.net/index.php?topic=119638.0 in backend.

Thanks for your answer.

With Firebug & HTML Developer Toolbar error tool I could not find any errors.

The website already had jQuery Easy installed, but it was turned off in the backend.

Whenever I turn it on in the backend, I cannot even ADD 1 custom field.

I have checked which Javascript is being loaded, here is the list:

/abw/media/system/js/mootools-core.js
/abw/media/system/js/core.js
/abw/media/system/js/modal.js
https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
/abw/plugins/system/jqueryeasy/jquerynoconflict.js 
//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
/abw/components/com_virtuemart/assets/js/jquery.ui.autocomplete.html.js 
/abw/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript
/abw/components/com_virtuemart/assets/js/fancybox/jquery.mousewheel-3.0.4.pack.js
/abw/components/com_virtuemart/assets/js/fancybox/jquery.easing-1.3.pack.js
/abw/components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js
/abw/administrator/components/com_virtuemart/assets/js/jquery.coookie.js 
/abw/administrator/components/com_virtuemart/assets/js/vm2admin.js
/abw/components/com_virtuemart/assets/js/jquery.validationEngine.js
/abw/components/com_virtuemart/assets/js/languages/jquery.validationEngine-en.js
/abw/components/com_virtuemart/assets/js/jquery.ui.core.min.js
/abw/components/com_virtuemart/assets/js/jquery.ui.datepicker.min.js
/abw/components/com_virtuemart/assets/js/i18n/jquery.ui.datepicker-nl.js
/abw/components/com_jce/editor/tiny_mce/tiny_mce.js?version=2332
/abw/components/com_jce/editor/libraries/js/editor.js?version=2332
/abw/administrator/index.php?option=com_jce&view=editor&layout=editor&task=loadlanguages&lang=en&component_id=10000&wf902e4a0a3e19f2bcf6ac33ae7fb4385e=1&version=2332

I have disabled the following with jQuery Easy:

https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
/abw/plugins/system/jqueryeasy/jquerynoconflict.js 
//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
/abw/components/com_jce/editor/tiny_mce/tiny_mce.js?version=2332
/abw/components/com_jce/editor/libraries/js/editor.js?version=2332
/abw/administrator/index.php?option=com_jce&view=editor&layout=editor&task=loadlanguages&lang=en&component_id=10000&wf902e4a0a3e19f2bcf6ac33ae7fb4385e=1&version=2332

The rest of the Javascript files are VirtueMart files, and Joomla Core files. Disabling those will break the backend.

Here is the jQuery Easy Report:

hergesorteerde header libraries
resterende script gestripped //ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js 1 keer (/ keren)
verwijderd 1 jquery-noconflict.js script(s)
verwijderd 2 jQuery library(ies)
toegevoegd de jQuery library https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
toegevoegd script /abw/plugins/system/jqueryeasy/jquerynoconflict.js
verwijderd 1 jQuery UI library(ies)
toegevoegd de jQuery UI library https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/jquery-ui.min.js
toegevoegd het jQuery UI CSS bestand https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/themes/base/jquery-ui.css
verwijderd 4 lege script tag(s)
Executietijd (in seconden): 0.467698812485

As you can see it removes the loaded jQuery libraries, and adds a new one. Same goes for jQuery UI.

So there is no jQuery conflict, or it must be in VirtueMarts own Javascript codes?

Could you please look at this for me again,

Thanks in advance,

Bjorn

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

BjornOnPole

Quote from: Maxim Pishnyak on November 11, 2013, 23:59:22 PM
Your 3rd party extensions?

I wanted to test this so I just set up a new Joomla installation, using the YOOtheme Master template.

Installed VirtueMart, and created 2 custom fields belonging to 2 different custom field parents.
I filled in the Shopper Information and filled in a shop name and defined the currency.

I created a category for my products.
Then I added a product. I filled in the name, assigned it to the category and added an image.
Then I made a Menu Item pointing to the VirtueMart frontpage.

Now my products are showing on the website, and I have not installed or done anything else.
I open the product and go to Custom Fields.
I pick one of the parent custom fields, and then the other one.
I fill both of them in and then press Save.

Here is a screenshot of the result:

http://i.imgur.com/aq3E81e.png

As you can see the Parent Custom Field "Sizes" does not contain it's child custom field anymore, even though I filled both of them in.

I have not installed anything else, no components, no extensions, no plugins. Just the newest installation of VirtueMart + the extensions, so I think this is not the fault of any 3rd party extensions.

If you want I can send you a backend account and password to this website.

Maxim Pishnyak

Could you post used VM version? If vanilla VM installation (without youtheme) works fine, time to call yootheme - http://forum.virtuemart.net/index.php?topic=108212.0
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart