Welcome, Guest ( Customer Panel | Login )




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

CHAVOUSA
VP-CART 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-CART 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
0 Item(s)
$0.00