Jump to content

adding a shipping calculator


Recommended Posts

I have a code for a shipping calculator (with a few different carriers) that i want to add to my store preferably on 1 of the 5 check out pages?? Can someone please tell me how and where to put this code!? And being that there not any carriers that prestashop uses can i still offer them to my customers?

 

my store: http://50.87.248.66/~simplgr4/en/

Link to comment
Share on other sites

<link href="http://www.freightcenter.com/CSS/widget.css" rel="stylesheet" type="text/css" />

<table border="0" width="100%" cellpadding="0" cellspacing="0">

<tr>

<td>

<script type="text/javascript" language="javascript">

sWidgetID=8191;

sWVerID=1;

sZip='11003';

sLocationType=2;

 

sPickupPalletizing=0;

sInsidePickUp=0;

sLiftGate=0;

sLimitedAccess=0;

sNotifyBeforePickUp=0;

sTradeshow=0;

 

DInsideDelivery=0;

DLiftGate=0;

DLimitedAccess=0;

DNotifyBeforeDelivery=0;

DTradeshow=0;

 

PackagingType=2;

Quantity=1;

TWeight=385;

Width=25.00;

Height=71.00;

Length=56.00;

FClass=100;

 

BlindShipment=0;

Hazmat=0;

 

strfinal=sZip + ',' + sLocationType + ',' + sPickupPalletizing + ',' + sInsidePickUp + ',' + sLiftGate + ',' + sLimitedAccess + ',' +

sNotifyBeforePickUp + ',' + sTradeshow + ',' + DInsideDelivery + ',' + DLiftGate + ',' + DLimitedAccess + ',' + DNotifyBeforeDelivery + ',' +

DTradeshow + ',' + PackagingType + ',' + Quantity + ',' + TWeight + ',' + Width + ',' + Height + ',' + Length + ',' + FClass + ',' + BlindShipment + ',' + Hazmat;

 

var url;

function gotratingpopup()

{

var FCtoZip = window.document.getElementById("FCtoZip");

var FCtoLocation=window.document.getElementById("FCtoLocation");

if (FCtoZip.value=='')

{

alert("Please enter destination postal code");

return;

}

var wind = window;

var winop = wind.open;

url='http://www.freightcenter.com/RatePopup.aspx?destcode=' + FCtoZip.value + '&wid=' + sWidgetID + '&WVerID=' + sWVerID +

'&unloadid=' + FCtoLocation.value + '&strfinal=' + strfinal;

 

winop(url, null, 'left=400, height=285, width=610, status=0, resizable=0, scrollbars=0, toolbar=0, location=0, menubar=0');

}

</script>

<div id="FCborder">

<div id="FCpadding">

<div id="FCholder">

<div id="FCheader">

<h1>

<span>Freight Shipping Calculator</span>

</h1>

<p>Fill out the fields below and press the orange button to get instant rates.</p>

<img src="http://www.freightcenter.com/imagesWidget/FClogo_rev.gif" width="168" height="27" alt="FreightCenter" title="Click here to visit our homepage"/>

</div>

<div id="FCwidgetForm">

<div id="FCcontent">

<div id="FCinputTozip" class="FCinput">

<label for="FCtoZip">Enter Your U.S. Zip</label>

<input id="FCtoZip" type="text" />

<input id="BogusTextBoxToPreventPostBackOnEnterKey" type="text" style="display:none"/>

</div>

<div id="FCinputTolocation" class="FCinput">

<label for="FCtoLocation">Select Location Type</label>

<select id="FCtoLocation">

<option value="2">Business with Dock or Forklift</option>

<option value="3">Business without Dock or Forklift</option>

<option value="5">Construction Site</option>

<option value="6">Convention Center or Tradeshow </option>

<option value="1">Residence</option>

<option value="4">Terminal</option>

</select>

</div>

</div>

<div id="FCbuttonHolder">

<input id="FCbutton" type="button" value="" onclick="gotratingpopup();"/>

</div>

</div>

<div id="FCfooter">

<p>Rates are subject to change based on time of calculation and data entered.<br />

                            © 2011 <a href="http://freightcenter.com" style="float:none; margin:0">FreightCenter Inc.</a> - All Rights Reserved</p>

<div id="FCfooterLinks">


<a href="http://www.freightcenter.com/WidgetInfo.aspx">Create a Shipping Calculator</a>

</div>

</div>

<div style="clear: both;"></div>

</div>

</div>

</div>

</td>

</tr>

</table>

Link to comment
Share on other sites

Actually that module is not meant to display html, it's just for statistics in the back office. mypresta.eu has a free one, or you can try my Html Block (see my signature for a link to my addons store, 15 bucks only, reduced by 20% from tuesday onwards, 50% on cyber monday)

Link to comment
Share on other sites

Well Nemo I figured out how to place the code its not that easy but its also not that hard this is my first time working on eCommerce sites I just put my mind to it and I got it done alot of the support chats I went to that specialized in this were all telling me it was to much and yea they were doing a similar thing of trying to selling me more modules or more support. But the way I was able to do it was by going in to my Cpanel and just simply cut and pasting the code into the .txt files. The tricky part of it was just finding the right file to put it in so you can have it were you want it placed on the site. 

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...