Page 6 of 8 FirstFirst ... 45678 LastLast
Results 51 to 60 of 77
  1. #51
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Per Item shipping for 1 category

    Hit Reply and then look for the Go Advanced and you will see the Attached ...
    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.5]
    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!

  2. #52
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    sorry, it won't upload my png file.

    if you go to the shipping options page during checkout, do you see the UPS module showing? select a 5.99 kit, go to checkout, and you will see UPS, Store Pickup, 5.99 per kit as options. Store pickup and 5.99 should be the only options showing, eh?

  3. #53
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Per Item shipping for 1 category

    Go change the code in the ups.php to include:
    Code:
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
      return array();
    } else {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + $extra_shipping_charge + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
    }
          }
    that will teach me always, always test both shipping estimator *and* checkout_shipping, regardless of being in a hurry ...
    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.5]
    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!

  4. #54
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    Go change the code in the ups.php to include:
    Code:
    // bof: seperate item cost 1 category
    global $total_count;
    if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
      // skip shipping
      return array();
    } else {
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + $extra_shipping_charge + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
    }
          }
    that will teach me always, always test both shipping estimator *and* checkout_shipping, regardless of being in a hurry ...
    That seems to have done it! Thank you again. We will not forget you when we make the big time!

  5. #55
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Per Item shipping for 1 category

    Thanks for the update that this is working for you now ...

    Good luck with your 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: v1.5.5]
    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!

  6. #56
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Linda,

    I'm back. I wasn't sure if I should start a new post or continue this one. I've done quite a bit of searching in the forums for what I want to accomplish, and I've found a lot of promising info...just not sure how to apply it. Here's the summary:

    I want to offer a flat rate shipping option, regardless of how much a customer spends, but I will need to exclude several products (I've already gathered the product IDs).
    - I'm still Using USPS, UPS, Free Shipping (The Gift Card product thing, as well as some new items), Store Pickup, and soon Fed Ex
    - I'm looking to simplify this by removing the $5.99 per item beer kit thing, they will just fall under the flat rate fee.

    I'm assuming that it's as easy as making modifications to the flat rate module to "exclude" the items I need excluded. The Flat Rate option should not be available if someone buys an "excluded" item.

    And all the other shipping modules will continue to show, just incase someone wants an expedited or special shipping option.

    This is easy, eh?

    Thanks,
    Andrew

  7. #57
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Per Item shipping for 1 category

    Customer buys 1 excluded item what is shipping?
    Customer buys 2 excluded item what is shipping?
    Customer buys 3 excluded item what is shipping?

    Customer buys 1 anything *except* excluded item what is shipping?
    Customer buys 2 anything *except* excluded item what is shipping?
    Customer buys 3 anything *except* excluded item what is shipping?

    Customer buys 1 exclude item and 1 NOT excluded item what is shipping?
    Customer buys 1 exclude item and 2 NOT excluded item what is shipping?
    Customer buys 2 exclude item and 1 NOT excluded item what is shipping?
    Customer buys 2 exclude item and 2 NOT excluded item what is shipping?
    Customer buys 1 exclude item and 3 NOT excluded item what is shipping?
    Customer buys 3 exclude item and 2 NOT excluded item what is shipping?
    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.5]
    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. #58
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    Customer buys 1 excluded item what is shipping?
    Customer buys 2 excluded item what is shipping?
    Customer buys 3 excluded item what is shipping?

    Customer buys 1 anything *except* excluded item what is shipping?
    Customer buys 2 anything *except* excluded item what is shipping?
    Customer buys 3 anything *except* excluded item what is shipping?

    Customer buys 1 exclude item and 1 NOT excluded item what is shipping?
    Customer buys 1 exclude item and 2 NOT excluded item what is shipping?
    Customer buys 2 exclude item and 1 NOT excluded item what is shipping?
    Customer buys 2 exclude item and 2 NOT excluded item what is shipping?
    Customer buys 1 exclude item and 3 NOT excluded item what is shipping?
    Customer buys 3 exclude item and 2 NOT excluded item what is shipping?
    1st section = excluded items will be treated as normal and based on weight

    2nd section = flat rate shipping (leaning towards $8.99) no matter how many items

    3rd section = shipping would default back to same as section 1, based on weight

  9. #59
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Per Item shipping for 1 category

    See if this works for you ...

    Edit the file:
    /includes/modules/shipping/usps.php

    and add the code in RED:
    Code:
        function quote($method = '')
        {
          global $order, $shipping_weight, $shipping_num_boxes, $currencies, $shipping;
    
    // bof: Allow individual Products to use Flat disable USPS
    // set allowed products_id 12, 13, 15
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
    
    if ($chk_cart == $_SESSION['cart']->count_contents()) {
      // allow flat rate only disable USPS
      return;
    }
    // eof: Allow individual Products to use Flat disable USPS
    
    //echo 'USPS function quote BEFORE IF $this->enabled $this->uspsQuote $this->enabled: ' . ($this->enabled ? ' ON' : ' OFF') . ' $shipping_weight: ' . $shipping_weight . '<br>';
          $usps_shipping_quotes = '';
    Then edit the code:
    /includes/modules/shipping/flat.php

    and add the code in RED:
    Code:
        function quote($method = '') {
          global $order;
    
    // bof: Allow individual Products to use Flat
    // set allowed products_id 12, 13, 15
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
    
    if ($chk_cart == $_SESSION['cart']->count_contents()) {
      // allow flat rate
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                         'cost' => MODULE_SHIPPING_FLAT_COST)));
    } else {
      // skip flat rate
    }
    // eof: Allow individual Products to use Flat
    
          if ($this->tax_class > 0) {

    Just change the products_id 12, 13, 15 to the products_id values that you need and you can add extra products_id values ...
    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.5]
    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!

  10. #60
    Join Date
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: Per Item shipping for 1 category

    Quote Originally Posted by Ajeh View Post
    See if this works for you ...

    Edit the file:
    /includes/modules/shipping/usps.php

    and add the code in RED:
    Code:
        function quote($method = '')
        {
          global $order, $shipping_weight, $shipping_num_boxes, $currencies, $shipping;
    
    // bof: Allow individual Products to use Flat disable USPS
    // set allowed products_id 12, 13, 15
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
    
    if ($chk_cart == $_SESSION['cart']->count_contents()) {
      // allow flat rate only disable USPS
      return;
    }
    // eof: Allow individual Products to use Flat disable USPS
    
    //echo 'USPS function quote BEFORE IF $this->enabled $this->uspsQuote $this->enabled: ' . ($this->enabled ? ' ON' : ' OFF') . ' $shipping_weight: ' . $shipping_weight . '<br>';
          $usps_shipping_quotes = '';
    Then edit the code:
    /includes/modules/shipping/flat.php

    and add the code in RED:
    Code:
        function quote($method = '') {
          global $order;
    
    // bof: Allow individual Products to use Flat
    // set allowed products_id 12, 13, 15
    $chk_cart = 0;
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
    $chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
    
    if ($chk_cart == $_SESSION['cart']->count_contents()) {
      // allow flat rate
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                         'cost' => MODULE_SHIPPING_FLAT_COST)));
    } else {
      // skip flat rate
    }
    // eof: Allow individual Products to use Flat
    
          if ($this->tax_class > 0) {

    Just change the products_id 12, 13, 15 to the products_id values that you need and you can add extra products_id values ...
    I'm wondering if this is set to allow rather than disallow. I have about 30 items that will not be allowed to use Flat Rate, and more than 1000 that will.

 

 
Page 6 of 8 FirstFirst ... 45678 LastLast

Similar Threads

  1. Shipping Cost Based On Item Category With Discount Per Multiple Items In Category
    By CFen in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Nov 2011, 07:05 PM
  2. Flat rate for 1 category, Per Item for all others
    By Znak in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 18 Aug 2011, 03:09 PM
  3. Shipping charged per item and free shipping per item
    By ae_support in forum Addon Shipping Modules
    Replies: 2
    Last Post: 27 Jul 2011, 05:04 PM
  4. Individual Shipping Per Item, and reduced cost per extra item
    By canad1an in forum Addon Shipping Modules
    Replies: 7
    Last Post: 6 Feb 2009, 11:41 PM
  5. Per item shipping for multi item kits
    By Biometicslady in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 4 Jan 2009, 06:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR