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 Logic is not working
Author Message
Reply with quote
Post Shipping Logic is not working 
Does this logic for shipping look correct. I get zero for shipping when I use this.
@sc_shipping_logic = ( "|||0-1.0|1.95",
"|||2.1-3.00|2.95",
"|||3.1-4.0|3.95",
"|||4.1-5.0|12.00",
"|||5.1-6.0|4.95",
"|||6.1.-7.0|5.95",
"|||7.1-8.0|6.95",
"|||8.1-9.0|7.95",
"|||9.1-10.0|8.95",
"|||10.1-11.0|9.95",
$shipping_price = &calculate_shipping($total_measured_quantity);

View user's profile Send private message
Reply with quote
Post RE: Shipping Logic is not working 
hell-o
need to know what you intend to accomplish. please provide details. thanks.
regards,
dan

Reply with quote
Post Shipping Logic 
I am selling cd's and cassette.
I want to first one to have a $1.95 shpping charge, and any after that $1.00 added to that for each one.

so
1- 1.95
2-2.95
3-3.95

and so on.......

View user's profile Send private message
Reply with quote
Post RE: Shipping Logic is not working 
hell-o
try this:

$shipping_price = 1.95;
$shipping_price += ($total_quantity-1) * 1.00 if ($total_quantity > 1);

regards,
dan

Reply with quote
Post It works 
Thank You so much. It works perfect.

View user's profile Send private message
Reply with quote
Post Re: Shipping Logic is not working 
amd25 wrote:

@sc_shipping_logic = ( "|||0-1.0|1.95",
"|||2.1-3.00|2.95",
"|||3.1-4.0|3.95",
"|||4.1-5.0|12.00",
"|||5.1-6.0|4.95",
"|||6.1.-7.0|5.95",
"|||7.1-8.0|6.95",
"|||8.1-9.0|7.95",
"|||9.1-10.0|8.95",
"|||10.1-11.0|9.95",
$shipping_price = &calculate_shipping($total_measured_quantity);


I'm glad to see that you got Dan's workaround to work.
It is the simplest and best way to do it.

Although, I just wanted to note here that when you set up your logic, the field that it was pulling off of was the weight field. So that is why you didn't get the correct shipping amount.
If you wanted the shipping calculated against the quanitity of items ordered you needed to move you quantity range into the quantity field.
Below is a layout of the fields:
Shipping method|dollar amt range|Qty range|Weight range|Shipping Price

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 Shipping Logic 
I have another issue with the shipping. The client I am doing the website for now wants to add shipping for Canada to be 1.5 x the USA shipping and anywhere else in the world they want the shipping to be 2x the USA shipping. Is this possible.

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