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

Bug: Ajax-Error when switching custom fields on product-page

Started by lemmingzshadow, March 01, 2012, 10:51:32 AM

Previous topic - Next topic

lemmingzshadow

Using Virtuemart 2.0.2 stable with Joomla 2.5.1.

When switching the custom field on a product-page (e.g. size) an ajax-requests is triggered to update the price. This request fails.
After having a closer look i found the reason: The response-header includes the content-disposition header twice:
HTTP/1.1 200 OK
Date: Thu, 01 Mar 2012 09:45:10 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=7oaeifsjdar9nd3k2qb8m3rp62; 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


Solution for now: Comment out line 255 in /components/com_virtuemart/controllers/productdetails.php
JResponse::setHeader('Content-Disposition','attachment;filename="recalculate.json"', true);

[attachment cleanup by admin]
http://yagendoo.com - Virtuemart Templates & Themes