X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help inserting Bizrate Code (https://forum.x-cart.com/showthread.php?t=25419)

POR-15 Depot 10-01-2006 02:58 PM

Help inserting Bizrate Code
 
I need to insert the following code to the page after a sucsessful purchase.But, alas I can't figure out what page/tpl file to use. Help

Code:


<!-- BEGIN: BizRate Survey Invitation HTML -->
<script language=&quot;JavaScript&quot; src=&quot;https://eval.bizrate.com/js/pos_XXXX.js&quot; type=&quot;text/javascript&quot;></script>
<!-- END: BizRate Survey Invitation HTML -->


balinor 10-02-2006 02:54 AM

Re: Help inserting Bizrate Code
 
customer/main/order_message.tpl

Moving to Template Editing

POR-15 Depot 10-02-2006 08:06 PM

Re: Help inserting Bizrate Code
 
thanks for the quick reply.

rgoldman 05-14-2008 10:53 AM

Re: Help inserting Bizrate Code
 
Where in this file do you place it. Getting an error message from bizrate:

----

We're sorry! We couldn't process your submission.

We are sorry but there was a problem determining the merchant you are trying to evaluate. If you are accessing the survey from an invitation email, the URL may have wrapped onto a second line. Please be sure that the complete URL is being used.

balinor 05-14-2008 10:57 AM

Re: Help inserting Bizrate Code
 
What did you place and where?

rgoldman 05-14-2008 11:09 AM

Re: Help inserting Bizrate Code
 
placed this code

<!-- BEGIN: BizRate Survey Invitation HTML -->
<script language=&quot;JavaScript&quot; src=&quot;https://eval.bizrate.com/js/pos_XXXX.js&quot; type=&quot;text/javascript&quot;></script>

after </tr> in the customer/main/order_message.tpl file
<!-- END: BizRate Survey Invitation HTML -->

cotc2001 05-14-2008 11:14 AM

Re: Help inserting Bizrate Code
 
I presume that you've just posted the XXXX in the url given to mask out your real merchant ID (yes i know state the bleeding obvious but just checking)

balinor 05-14-2008 11:16 AM

Re: Help inserting Bizrate Code
 
That's the problem, you can't put something between a </tr> and </table> tag. Put the code right at the end of the template, below the Google code.

rgoldman 05-14-2008 11:22 AM

Re: Help inserting Bizrate Code
 
That does not work either. Same message.

amxfan 09-19-2008 10:07 PM

Re: Help inserting Bizrate Code
 
I just got done dealing with this issue. I contacted Bizrate and was informed that it can take 24-48 hours after you created your account for it to replicate though their system.
Also a way to check to see if it is X-cart or your account with Bizrate, do this.

1. Create a blank html "with notepad or what ever you want"
2. Past the code below into it.
3. Past YOUR Bizrate script over the fake one that is in the code and save.
4. Preview that page. You can this by opening your browser and click file - open file - then browse to the file.

If it errors then it is not X-cart or the placement of the script in X-cart but the account itself.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>

<div align="center">this is a test of the Bizrate survey script</div>
</body>
<!-- BEGIN: BizRate Survey Invitation HTML -->
<script language="JavaScript" src="https://eval.bizrate.com/js/pos_123456.js" type="text/javascript"></script>
<!-- END: BizRate Survey Invitation HTML -->
</html>





If this file works but does NOT work in X-cart then please make sure you have added the script to
skin1/customer/main/order_message.tpl

UNDER this line

Code:

{include file="modules/Google_Analytics/ga_commerce_form.tpl"}
{/if}


Hope this helps


All times are GMT -8. The time now is 02:44 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.