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
USPS - No error, just doesn't calculate shipping at all
Author Message
Reply with quote
Post No error, just doesn't calculate shipping at all 
Hi, I need some assistance with the SBW module. I've read through tons of posts for hours and learned a lot about fixing a module if it's working wrong, but found nothing on if it isn't doing anything at all.

I have several custom shipping settings that work fine, but I also need to use the USPS portion of the module for some items. I already registered with the USPS and have my username and it is switched to the production server as of six hours ago. I'll just have to tell you what settings I was using, because I had to turn the module off as the store is already live and if I leave it on while I am figuring this out, customers who choose that shipping option will erroneously receive free shipping.


Use the Live/Real-Time SBW (Ship By Weight for UPS/USPS) module? YES
Allow Shipments via which services? USPS: YES UPS(non-XML): NO
Max Weight Per Box: UPS:blank USPS:15
Display Product ID number in recommended box packing order? NO
How do you wish to connect to UPS (non-XML) / USPS XML? LWP (I also tried http-lib)
USPS API URL: http://production.shippingapis.com/ShippingAPI.dll
USPS API Userid: (ID entered)
USPS ORIGIN ZIP: (zip entered)
Do you offer USPS Parcel Post: NO
Do you offer USPS Priority Mail: YES
Do you offer USPS Express Mail: NO

International (Outside of US & PR) Shipping Options:
Do you offer USPS Priority Mail International 6-10 days: NO
Do you offer USPS Priority Mail International 3-5 days: NO
Do you offer USPS Global Express Guaranteed 1-3 days: NO

and this appears in the pre-built shipping methods:
<option value="USPS Priority Mail (Priority)">
USPS Priority Mail (3-7 days)</option>

I have correct weights (1lb/item) entered for the products in the product edit area, and I have tried both before and after for when to run custom shipping logic, and have only tried "3" for "In what loop of calculate_final_values do you wish to calculate the shipping?"
...so it all seems good to me, but when I go to run a test order if I choose any of the custom shipping methods I have, the shipping gets added correctly. If I choose the "USPS Priority Mail (Priority)" option it just never adds any shipping to the order, period, as if there were a zero (blank) amount for the weight or something.

I am using AgoraCart 5.2.005 and it is hosted on my own virtual server through knownhost.

Thank you in advance for any help you can give me on this thoroughly a challenge issue!
-jeff

View user's profile Send private message
Reply with quote
Post  
Jeff,
What is the URL to your store?
Also, can you please post all of the settings above the SBW settings area,
including custom shipping logic entered in the box?


_________________
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  
scottcrew wrote:
Jeff,
What is the URL to your store?
Also, can you please post all of the settings above the SBW settings area,
including custom shipping logic entered in the box?


Thanks for the quick response! Sorry Bonnie, I meant to include the store in the original post:
http://www.thecookieladyshop.com/shop

Settings above the SBW area:

In what loop of calculate_final_values do you wish to calculate the shipping? 3
Handling Charge to be added to all orders: 0
Handling Charge Type: Flat Rate
Add handling Charge if shipping total is Zero: no
Use Alternate Origins: no
Enable Dimensions in Product Database: blank
Use the custom shipping logic: yes
When to run custom shiiping logic: after (also tried after...both work fine with my custom shipping)
If using Custom Logic, is shipping measured by wieght: no

Custom shipping logic (all the default stuff is still in there, but fully commented out) with the addition of my custom logic:

@sc_shipping_logic = (
"United States||1-3||11.00",
"United States||4-||14.50",
"Canada||1-3||27.00",
"Canada||4-||34.00",
"Local Delivery||||0");


$shipping_price = &calculate_shipping($temp_total, $total_quantity, $total_measured_quantity);

$ship_logic_done = 'yes';

(These all work correctly when chosen as shipping method.)

How Many Custom Shipping Methods do you need? 3
Method Name: United States Name for Drop-down Lists: United States - USPS
Method Name: Canada Name for Drop-down Lists: Canada - USPS
Method Name: Local Delivery Name for Drop-down Lists: Local Delivery LA/OC*

and, of course, the other three options in "Shipping Methods Pre-Built for Order Forms" also appear correctly:

<OPTION value="United States">
United States - USPS</option>
<OPTION value="Canada">
Canada - USPS</option>
<OPTION value="Local Delivery">
Local Delivery LA/OC*</option>

Thanks again for responding so amazingly quickly!
-jeff

View user's profile Send private message
Reply with quote
Post  
Bonnie,
Ok, I think I figured it out...
I commented out the line:

$ship_logic_done = 'yes';

from my custom logic and now everything appears to be working correctly!
I'm not sure why choosing 'after' on when to run custom logic didn't accomplish the same thing, but I am definitely glad it seems to have fixed it.

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