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
Shipping Help Pls? Store Pickup vs USPS
Author Message
Reply with quote
Post Shipping Help Pls? Store Pickup vs USPS 
I am trying to setup shipping for only 2 options - USPS and Store Pickup.

I have successfully eliminated all the options I don't want from the screens and added Store Pickup to the form for ship method.

My problem is in having the correct shipping price calculated. I have SBW and custom shipping currently disabled, so it is using the fixed ship amount I assign to each product for the shipping price. This is perfect for USPS, however when the user selects store pickup I do not want any shipping and need it set to 0.

I'm guessing I need to enable custom shipping and have some logic in there that sets the shipping price to zero for pickup yet drags the data out of the product spec multiplied by the proper quantity for USPS.

Could someone please show me how this is done?
THanks in advance,
Mike

View user's profile Send private message
Reply with quote
Post  
Set it up to use custom shipping logic as follows:
Code:

@sc_shipping_logic = ( "pickup|||1-|0.00");
#
$shipping_price = &calculate_shipping($temp_total,
                  $total_quantity, $total_measured_quantity);


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  
Thank you Bonnie but it's still not picking up the shipping cost from the product. It seems when I enable the custom shipping logic (not the SBW) it stops pulling the shipping cost from the weight field of the product.

I see that your code will set the price to 0 when the option is shipping. But I want to use the fixed shipping cost I have assigned to the weight. Is there a code snippet that will just pull the weight/cost from the product the way it works when custom and SBW are both off?

Thanks and sorry if I'm missing it.
Mike

View user's profile Send private message
Reply with quote
Post  
Oops, sorry.
The logic I gave you was based on weight..... try this one:
Code:

@sc_shipping_logic = ( "pickup|1-|||0.00");
#
$shipping_price = &calculate_shipping($temp_total,
                  $total_quantity, $total_measured_quantity);


Now, it is based on the dollar amount and not dependent on the weight/cost field of the database.

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  
I dislike kinda sorta maybe to be a pain in the deflated human chair cushion, but that's still got the same problem. When I use "Pickup" shipping option it charges no shipping.

However when I select USPS Parcel it still charges no shipping, and I want it to use the fixed price I pre-selected in the product weight field.

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