VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: DaggaTora on February 27, 2012, 16:29:56 PM

Title: [SOLVED] No AJAX for Custom Fields
Post by: DaggaTora on February 27, 2012, 16:29:56 PM
Hi,

I don't know what happened but since 2.0.1.N I can't assign custom fields to products. I've upgraded to 2.0.2 but the problem still remains. I've checked  all the posts about custom fields with no solution.

I create a custom field and when I enter in the product page and select the custom field there is no AJAX below.

Does anyone knows why?

thanks.

Joomla 2.5 & vm 2.0.2
Title: Re: No AJAX for Custom Fields
Post by: lemmingzshadow on February 27, 2012, 16:40:24 PM
In my case when switching a custom-field (e.g. Size using the circular-saw included in the demo data) the ajax-request is fired but the response header contains an error so the ajax-request doens't work.

See curl result:
HTTP/1.1 200 OK
Date: Mon, 27 Feb 2012 12:06:43 GMT
Server: Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/0.9.8r PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.8
Set-Cookie: f5618c3e9cc0080bce054ae8580adc6e=t90cu5tn87hv4simeki6o4kcq1; path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Cache-Control: no-cache, must-revalidate
Expires: Mon, 6 Jul 2000 10:00:00 GMT
Content-Disposition: attachment;filename="recalculate.json"
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Cache-Control: no-cache, must-revalidate
Expires: Mon, 6 Jul 2000 10:00:00 GMT
Content-Disposition: attachment;filename="recalculate.json"
Content-disposition: attachment; filename="recalculate.json"
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8


There is a duplicate "Content-Disposition" header. Maybe this helps virtuemart team to fix that bug.

Using Virtuemart 2.0.2 stable on Joomla 2.5.1.
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on February 27, 2012, 19:10:24 PM
which version of VM are you using?

also i have a COM_VIRTUEMART_STOCKABLE_PRODUCT custom field in the product options that doesn't exist. Is this normal?
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on February 28, 2012, 09:19:21 AM
No idea on what can happen? why AJAX doesn't trigger?
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on February 29, 2012, 10:22:55 AM
I attach an image of what i'm talking about. Hope it helps to clarify what happens.

[attachment cleanup by admin]
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on March 01, 2012, 09:46:39 AM
 :'( I really need help with this. The shop is going to open in two weeks and i cant add custom fields to any product.
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on March 05, 2012, 12:59:54 PM
Ok, i've delete everything related to VM2: uninstall, deleted BD tables...

Then I 've reinstall VM2.0.2 like a first time, not like an upgrade.

AJAX still doesn't appear.

I deleted everything again and install VM2.0.0 and it works!! but not with 2.0.2!

but seems i'm the only one with this problem  ???
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on March 06, 2012, 09:53:45 AM
Ok, it seems a javascript problem... javascript:void(0)...

<a href="javascript:void(0)" class="chzn-single" tabindex="0"><span>Share This</span><div><b></b></div></a>

any idea?
Title: Re: No AJAX for Custom Fields
Post by: DaggaTora on March 06, 2012, 11:15:54 AM
SOLVED HERE!

http://forum.virtuemart.net/index.php?topic=96366.0