VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: ingnino on September 27, 2015, 05:47:43 AM

Title: Can not add custom fields in product backend
Post by: ingnino on September 27, 2015, 05:47:43 AM
Hello, I have no idea why I can't add custom fields that I created. When I select one custom field from the dropdown list nothing happens.
Im using VM 3.0.10 and Joomla 3.4.
I need some help please.
Title: Re: Can not add custom fields in product backend
Post by: balai on September 28, 2015, 10:44:39 AM
In my case this happened because the server response was in invalid json format.
A layout modification or a plugin was modifying the server response.

You can check that by checking the server response after you select a custom field. If you see a div or something like that at the end, it's that.
Then check your files to see where this comes from
Title: Re: Can not add custom fields in product backend
Post by: Studio 42 on September 28, 2015, 11:15:18 AM
press F12 in chrome or firefox.
Look for server response. If you have an error 500, mostly in the response preview you get more details.
If some VM plugin add code to the response, this can break the returned response.
Check your php error log file. sometime your server is set to view all error(you have many chances to have a warning error)
You can force, in Joomla setting, to not display error, this have 80% change to solve the problem.
Title: Re: Can not add custom fields in product backend
Post by: ingnino on September 28, 2015, 23:16:19 PM
Thanks for your for help.

Im not an expert but I tried to do what you guys told me and this is what I found:

(http://www.dalupijamas.com/images/demo/404rcustomfield.jpg)

(http://www.dalupijamas.com/images/demo/diverror404.jpg)

There is a div error, but I dont know how to fix that. Can you please tell me how?
Title: Re: Can not add custom fields in product backend
Post by: GJC Web Design on September 29, 2015, 10:55:22 AM
what is de.pixelz.com?
Title: Re: Can not add custom fields in product backend
Post by: ingnino on September 29, 2015, 17:30:55 PM
dont have any idea my friend
Title: Re: Can not add custom fields in product backend
Post by: Studio 42 on September 30, 2015, 02:44:08 AM
Hi,
This is not important(i mean),  it's only a missing image
open the Network tab and click on XHR
Now try your customfield dropdown list and check the response.
(you should see a new link in this tab,when you select something).
If you have a bad request, you should see a 500 error.
Click on the XHR response to see details in the browser console(you need to click preview tab in some browser)
Title: Re: Can not add custom fields in product backend
Post by: ingnino on October 01, 2015, 02:22:31 AM
Hi, it seems that when the site is offline cant add custom fields, but when I set it online starts to work propertly.

I'll do some more tests and Ill let you know.
Title: Re: Can not add custom fields in product backend
Post by: Milbo on October 01, 2015, 20:26:04 PM
Images are gone, cant see anything.