Forums / Built-in Shipping and Payment Modules / Special Shipping for special items. how?

Special Shipping for special items. how?

Locked

Views: 2,571

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Aug 2009, 10:14 PM
#1
nima avatar

nima

New Zenner

Join Date:
Apr 2008
Posts:
67
Plugin Contributions:
0

Special Shipping for special items. how?

I have USPS and UPS calculators setup on our website for shipping. However i have a smaller problem.

We ship our large sized items by freight. So for a number of our products we charge a flat rate of $139.00 for freight. How can I implement that into ZenCart so that when someone places an order that includes those large items automatically make the shipping cost $139.00?

Thank you

14 Aug 2009, 4:12 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Special Shipping for special items. how?

What indicates that the large products are large and need freight shipping?

What happens when you have 2 or more of the freight products in the cart?

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!

15 Aug 2009, 5:43 AM
#3
nima avatar

nima

New Zenner

Join Date:
Apr 2008
Posts:
67
Plugin Contributions:
0

Re: Special Shipping for special items. how?

i want to be able to mark those products that are "freight only"

If two products (that are freight size) are bought together the price would still be the same $139.00 for both of them.

thanks for your help

15 Aug 2009, 4:03 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Special Shipping for special items. how?

You are going to need some type of test for these Freight Products in the products table ...

This could be done with a new field and then that can be used to test if 1 or more are in the cart ... if so, then the shipping modules can be enabled/disabled using the $this->enabled by setting it to true or false in your shipping modules ...

There is a function in the shopping_cart.php class that can be used to test for what is in the cart based on a field in products table:

  /**
   * 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!

18 Aug 2009, 6:48 PM
#5
nima avatar

nima

New Zenner

Join Date:
Apr 2008
Posts:
67
Plugin Contributions:
0

Re: Special Shipping for special items. how?

hey Linda,

would you be willing to do this for me (as paid work ofcourse)?

THank you