Page 46 of 53 FirstFirst ... 364445464748 ... LastLast
Results 451 to 460 of 522
  1. #451
    Join Date
    Jan 2007
    Location
    UK
    Posts
    55
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Ajeh, that is perfect - thank you so much for your help.

    Dave

  2. #452
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,697
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Thanks for the update that this is now working for you ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #453
    Join Date
    May 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hi my name is John and i am useing Zencart for a while now but dont know anyting about PHP or any other web language.
    My Problem is when i setup Zencart first i was able to add a weight to a product for chargeing then i tried to setup zones and since that my charge by weight will not work.
    Can you please tell me how to make the charge by weight work again.?

    Thanks.......John

  4. #454
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,697
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    What is the weight that you are using?

    What are your settings in Configuration ... Shipping/Packaging ...

    What are your settings on your Zone Rate zones shipping module?
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #455
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hi, I am new to ZenCart, having inherited this project in it's present state - although I have several years of web-design experience and can figure out most coding eventually, PHP is not my forte (I appreciate that one of the contributors to this forum acknowledged coding is about 90-some% cut and paste). Anywho...we are currently using v1.3.9h. I spent all day yesterday reading all 46 pages of this thread, I now have the gist of what needs to happen however, I am not finding the solution to our particular issue.

    Product "87" MUST ship UPS 2nd Day Air or can be picked up in store.


    One of two solutions would be ideal:
    #1: When Product "87" is in the shopping cart (regardless of what else might be in there) disable Per Unit, 3 Day Select & Ground shipping methods (leaving only 2nd Day Air and Store Pickup enabled). *International orders only ship Per Unit - so Product "87" must be disabled for all International Zones.

    OR

    #2: If shopping cart contains products in addtion to Product "87", shipment is automatically split shipped and alternate shipping methods are enabled for these items. If this is a huge coding issue, we're okay with option #1.

    Shipping Modules Insatalled:

    FREE SHIPPING! freeshipper
    Per Unit perweightunit
    Store Pickup storepickup
    United Parcel Service ups



    If this scenario has already been addressed in this thread, I must have missed it. Just send me the link.
    Thanks in advance for your assistance.

  6. #456
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    920
    Plugin Contributions
    1

    Default Re: Different shipping methods for different categories

    Painted Hills:

    You should take a look at Conor's Ceons Advance Shipping module. Conor now has support for zencart 1.5 and has also added FedEx shipping rates. It's affordable (like $70 US) and incredibly flexible.

    The only Con is that is doesn't support Google Checkout (unless he's added that since I've last looked)!

  7. #457
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,697
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    To turn off the Per Unit perweightunit when products_id is in the cart, customize the code in:
    /includes/modules/shipping/perweightunit.php

    with the code:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_PERWEIGHTUNIT_STATUS == 'True') ? true : false);
        }
    
    // bof: turn off if products_id 87 is in the cart
    if (!IS_ADMIN_FLAG) {
      $chk_product = 0;
      $chk_product += $_SESSION['cart']->in_cart_check('products_id','87');
      if ($chk_product > 0) {
        $this->enabled = false;
      }
    }
    // eof: turn off if products_id 87 is in the cart
    You can customize UPS with this code in RED:
    Code:
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
    // bof: turn off if products_id 87 is in the cart
    echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>';
      $chk_product = 0;
      $chk_product += $_SESSION['cart']->in_cart_check('products_id','87');
      if ($chk_product > 0) {
        if ($type == '2DA') {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
        } else {
          // skip shipping
        }
      } else {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
      }
    // eof: turn off if products_id 87 is in the cart
    
          }
          $this->quotes['methods'] = $methods;
    to replace the code:
    Code:
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) +  (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ?  MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes :  MODULE_SHIPPING_UPS_HANDLING) );
    NOTE: the echo line for:
    Code:
    echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>';
    can be commented out with:
    Code:
    // echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>';
    after you are done testing and sure of the $type that you want to use in this code ...
    Last edited by Ajeh; 30 May 2012 at 08:01 PM. Reason: fix shipping method type to 2DA
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #458
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Thank you ever so much for your quick reply, Linda! The code is perfect and all seems well with one exception, how do I identify the $type? Rigth now Store Pick-up is the only shipping method showing.
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  9. #459
    Join Date
    Apr 2012
    Location
    Fossil, OR
    Posts
    22
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    "fix shipping method type to 2DA"


    Oh yeah!!! This is me doing my Happy Dance!
    Thank you, oh great goddess of PHP!!!
    Christine
    "I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

  10. #460
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,697
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    You should see echoed on the screen something like:
    UPS TYPE: 1DM Title: Next Day Air Early AM
    UPS TYPE: 1DA Title: Next Day Air
    UPS TYPE: 1DP Title: Next Day Air Saver
    UPS TYPE: 2DA Title: 2nd Day Air
    UPS TYPE: 3DS Title: 3 Day Select
    UPS TYPE: GND Title: Ground
    Look for the $type next to the words:
    UPS TYPE:

    such as what I have highlighted in RED ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 46 of 53 FirstFirst ... 364445464748 ... LastLast

Similar Threads

  1. Need Help with Shipping Methods
    By bigcaat in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jul 2007, 04:35 PM
  2. Selecting Shipping Methods with free shipping
    By pasi in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 15 Apr 2007, 05:28 PM
  3. Shipping Estimator Sort Shipping Methods
    By sitehatchery in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Apr 2007, 05:34 AM
  4. List shipping methods automatically on Shipping and Return Page
    By gems14k in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 16 Jul 2006, 12:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •