If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Add Additional Shipping Cost to Only One Item

Add Additional Shipping Cost to Only One Item

Locked

Started by gocujo on 8 Jan 2008, 7:57 PM · Views: 1,326

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Jan 2008, 7:57 PM
#1
gocujo avatar

gocujo

New Zenner

Join Date:
Dec 2007
Posts:
4
Plugin Contributions:
0

Add Additional Shipping Cost to Only One Item

Hi,

I am trying to figure out how to make a special case for the shipping cost for one item. All of the other items' rate are at $6.95, I just need this larger item to have a $9.95 shipping and that is it.

I have looked in the shipping modules directory and the item.php to see where i can add the case but i don't see any where the rate is calculated.

Has anyone encounter this dilemma before? Are there any specific files that you can point me to where like the shipping_estimator.php to add this case or an alternate method.

Thanks.

8 Jan 2008, 8:02 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Add Additional Shipping Cost to Only One Item

There is a function in the shopping_cart class where you can look up how many of a product are in the cart ...

I have to dig up its exact name but it is down near the end of the class ...

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!

8 Jan 2008, 8:04 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Add Additional Shipping Cost to Only One Item

Look for the section on:

  /**
   * Method to calculate the number of items in a cart based on an abitrary property
   *
   * $check_what is the fieldname example: 'products_is_free'
   * $check_value is the value being tested for - default is 1
   * Syntax: $_SESSION['cart']->in_cart_check('product_is_free','1');
   *
   * @param string product field to check
   * @param mixed value to check for
   * @return integer number of items matching restraint
   */
  function in_cart_check($check_what, $check_value='1') {

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!