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
Trouble with custom shipping
Author Message
Reply with quote
Post Trouble with custom shipping 
Hi all

Newbie here.

I have configured my shipping such that there are 3 options:

USPS
UPS
Fedex

Those are the only shipping choices. My goal is that when they select any one of those, a set price is added to the order no matter the cost or # of items. So this is the logic I found online:

@sc_shipping_logic = ( "USPS|1-|||5.00",
"UPS|1-|||10.00",
"FedEx|1-|||15.00");
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$shipping_logic_done = "yes"; # forces exit, no handling charge added

When I click through and try to order, nothing happens. No shipping charges are added.

Any ideas?

Thanks so much,

Adam

View user's profile Send private message
Reply with quote
Post  
Adam,
What is the URL to your store?


_________________
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  
http://www.go4thegoal.org/store

Thanks so much,

Adam

View user's profile Send private message
Reply with quote
Post  
Adam,
I have gone through the site and a few things jump out at me first that need to be dealt with.
1. On the store's front page, I am seeing links like:
agora.cgi?cart_id=% rt_id%%&product=Apparel

This is incorrect and can cause problems. This link should be more like:
agora.cgi?product=Apparel

2. The following MUST be removed from the header:
Code:
<html>
<body leftMargin=0 topMargin=0 marginwidth="0">

You will need to use the "Store Design - CSS Editor" in the manager to set up the body properties.

The following is another bit of code that must be removed from the end of your header file:
Code:
</body>
</html>


What do you have for the following settings:
Use the custom shipping logic?
When to run custom shipping logic?
If using Custom Logic, is shipping measured by weight?

Try removing the following line from your logic:
$shipping_logic_done = "yes"; # forces exit, no handling charge added

Are all of the SBW shipping options turned off?

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  
Hi Bonnie,

Thanks for helping me with this!

I removed the code from the header and footer and changed the links. I also removed the last line of the logic.

I have all SBW options off, Custom Shipping Logic is set to go BEFORE. By weight is off. And use Custom Logic is on.

Still same issues.

Thanks,

Adam

View user's profile Send private message
Reply with quote
Post  
Adam,
What do you have for this setting?:
In what loop of calculate_final_values do you wish to calculate the shipping?


_________________
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 have it set to 3.

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