i've altered the adminorder.xslt file and added an additional property field "tracking nr". works perfect on my localhost dev environment. on my production server the values don't get saved (no JS error).
i get the same behavior too with the orginial file (where i have the comments and the notes field) from a clean install.
on both localhost and server i get an error in the firebug console when the call to /tcbase/teacommerce/UpdateOrderPropertiesAdmin/XX.aspx is made. but on localhost the values get saved...
i cant even use the adminorder.xslt from a new install. comments/ordernotes don't get saved either.
in firebug when i try to send the failed request again, i get an positive response (and values are saved) as long as i have an active orderid from the frontend webshop in my cookies. otherwise a get an exception...
Hmm weird! Could it have something to do with the DependencyHandler? If its working locally it should work live as well. Its the same code :) So maybe something with the setup is different
So i'm getting nearer to the problem. if have a 1:1 copy on a server in our LAN => AdminOrderTemplate gets saved without problems. the same with a visual studio project on localhost.
on our production server the values don't get saved. the output in firebug is the same on each setup. the physical servers (local dev server, production server) are both the same (win2008 r2 web, iis75).
has anyone a tip where to look at? maybe there is a some "sort" of misconfiguration in IIS?
Strange AdminOrder XSLT Behavior
Hi,
i've altered the adminorder.xslt file and added an additional property field "tracking nr". works perfect on my localhost dev environment. on my production server the values don't get saved (no JS error).
i get the same behavior too with the orginial file (where i have the comments and the notes field) from a clean install.
any ideas?
thx
Andi
Here is the JS Code. works on localhost
<script type="text/javascript"> <![CDATA[ onSaving(function(){ var formObj = { "comments": jQuery("#comments").val(), "orderNotes": jQuery("#orderNotes").val(), "trackingNr": jQuery("#trackingNr").val() }; TeaCommerce.updateOrderPropertiesAdmin(]]><xsl:value-of select="$order/@id"/><![CDATA[,formObj, false); }); ]]> </script>Hi Andi,
If it works locally it should work on the server as well (Wise words ;-) ). But something must be different on the two machines.
Try opening the firebug console, to see if the server call is made and if all your properties are sent correctly.
Does it save your comment changes?
/Rune
Hi Rune,
on both localhost and server i get an error in the firebug console when the call to /tcbase/teacommerce/UpdateOrderPropertiesAdmin/XX.aspx is made. but on localhost the values get saved...
i cant even use the adminorder.xslt from a new install. comments/ordernotes don't get saved either.
in firebug when i try to send the failed request again, i get an positive response (and values are saved) as long as i have an active orderid from the frontend webshop in my cookies. otherwise a get an exception...
hope that makes some sense to you ;-)
thx
Hi Andi,
I'm afraid it doesn't make enough sence yet :)
What error do you get when the /tcbase/teacommerce/UpdateOrderPropertiesAdmin/XX.aspx is called?
And I guess the XX is a valid order id!?
/Rune
yes you're right. XX is valid order id
actually i don't get really useful error information. i just can see that the method is post, and the status is "canceled"... with no response
here is the complete output:
Hi Andi
Did you change the error message? Looking weird its posting to www.domain.com
Kind regards
Anders
Hi Anders,
yes i did... but domains are all OK and were the same.
thx,
Andreas
Which http status code do you get when its posting?
aborted/canceled, no status code returned. see attached pic
Hmm weird! Could it have something to do with the DependencyHandler? If its working locally it should work live as well. Its the same code :) So maybe something with the setup is different
Kind regards
Anders
its defenitely weird... setup is the same, as the production site is a 1:1 copy. hmmm :-)
thx,
Andi
So i'm getting nearer to the problem. if have a 1:1 copy on a server in our LAN => AdminOrderTemplate gets saved without problems. the same with a visual studio project on localhost.
on our production server the values don't get saved. the output in firebug is the same on each setup. the physical servers (local dev server, production server) are both the same (win2008 r2 web, iis75).
has anyone a tip where to look at? maybe there is a some "sort" of misconfiguration in IIS?
thx
Andi
Tried different browsers?
So your local version works, but not the online one? And both servers have same method calls in FireBug and both post correctly and returns some data?
Kind regards
Anders
Hi Anders,
actually its all the same, same return values in firebug... but no chance on the online version.
but thx for the tip to user different browsers. its working in IE9 :-) mozilla & chrome still not working, but i'm fine now at the moment ;-)
thx for your help,
Andreas
No problem - but its weird that it works in IE :)
Kind regards
Anders
is working on a reply...