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
shipping fed-X ground and fed-X 2nd day
Author Message
Reply with quote
Post shipping fed-X ground and fed-X 2nd day 
I'm trying to have only these two options (fed-X ground; fed-X 2nd day; no handling) but the shipping isn't working correctly; too many options are shown when I try the cart :?: . Can someone help? Thanks.

1. Here's what I have in Offlineorderform.html:
<SELECT NAME="Ecom_ShipTo_Method">
<!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" ne "") {
return '<OPTION value="$vform_Ecom_ShipTo_Method">' .
'$vform_Ecom_ShipTo_Method &nbsp;</OPTION>' .
'<OPTION VALUE="Fed-X Ground">Standard Shipping 5-7 days';
} else {
return '<OPTION VALUE="Fed-X Ground" CHECKED>Standard 5-7 days';
}
--></OPTION>
<OPTION VALUE="Fex-X Ground">
Fed-X Ground</OPTION>
<OPTION VALUE="Fed-X 2nd Day">
Fed-X 2nd Day</OPTION>
</SELECT></TD>


2. Here's what I put in shipping logic:

$ship_method = $form_data{'Ecom_ShipTo_Method'};
if ($ship_method eq "") { # try vform, perhaps there is a value there
$use_vform = "yes";
$ship_method = $vform{'Ecom_ShipTo_Method'};
}
if ($ship_method eq "") { # set a default value
$ship_method="Fed-X Ground";
}
@sc_shipping_logic = ( "|1-50|||7.95",
"|50.01-70|||9.95",
"|70.01-100|||11.95",
"|100.01-125|||13.95",
"|125.01-150|||14.95",
"|150.01-|||9%");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
if ($ship_method eq "") { # set a default value
$ship_method="Fed-X 2nd Day";
}
@sc_shipping_logic = ( "|1-50|||14.95",
"|50.01-70|||6.95",
"|70.01-100|||17.95",
"|100.01-125|||20%",
"|125.01-150|||19%",
"|150.01-|||7%");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$ship_logic_done = 'yes';

Thanks
Michael
www.camlawblog.com


_________________
Michael H. Cohen
www.camlawblog.com
View user's profile Send private message
Reply with quote
Post  
Howdy, since yer an AgoraPay Customer...


try this instead:

Code:


ship_method = $form_data{'Ecom_ShipTo_Method'};
if ($ship_method eq "") { # try vform, perhaps there is a value there
$use_vform = "yes";
$ship_method = $vform{'Ecom_ShipTo_Method'};
}
if ($ship_method eq "") { # set a default value
$ship_method="Fed-X Ground";
}
@sc_shipping_logic = ( "Fed-X Ground|1-50|||7.95",
"Fed-X Ground|50.01-70|||9.95",
"Fed-X Ground|70.01-100|||11.95",
"Fed-X Ground|100.01-125|||13.95",
"Fed-X Ground|125.01-150|||14.95",
"Fed-X Ground|150.01-|||9%",
"Fed-X 2nd Day|1-50|||14.95",
"Fed-X 2nd Day|50.01-70|||6.95",
"Fed-X 2nd Day|70.01-100|||17.95",
"Fed-X 2nd Day|100.01-125|||20%",
"Fed-X 2nd Day|125.01-150|||19%",
"Fed-X 2nd Day|150.01-|||7%");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$ship_logic_done = 'yes';



That should do it or be close. Also check yer spelling of Fed-X on the order form.. I think i saw a Fex-X in there. Turn off SBW in shipping manager and enable custom shipping logic.. if you haven't already.

Hope that helps,

Mister Ed ... of course ... of course


_________________
Vote Mister Ed for Prez 2012, for a REAL change.

Need Low Cost Startup Option? Try NiftyPay's Pay to Play
http://www.NiftyPay.com
View user's profile Send private message Visit poster's website
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