The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
need help with shipping
Author Message
Reply with quote
Post need help with shipping 
I guess I will be the 243rd lucky person who can't figure out what they are doing wrong. Embarassed
Shipping is not calculating at all. Had shipping working fine in v4 but upgraded and ???

This is my logic:

if ($ship_go eq "go") {

if ($vform_Ecom_ShipTo_Method eq 'Parcel') {
@sc_shipping_logic = |1-10|||4.50",
"|10.01-20|||5.50",
"|20.01-35|||6.50",
"|35.01-50|||7.50",
"|50.01-75|||8.50",
"|75.01-100|||9.50",
"|100.01-|||10.50");
}

if ($vform_Ecom_ShipTo_Method eq 'Priority') {
@sc_shipping_logic = |0-10|||7",
"|10.01-20|||8",
"|20.01-35|||9",
"|35.01-50|||10",
"|50.01-75|||11",
"|75.01-100|||12",
"|100.01-|||13");
}

if ($vform_Ecom_ShipTo_Method eq 'GNDRES') {
@sc_shipping_logic = "|0-20|||9",
"|20.01-35|||10",
"|35.01-50|||11",
"|50.01-75|||12",
"|75.01-100|||13",
"|100.01-|||15");
}

if ($vform_Ecom_ShipTo_Method eq 'CanMex') {
@sc_shipping_logic = |0-10|||11.50",
"|10.01-20|||12.50",
"|20.01-35|||13.50",
"|35.01-50|||14.50",
"|50.01-75|||15.50",
"|75.01-10|||16.50",
"|100.01-|||20");
}

if ($vform_Ecom_ShipTo_Method eq 'Westeurope') {
@sc_shipping_logic = |0-10|||12.50",
"|10.01-20|||14.50",
"|20.01-35|||16.50",
"|35.01-50|||18.50",
"|50.01-75|||21.50",
"|75.01-10|||25.50",
"|100.01-175|||28",
"|175.01-|||34");
}

if ($vform_Ecom_ShipTo_Method eq 'International') {
@sc_shipping_logic = |0-10|||13.50",
"|10.01-20|||15.50",
"|20.01-35|||17.50",
"|35.01-50|||20.50",
"|50.01-75|||23.50",
"|75.01-10|||27.50",
"|100.01-175|||33",
"|175.01-|||38");
}
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$shipping_logic_done = "yes";
}

in the order form:



<!--PASTE SHIPPING METHODS FROM SHIPPING MANAGER BELOW THIS-->

<input type="hidden" NAME="Ecom_Ship" value="go">

<SELECT NAME=Ecom_ShipTo_Method>
<OPTION value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return " Select Shipping Method ";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></OPTION>
<OPTION VALUE="Parcel">
US Mail (Domestic only)</option>
<OPTION VALUE="Priority">
US Priority Mail (Domestic only)</option>
<OPTION VALUE="GNDRES">
UPS Ground (Domestic only)</option>
<OPTION VALUE="CanMex">
Canada or Mexico</option>
<OPTION VALUE="Westeurope">
Western Europe</option>
<OPTION VALUE="International">
International - Other</option>
</SELECT>

<!--PASTE SHIPPING METHODS FROM SHIPPING MANAGER ABOVE THIS-->


Am I cracked? There has to be some dumb mistake somewhere but I just can't look at it anymore.

The calculate shipping loop is set to "2". store URL http://tseen.lunarservers.com/~salta4/store5/agora.cgi

I am hoping to bring this up in time for Labor Day; still have a few little things to do (secure header and footer, few other clean-up issues) but it's been 9 months in the making. I've been putting this shipping issue off, and off, and off....

View user's profile Send private message
Reply with quote
Post never mind. 
Working now. As soon as you ask for help, the problems become much more apparent. Rolling Eyes

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum