BuyItSellIt Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


12»»

shipping calculator Expand / Collapse
Author
Message
Posted 4/7/2008 9:22:28 AM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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!










Post #7725
Posted 4/7/2008 12:33:54 PM


BISI Admin

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
Post #7736
Posted 4/7/2008 12:45:18 PM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681, Visits: 1,581
Great! Thank you!!!

~Gayla

CLEARANCE SALE ON WOMEN"S LONG SLEEVE DENIM SHIRTS!










Post #7737
Posted 4/8/2008 8:21:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #7821
Posted 4/8/2008 10:24:48 PM


BISI Admin

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
Post #7825
Posted 4/15/2008 10:15:06 AM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI 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!










Post #8116
Posted 4/15/2008 1:24:21 PM


BISI Admin

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

  Post Attachments 
checkout_shipping.txt (62 views, 6.83 KB)
Post #8129
Posted 4/15/2008 3:09:18 PM
BISI Guru

BISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI GuruBISI Guru

Group: Forum Members
Last Login: Today @ 1:17:35 PM
Posts: 681, Visits: 1,581
Thanks so much! Got it working using that file, although I still don't know what I did wrong!

~Gayla

CLEARANCE SALE ON WOMEN"S LONG SLEEVE DENIM SHIRTS!










Post #8136
Posted 4/22/2008 2:50:56 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 5/22/2008 11:49:57 PM
Posts: 23, Visits: 86
Thanks again! Tomas.