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
Setting Shipping Rates.
Author Message
Reply with quote
Post Setting Shipping Rates. 
I have been trying to set my shipping rates for hours not and I can't figure it out. Can somebody give me some help. I put my shipping policy below this message. No matter how I set it up. My shipping still tries to do it by weight. What do I need to do. Can some tell how the code should look? Please help!

Callie Confused

Normal Shipped $5.99 for the first item, add $1 per each additional item
Priority Shipped $7.99 for the first item, add $1 per each additional item
FedEx/UPS 2nd Day $13.99 for the first item, add $1 per each additional item
Express Mail $17.99 for the first item, add $1 per each additional item
Overnight y $19.99 for the first item, add $1 per each additional item
Overnight Saturday $32.99 for the first item, add $1 per each additional item
Canada $6.99 for the first item, add $1 per each additional item
Canada Expedited $26.99 for the first item, add $1 per each additional item.
International $8.99 for the first item, add $1 per each additional item.
International Expedited $27.99 for the first item, add $1 per each additional item.

View user's profile Send private message Visit poster's website
Reply with quote
Post  
What version of Agoracart do you have?
Please post the settings in your shipping settings manager including the custom shipping logic code that you are trying to use.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
I am using version 5.2.005.
These are what I have my settings as right now.
In what loop of calculate_final_values do you wish to calculate the shipping? is set to 3
Use Alternate Origins - no
Enable Dimensions in Product Database - no
Use the custom shipping logic? - Yes
When to run custom shipping logic? - after
If using Custom Logic, is shipping measured by weight? - no
Real-Time SBW (Ship By Weight) Shipping Module Information - no
Allow Shipments via which services - no on both UPS and USPS
Display Product ID number in recommended box packing order? no
How do you wish to connect to UPS (non-XML) / USPS XML? - LWP

I have no idea what I am doing with the code really. I have never had to try to write code for anything before. This is what I have tried and it has not been working.

<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=" Postal">
Parcel Post</option>
<OPTION value="Priority">
Priority</option>
<OPTION value="2nd Day">
FedEx/UPS 2nd Day</option>
<OPTION value="Expedited">
Express Mail 1-2 Day</option>
<OPTION value="Overnight ">
Overnight </option>
<OPTION value="Overnight Saturday ">
Overnight Saturday </option>
<OPTION value="Canada">
Canada Parcel Post</option>
<OPTION value="Canada Expedited">
Canada FedEx </option>
<OPTION value="International">
International</option>
<OPTION value="International FedEx">
International FedEx</option>
</select>
@sc_order_form_shipping_related_fields = ("Ecom_ShipTo_Method");

@sc_shipping_logic = (“Postal 5.99 + (($total_quantity - 1) * 1.00)”,
“Priority 7.99 + (($total_quantity - 1) * 1.00)”, “ 2nd Day 13.99 +($total_quantity - 1) * 1.00)”,
“Expedited 17.99 + (($total_quantity - 1) * 1.00)”, “Overnight 19.99 + (($total_quantity - 1) * 1.00)”,
“ Overnight Saturday 32.99 + (($total_quantity - 1) * 1.00)”, “Canada 6.99 + (($total_quantity - 1) * 1.00)”,
“ Canada Expedited 26.99 + (($total_quantity - 1) * 1.00)”,
“International 8.99 + (($total_quantity - 1) * 1.00)”,
“International FedEx 27.99 + (($total_quantity - 1) * 1.00");

$ship_logic_done = 'yes';

View user's profile Send private message Visit poster's website
Reply with quote
Post  
Oh my, there's a lot of stuf in there that is totally incorrect and should not be in your custom shipping logic...

When to run custom shipping logic? - set to "before"

Put the following in your custom shipping logic:
Code:

$ship_method = $form_data{"Ecom_ShipTo_Method"};

if ($ship_method =~ /Postal/i) {
  $shipping_price = 5.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Priority/i) {
  $shipping_price = 7.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /2nd Day/i) {
  $shipping_price = 13.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Expedited/i) {
  $shipping_price = 17.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Overnight/i) {
  $shipping_price = 19.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Overnight Saturday/i) {
  $shipping_price = 32.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Canada/i) {
  $shipping_price = 6.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /Canada Expedited/i) {
  $shipping_price = 26.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /International/i) {
  $shipping_price = 8.99 + (($total_quantity - 1) * 1.00);
}
if ($ship_method =~ /International FedEx/i) {
  $shipping_price = 27.99 + (($total_quantity - 1) * 1.00);
}

$ship_logic_done = 'yes';


HTH!



Last edited by scottcrew on Thu Jul 17, 08 6:07 pm; edited 1 time in total

_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Thanks for the help. I knew I was really lost. I have one other question. It says for the Custom Shipping Methods: You will also need to place the output at the bottom of this page (only after pressing the submit button) in your order forms as it's not automatically inserted/changed in the checkout/order forms. Can you tell me where I go to put the code in the checkout/order forms?

Callie

View user's profile Send private message Visit poster's website
Reply with quote
Post  
You have to edit the order form file for the payment gateway you are using.
All order forms are located in the store's 'html/forms' directory.
Remember to download and upload these files in ASCII via FTP, when editing.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
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