Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Help inserting Bizrate Code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-01-2006, 02:58 PM
 
POR-15 Depot POR-15 Depot is offline
 

Member
  
Join Date: Sep 2006
Posts: 12
 

Default 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 -->
__________________
Dave
Version 4.1.3
Reply With Quote
  #2  
Old 10-02-2006, 02:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Help inserting Bizrate Code

customer/main/order_message.tpl

Moving to Template Editing
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-02-2006, 08:06 PM
 
POR-15 Depot POR-15 Depot is offline
 

Member
  
Join Date: Sep 2006
Posts: 12
 

Default Re: Help inserting Bizrate Code

thanks for the quick reply.
__________________
Dave
Version 4.1.3
Reply With Quote
  #4  
Old 05-14-2008, 10:53 AM
 
rgoldman rgoldman is offline
 

Newbie
  
Join Date: Feb 2008
Posts: 4
 

Default 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.
__________________
Goldie
http://www.toonrooms.com
x-cart v.4.1.9
Reply With Quote
  #5  
Old 05-14-2008, 10:57 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Help inserting Bizrate Code

What did you place and where?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 05-14-2008, 11:09 AM
 
rgoldman rgoldman is offline
 

Newbie
  
Join Date: Feb 2008
Posts: 4
 

Default 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 -->
__________________
Goldie
http://www.toonrooms.com
x-cart v.4.1.9
Reply With Quote
  #7  
Old 05-14-2008, 11:14 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default 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)
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #8  
Old 05-14-2008, 11:16 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 05-14-2008, 11:22 AM
 
rgoldman rgoldman is offline
 

Newbie
  
Join Date: Feb 2008
Posts: 4
 

Default Re: Help inserting Bizrate Code

That does not work either. Same message.
__________________
Goldie
http://www.toonrooms.com
x-cart v.4.1.9
Reply With Quote
  #10  
Old 09-19-2008, 10:07 PM
 
amxfan amxfan is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 45
 

Default 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
__________________
Version 4.1.10
CDSEO
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:30 PM.

   

 
X-Cart forums © 2001-2020