Forums / Built-in Shipping and Payment Modules / Reduced Shipping cost option for only one item

Reduced Shipping cost option for only one item

Locked

Started by flork on 9 Mar 2010, 12:12 AM · Views: 915

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Mar 2010, 12:12 AM
#1
flork avatar

flork

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Reduced Shipping cost option for only one item

I'm trying to figure out how to setup my cart so that when you buy product A you get to choose between our standard $7.50 flat rate shipping or a reduced rate of $2.50 for buying that product (in any quantity), but have it setup so if a customer where to order Product A and Product B, the cart would default them to the standard rate of $7.50 because Product B is in the cart.

Any help would be appreciated.

Thank you.

Scott

9 Mar 2010, 4:06 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Reduced Shipping cost option for only one item

Clone Flat Rate flat shipping module and customize it to only show if the whole cart contains Product A and set the Rate to 2.50 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Mar 2010, 4:04 PM
#3
flork avatar

flork

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: Reduced Shipping cost option for only one item

Ajeh:

Clone Flat Rate flat shipping module and customize it to only show if the whole cart contains Product A and set the Rate to 2.50 ...

Awesome, thank you. I have no idea how to do that just yet, but not that I know what to look for I'm sure I can figure it out.

Thank you for your help. I've used this forum a few times to figure out issues and you guys are an awesome recourse.

Scott

9 Mar 2010, 9:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Reduced Shipping cost option for only one item

Do a search on:
clone flat
clone item

and that should show you how to clone a shipping module ...

Once you have cloned it and it is functional, then we can look at customizing it further using a function from the shopping_cart class for something like:

global $cart;
$chk_product_a = $_SESSION['cart']->in_cart_check('products_id','XX');

and then compare it to the total items in the cart to see if they are equal ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!