News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] No AJAX for Custom Fields

Started by DaggaTora, February 27, 2012, 16:29:56 PM

Previous topic - Next topic

DaggaTora

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
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

lemmingzshadow

#1
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.
http://yagendoo.com - Virtuemart Templates & Themes

DaggaTora

#2
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?
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

No idea on what can happen? why AJAX doesn't trigger?
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

I attach an image of what i'm talking about. Hope it helps to clarify what happens.

[attachment cleanup by admin]
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

 :'( I really need help with this. The shop is going to open in two weeks and i cant add custom fields to any product.
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

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  ???
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

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?
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28