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

Reduced Shipping cost option for only one item

Locked

Views: 908

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 ...

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 ...