Page 5 of 5 FirstFirst ... 345
Results 41 to 47 of 47
  1. #41
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: flat rate shipping to specific products

    Can you go into phpMyAdmin on your site and search the table:
    products

    and confirm that you are using the right master_categories_id values?

    Note: no Product should have a master_categories_id of 0 ...
    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. #42
    Join Date
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: flat rate shipping to specific products



    The master categories ID's are right. None of my master categories id have an ID of zero.

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

    Default Re: flat rate shipping to specific products

    Can you post the file that you are using again ... make sure to post the one that is on the server to ensure we are looking at the current file ...
    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. #44
    Join Date
    Aug 2009
    Posts
    41
    Plugin Contributions
    0

    Default Re: flat rate shipping to specific products

    I have it sorted. I had subcategories in the main category and I should have used those ID's instead. Seems to be working fine now.

    Thanks a million!

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

    Default Re: flat rate shipping to specific products

    You are most welcome ... thanks for the update that this is now working ...
    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. #46
    Join Date
    Jan 2014
    Location
    Florida
    Posts
    39
    Plugin Contributions
    0

    Default Re: flat rate shipping to specific products

    Quote Originally Posted by Ajeh View Post
    In the original file:
    /includes/modules/shipping/flat.php

    you would have added that above the code:
    Code:
          $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)));
    and then added the extra charges to the code:
    Code:
          $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 + $extra_shipping)));
    So the cloned files that you have would have similar code in them that you would need to do this customization to ...
    I know this thread has been dead for a while, but I found it while trying to enable flat rate for certain products only. The code in the thread worked great. But I also saw this tidbit here. I am a drop shipper and my shipper has a pretty substantial negotiated rate. They won't give me a guest XML for their rates and the standard UPS rates are ridiculously high.

    Is there a method similar to what is described above that would allow me to reduce the UPS shipping rate by a percentage? I did quite a few test shipments that I think a percentage reduction can get me close enough to work. I would assume that if you can do + $extra_shipping math to the variable, there should be a way to do the same thing with the UPS rate but conduct some multiplication instead of division.

    Anyone got any theories on how to about that?

  7. #47
    Join Date
    Jan 2014
    Location
    Florida
    Posts
    39
    Plugin Contributions
    0

    Default Re: flat rate shipping to specific products

    Okay, so nobody knew the answer to the previous question, so here is a new one, I used the below code exactly as it's intended purpose. To hide flat rate shipping when anything outside of the restricted categories is in the cart. Now I want to tweak it a little bit to hide other shipping methods when only products from one of these categories is in the cart. (ie: If flat rate is an option, I don't want them to opt for FedEx instead, I need Fedex hidden when Flat Rate shows).

    Any help there? Should be similar to this block of code I imagine, but in the fedex shipper file?

    Quote Originally Posted by Ajeh View Post
    Check the Flat Rate categories only with:
    Code:
    if (!IS_ADMIN_FLAG) {
      global $cart;
      $chk_categories = 0;
      $chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','1');
      $chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','35');
      if ($_SESSION['cart']->count_contents() != $chk_categories) {
        $this->enabled = false;
      }
    }
    That would turn off the Flat Rate flat shipping module if the shopping_cart does not contain Products from only categories_id 1 and 35 where those Products used these categories_id as their master_categories_id ...

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. Replies: 98
    Last Post: 26 Feb 2014, 08:33 PM
  2. free shipping for specific zip code, flat rate otherwise
    By newdre in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Jan 2012, 11:39 AM
  3. zone specific flat rate shipping question
    By Lockerroom in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Jan 2010, 07:21 PM
  4. Calculate shipping on all items, except flat rate on specific category
    By buckit in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 1 Dec 2009, 06:24 PM
  5. flat rate on specific products only
    By bangsters in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 8 Nov 2006, 07:38 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