|
|
|
BISI Guru
      
Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681,
Visits: 1,581
|
|
I've seen some of the stores have a shipping calculator on the cart page but the sample templates don't have it and I can't find any variables in the wiki for it. Is this feature available for custom templates?
~Gayla
CLEARANCE SALE ON WOMEN"S LONG SLEEVE DENIM SHIRTS!


|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: 2 days ago @ 6:25:48 AM
Posts: 1,321,
Visits: 2,762
|
|
Here's the code used on standard templates:#if($UseCalculatedShipping == "True") #if($ShippingShowError == "True") <span style="font-style: bold; font-color:red; margin-top:10px;margin-bottom:10px;">Unable to calculate shipping rates.</span><br><br> #end <span style="font-size:80%;font-color:gray;">Postal Code: </span><input type="text" name="DestZipPostal" value="$!DestZipPostal" style="width:45px;"> <a href="#" class="button" OnClick="getShippingRates();">Calculate Shipping</a> #else ** shipping and taxes provided on checkout #end #end You'll also need this in your header for the javascript functions.
<script src="/_js/cartFunctions.js" type="text/javascript"></script>
---------------------
Tomas
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681,
Visits: 1,581
|
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/14/2008 2:45:53 AM
Posts: 3,
Visits: 9
|
|
| Sorry but I don't understand where you would put the HTML for the shipping calculator? I don't have a custom template yet.
|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: 2 days ago @ 6:25:48 AM
Posts: 1,321,
Visits: 2,762
|
|
This code is to be used only in custom templates on the checkout page. If you don't have a custom template, it's already enabled on a pre-designed template.
---------------------
Tomas
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681,
Visits: 1,581
|
|
Well, I can't seem to implement this code properly. The cart page shows the form and will function properly if there is no entry in the field ( it returns a "Unable to Calculate Shipping Rates" message). But if I actually enter a zip code, the button give no response.
I had to remove one of the #end from the posted code above to get it to display without an error.
I have reached the extent of my skills here so if anyone has a suggestion, I'd appreciate it. Otherwise, I'll just do without a shipping calculator.
(The code was entered in the homespun store only)
~Gayla
CLEARANCE SALE ON WOMEN"S LONG SLEEVE DENIM SHIRTS!


|
|
|
|
|
BISI Admin
Group: Administrators
Last Login: 2 days ago @ 6:25:48 AM
Posts: 1,321,
Visits: 2,762
|
|
Here's the code that's being used in the current checkout page.
---------------------
Tomas
|
|
|
|
|
BISI Guru
      
Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681,
Visits: 1,581
|
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 5/22/2008 11:49:57 PM
Posts: 23,
Visits: 86
|
|
| | |