Author |
Message |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
 Set a maximum shipping cost without using custom shipping?
HI,
I have shipping set for each individual item but would like to set a maximum shipping charge of £5 per order. I know this can be done easily with custom shipping logic, but my client wants the total order to include shipping as soon as the customer views the cart which is not possible when using custom shipping. Is there any way to limit the total shipping cost without using custom shipping logic?
Thanks.
|
Tue Sep 11, 07 11:44 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Custom shipping logic can apply before the customer reaches the check-out...
But, with shipping price being "per item", this may be a little tricky.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Sep 12, 07 4:15 am |
 |
 |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
HI Bonnie,
I was using custom shipping originally and can easily go back to it, but the cart would not show the total including shipping prior to checkout, which is what the client wants. I gathered from reading other posts that it wasn't possible to show the total including shipping before checkout when using custom shipping logic, but would love to find I've misunderstood and that it can be done!
As it stands at the moment, if I use shipping price per item the cart shows individual shipping cost per item, item total and grand total including shipping, but I can't set a maximum level for shipping.
When I use my custom logic I see shipping cost per item and item total, but the grand total does not include the shipping cost (i.e. it's exactly the same as the items total). This does allow me to cap the shipping cost at £5 but my client is very keen to have the total including shipping displayed to the customer before they have to enter all their details in the checkout. Can it be done?
Best regards,
Jan
|
Wed Sep 12, 07 4:35 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Jan,
Which version of AgoraCart are you using?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Sep 12, 07 4:38 am |
 |
 |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
Version 5.0.006 - the most recent release downloaded and installed about a week ago as per your recommendation! (And it's a big improvement on the versionI was using previously).
Last edited by noodle on Wed Sep 12, 07 4:51 am; edited 1 time in total
|
Wed Sep 12, 07 4:48 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Okay, in the custom shipping logic put:
Code:my $max_shipping_cost = 5.00;
if ($shipping_price <= $max_shipping_cost) {
$shipping_price = $shipping_price;
} else {
$shipping_price = $max_shipping_cost;
}
Test it out and let me know...
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Sep 12, 07 4:50 am |
 |
 |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
Hi Bonnie,
No, I'm afraid that didn't work. The grand total still doesn't include shipping until after the 2nd stage of check out.
This is my original shipping logic, which is successfully limiting the total to £5, I just need to be able to show the grand total including shipping before the customer has to enter all their details in the checkout.
@sc_shipping_logic = ( "Royal Mail 2nd Class|||-.1.49|1.00",
"Royal Mail 2nd Class|||1.50-1.99|1.50",
"Royal Mail 2nd Class|||2.00-2.99|2.00",
"Royal Mail 2nd Class|||3.00-3.99|3.00",
"Royal Mail 2nd Class|||4.00-4.99|4.00",
"Royal Mail 2nd Class|||5.00-|5.00");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
|
Wed Sep 12, 07 4:56 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
What is the URL to the store?
What are your settings in the "Store Design - Misc Settings" manager, for:
Display Shipping Label/Costs at View Cart and Checkout?:
AND
Display Sub Total label instead of Grand Total label?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Sep 12, 07 5:05 am |
 |
 |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
Store URL is:
http://www.greatestgift.co.uk/shop
Settings at present are: "Display Shipping Label/Costs at View Cart and Checkout?" YES and "Display Sub Total label instead of Grand Total label?" NO
|
Wed Sep 12, 07 5:16 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
You can use your shipping logic, just remove the Royal Mail 2nd Class from it...
Make sure that SBW is off.
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Sep 12, 07 5:28 am |
 |
 |
noodle
Newbie - One Blade
Joined: 11 Jan 2007
Posts: 18
|
Brilliant! That's just what I wanted.....thank you so much!
|
Wed Sep 12, 07 5:43 am |
|
 |
|