Feefo

Sending Feefo data

Installing remote sales advice

This part of the process  requires understanding of your website.  In general we recommend using FTP rather than calling the URL, as it offers more control.

You need to call the script at

https://www.feefo.com/feefo/entersaleremotely.jsp

with a number of parameters as described below.

website

a valid logon for your business (e.g. www.examplesupplier.com/peripherals/cameras)

ALWAYS

password

your feefo password

ALWAYS

email

your customer's email address

ALWAYS

name

your customer's name

ALWAYS

date

the transaction date (YYYY-MM-DD or DD/MM/YYYY)

optional

description

the description of the purchase

ALWAYS

orderref

your order number reference. This will be private information to you, and is so that you can recognize which customer makes which comment

ALWAYS

itemref

the item within the order. This will also be private information to you, and can be used, for instance, for the product reference on an order line

optional

feedbackdate

when you want the first feedback request to be sent. This is useful when you are selling services that will not be completed for a significant period (e.g. holidays or building contracts)

optional

currency

currency will be expressed in the standard international form (e.g. USD, GBP)

optional

productlink a link that will be used on Feefo pages to link back to the correct product page on your site

optional

customerref your reference number for the customer - in case you want to incorporate our feedback information into your files

optional

amount

a number, private to you and your customer. May be used to calculate Feefo points as an incentive to leave feedback

optional

 

   

The script will return either the word 'true' or an error.

The minimum required code is (as written in PHP)

$url="https://www.feefo.com/feefo/entersaleremotely.jsp ?website=".urlencode($website)."&password=".$password."&email=".urlencode($email)."&name=".urlencode($username)."&date=".urlencode($datestring)."&description=".urlencode($desc)."&itemref=".$itemref."&orderref=".$orderref;
$response = fopen( $url, "r" ) ;
if ( $response ){
    $responsetext .= fgets($response, 4096);
    fclose($response);
}
if (substr(trim($responsetext),0,4) != "true") 
    echo"ERROR: ".trim($responsetext);

The equivalent code in VB.NET

strUrl = "https://www.feefo.com/feefo/entersaleremotely.jsp?website=" & strWebsite & "&password="& strPassword & "&email="
 strUrl &= HttpUtility.UrlEncode(Trim(CStr(rqOrderDataRow(("CustomerEmail")))))
 strUrl &= "&name=" & HttpUtility.UrlEncode(CStr(rqOrderDataRow("BillSalutation")) & " " & CStr(rqOrderDataRow("BillFirstname")) & " " & CStr(rqOrderDataRow("BillSurname"))) & "&description=" & HttpUtility.UrlEncode(CStr(rqOrderDataRow("StockName"))) & "&vendorref=" & CStr(rqOrderDataRow("ItemCode")) & "&orderref=" & CStr(rqOrderDataRow("OrderNo")) & "&customerid=" & HttpUtility.UrlEncode(Trim(CStr(rqOrderDataRow(("OrderIPAddress"))))) 
 Dim HttpWReq As HttpWebRequest = CType(WebRequest.Create(strUrl), HttpWebRequest)
 HttpWReq.KeepAlive = False
Dim HttpWResp As HttpWebResponse = CType(HttpWReq.GetResponse(), HttpWebResponse) 
If HttpWResp.StatusDescription = "OK" Then
  'OK successfully send to Feefo'
 Else
  'Failed'
 End If
HttpWResp.Close()

For specific code for osCommerce download this file

For specific code for Zencart see here

Find out how it works. Take a Feefo test drive, or register now