 |
Page 1 of 1
|
Author |
Message |
meauxad
Newbie
Joined: 16 Jun 2005
Posts: 9
|
 Shipping price does not change based on shipping method
I am using agora cart on my website. I currently have 2 forms of shipment the customer can choose, UPS Ground Residential and UPS 2nd Day. The cart displays the same shipment price for both methods of shipment. Does anyone have any suggestions to calculate shipment based on the shipping method. Thanks.
Meauxad
|
Thu Jun 16, 05 12:21 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Meauxad,
How are you currently trying to calculate your shipping? Are you using the SBW?
What are your settings in the Shipping Settings area of the manager?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Jun 16, 05 1:41 pm |
 |
 |
meauxad
Newbie
Joined: 16 Jun 2005
Posts: 9
|
I am using the Custom Shipping Logic section. I answered yes to the first question and no to the second. This is how I have it setup:
@sc_shipping_logic = ( "|1-29.99|||35.0%",
"|30-59.99|||23.5%",
"|60-89.99|||17.0%",
"|90-149.99|||12.5%",
"|150-|||0.00");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
I am not using the SBW. My site is www.xtremecaps.com . Thanks.
Meauxad
Last edited by meauxad on Thu Jun 16, 05 2:01 pm; edited 1 time in total
|
Thu Jun 16, 05 1:51 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You have to set up the shipping method in the logic.
Something like this:
Code:
@sc_shipping_logic = ( "GNDRES|1-29.99|||35.0%",
"GNDRES|30-59.99|||23.5%",
"GNDRES|60-89.99|||17.0%",
"GNDRES|90-149.99|||12.5%",
"GNDRES|150-|||0.00",
"2DA|1-29.99|||50.0%",
"2DA|30-59.99|||40.5%",
"2DA|60-89.99|||30.0%",
"2DA|90-149.99|||20.5%",
"2DA|150-|||0.00");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Jun 16, 05 1:57 pm |
 |
 |
meauxad
Newbie
Joined: 16 Jun 2005
Posts: 9
|
 It worked
That worked. I really appreciate your help with this. Where did you get that information from? Thanks again.
Meauxad
|
Thu Jun 16, 05 2:11 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Experience.. mostly...
There's lots of info found in the protected/DOCS directory of the store, too.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Thu Jun 16, 05 2:38 pm |
 |
 |
abayyari
Newbie - Two Blades
Joined: 22 Jun 2005
Posts: 26
|
I ran into a similar problem and just wanted to post the solution that i found. If you are looking for the abbreviations for shipping methods, just look at 2Checkout-orderform.html under the forms/ directory. You will see code similar to this:
<SELECT NAME="Ecom_ShipTo_Method">
<OPTION VALUE="UPS Ground (GNDRES)" CHECKED>
UPS Ground</OPTION>
<OPTION VALUE="UPS 2nd Day (2DA)">
UPS 2nd Day</OPTION>
<OPTION VALUE="UPS Next Day (1DA)">
UPS Next Day</OPTION>
<OPTION VALUE="FEDEX Priority Overnight (Express,Priority Overnight)">
FedEx Priority Overnight</OPTION>
<OPTION VALUE="FEDEX Express (Express,Express Saver)">
FedEx Express Saver</OPTION>
<OPTION VALUE="FEDEX Ground (Ground,Ground)">
FedEx Ground</OPTION>
<OPTION VALUE="FEDEX Home Delivery (Home,Home)">
FedEx Home Delivery</OPTION>
<OPTION VALUE="USPS Parcel Post (Parcel)">
USPS Parcel Post</OPTION>
<OPTION VALUE="USPS Priority Mail (Priority)">
USPS Priority Mail</OPTION>
<OPTION VALUE="USPS Express Mail (Express)">
USPS Express Mail</OPTION>
</SELECT>
All the shipping methods are listed inside of the parenthesis ( ).
For example, if you want to calculate the shipping for USPS parcel and priority mail, you would enter code similar to the following in the Custom Shipping Logic section:
@sc_shipping_logic = (Parcel "|1-39.99|||15.0%",
"Parcel|40-59.99|||12.0%",
"Parcel|60-89.99|||9.0%",
"Priority|1-39.99|||19.0%",
"Priority|40-59.99|||15.0%",
"Priority|60-89.99|||12.0%");
Cheers
Ahmed
|
Wed Jun 29, 05 4:50 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Ahmed,
You can only use those if the SBW is turned off in the shipping settings of the manager. If you don't, the cart will try to access the UPS or USPS API, which may throw errors or not calculate as you want it to.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Jun 29, 05 5:52 pm |
 |
 |
abayyari
Newbie - Two Blades
Joined: 22 Jun 2005
Posts: 26
|
Thx for the clarification, forgot to mention that key point in my post.
cheers
Ahmed
|
Wed Jun 29, 05 6:28 pm |
|
 |
|
The time now is Wed Apr 30, 25 12:15 am | All times are GMT - 7 Hours
|
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
|
|
|