VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 BizRate ROI Script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CHAVOUSA
VP-ASP New User

USA
86 Posts

Posted - November 27 2004 :  13:03:01  Show Profile  Visit CHAVOUSA's Homepage  Reply with Quote
I signed up for BizRates product listing and they have a script available for merchants so they can measure the ROI. I tried using it on the shopthanks.asp page but get a message 'Type Mistmatch' when it gets to the product total variable. Can anyone please help?

The values for the 3 variables I am getting them from the current session and already have them defined:

ordernumber=Getsess("oid")
ordertotalcurr=Getsess("OrderProductTotal")
ordercount=Getsess("CartCount")

Here is the script from BizRate modified by me:

%>
<script language="javascript">
<!--
/* ROI Tracking Data */
var mid = '';
var cust_type = '';
var order_value = '<%ordertotalcurr%>';
var order_id = '<%ordernumber%>';
var units_ordered = '<%ordercount%>';
//-->
</script>
<script language="javascript" src="https://www.bizrate.com/css/roi_tracker.js"></script>
<%


note: One thing that I noticed was that when I use the closing and opening characters <% and %> in the script, the values don't change color, as they usually do in FrontPage to define asp coding.



lynch
VP-ASP New User

USA
74 Posts

Posted - November 29 2004 :  07:54:54  Show Profile  Reply with Quote
quote:

<script language="javascript">
<!--
/* ROI Tracking Data */
var mid = '';
var cust_type = '';
var order_value = '<%=ordertotalcurr%>';
var order_id = '<%=ordernumber%>';
var units_ordered = '<%=ordercount%>';
//-->
</script>



Try this version. The <%= %> pair (instead of <% %>) is equivalent to response.write, so you should get the values of those variables instead of the names.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000