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
Ship By Weight Custom Shipping Logic Setup Question
Author Message
Reply with quote
Post Ship By Weight Custom Shipping Logic Setup Question 
Below is the shipping logic that I came up with based on looking at other posts. I copy & pasted it into the custom shipping logic box and turned on custom shipping. My question is what do I need to edit in the file "Authorize.Net-orderform.html" to get this to work?

@sc_shipping_logic = ( "First Class|||-.4|1.99",
"First Class|||.41-1.2|4.29",
"First Class|||1.21-2|6.79",
"First Class|||2.01-5|4.29",
"Priority Mail|||-.8|6.79",
"Priority Mail|||.81-5|12.79",
"Express Mail|||-2|19.79",
"Express Mail|||2.01-5|37.79");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);

My store URL is: http://www.mulletonthego.com/shoppingcart/agora.cgi?product=mullets

Thanks in advance.

View user's profile Send private message
Reply with quote
Post  
You need to make sure that the shipping methods in the drop-down list match what you have set up in the custom shipping logic.

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
Reply with quote
Post  
OK. This might be a dumb question but how do I do that in the "AuthorizeNet-orderform.html" file?
I see all the lines of code for the standard options(I didn't copy and paste the UPS or FedEx code) as shown below:

<!--agorascript-pre
if ("$sc_auth_uspsparcelpost" =~ /yes/i) { return
q~<OPTION VALUE="USPS Parcel Post (Parcel)">
USPS Parcel Post</OPTION>~;
} else {return '';}
-->
<!--agorascript-pre
if ("$sc_auth_uspsprioritymail" =~ /yes/i) { return
q~<OPTION VALUE="USPS Priority Mail (Priority)">
USPS Priority Mail</OPTION>~;
} else {return '';}
-->
<!--agorascript-pre
if ("$sc_auth_uspsexpressmail" =~ /yes/i) { return
q~<OPTION VALUE="USPS Express Mail (Express)">
USPS Express Mail</OPTION>~;
} else {return '';}
-->

View user's profile Send private message
Reply with quote
Post  
Well, at this point I can't even see your order form.
It was either:
1. The order form file wasn't uploaded in ASCII.
Reupload the file in ASCII mode
2. You have a special character in one of the messages boxes in the Payment Gateway area of the manager. You cannot use the following characters unless you "escape" them:
" # @
Escape the character like this:
\@

Edit the custom shipping logic as follows:
Code:
@sc_shipping_logic = ( "FirstClass|||-.4|1.99",
"FirstClass|||.41-1.2|4.29",
"FirstClass|||1.21-2|6.79",
"FirstClass|||2.01-5|4.29",
"Priority|||-.8|6.79",
"Priority|||.81-5|12.79",
"Express|||-2|19.79",
"Express|||2.01-5|37.79");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);


On the order form:
Code:

<OPTION VALUE="USPS First Class (FirstClass)">
USPS First Class</OPTION>

<!--agorascript-pre
if ("$sc_auth_uspsparcelpost" =~ /yes/i) { return
q~<OPTION VALUE="USPS Parcel Post (Parcel)">
USPS Parcel Post</OPTION>~;
} else {return '';}
-->
<!--agorascript-pre
if ("$sc_auth_uspsprioritymail" =~ /yes/i) { return
q~<OPTION VALUE="USPS Priority Mail (Priority)">
USPS Priority Mail</OPTION>~;
} else {return '';}
-->
<!--agorascript-pre
if ("$sc_auth_uspsexpressmail" =~ /yes/i) { return
q~<OPTION VALUE="USPS Express Mail (Express)">
USPS Express Mail</OPTION>~;
} else {return '';}
-->


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
Reply with quote
Post  
You guys are Good! Thanks for the help.

I had quote marks on the Payment Gateway page in one of my text fields. That was keeping the order form from showing up. Also straightened out the shipping and it seems to be working correctly.

THANKS AGAIN!

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