Page 28 of 56 FirstFirst ... 18262728293038 ... LastLast
Results 271 to 280 of 552
  1. #271
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    Do you think this code is going to "make this show" when the products_model matches: bagship
    Code:
        // disable for one master_categories_id
        if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','bagship') > 0)) {
          $this->enabled = true;
        }
    The reason I ask is, if the module is installed, then the:
    $this->enabled

    is already true ...

    I think you want to reverse the logic and use:
    Code:
        // disable for one master_categories_id
        if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','bagship') < 1)) {
          $this->enabled = false;
        }
    so that the module is turned OFF is there is not at least 1 Product with the products_model of: bagship
    Oh thank you so much that works, now it only shows when there is something with bagslip - but i must have missed a step somewhere because the shipping price that I entered into the weight is not showing up (I know I remember reading how to make that work, but for some reason I lost it) can you explain that?

  2. #272
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Define "lost" ...

    Did you set the Per Unit to 1.00 when you installed it?
    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!

  3. #273
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    Define "lost" ...

    Did you set the Per Unit to 1.00 when you installed it?
    Lost - meaing I read the thread somewhere and thought I did what it asked me to do, but now can't find the thread with the instruction -

    But I found it!! You are awesome.

    But I really really hate to be a pain in the ########, but now I think somewhere along the line I didn't think it all through, because now if I have a product with bagship as the model and then a product with reg (which is my table rate mod that I want to use for products with reg as the model Both shipping mods are coming up as choices for the customer. How can I make the shipping either combine ?? Please see the screen print attached
    Attached Images Attached Images  

  4. #274
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    How does your Table Rate shipping module work? Off of Weight, Price or Item count?
    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!

  5. #275
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    How does your Table Rate shipping module work? Off of Weight, Price or Item count?
    item count


    PHP Code:
    <?php
    /**
     * @package shippingMethod
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: table2.php 6347 2007-05-20 19:46:59Z ajeh $
     */
    /**
     * Enter description here...
     *
     */
    class table2 extends base {
      
    /**
       * Enter description here...
       *
       * @var unknown_type
       */
      
    var $code;
      
    /**
       * Enter description here...
       *
       * @var unknown_type
       */
      
    var $title;
      
    /**
       * Enter description here...
       *
       * @var unknown_type
       */
      
    var $description;
      
    /**
       * Enter description here...
       *
       * @var unknown_type
       */
      
    var $icon;
      
    /**
       * Enter description here...
       *
       * @var unknown_type
       */
      
    var $enabled;
      
    /**
       * Enter description here...
       *
       * @return _2
       */
      
    function table2() {
        global 
    $order$db;

        
    $this->code 'table2';
        
    $this->title MODULE_SHIPPING_TABLE2_TEXT_TITLE;
        
    $this->description MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION;
        
    $this->sort_order MODULE_SHIPPING_TABLE2_SORT_ORDER;
        
    $this->icon '';
        
    $this->tax_class MODULE_SHIPPING_TABLE2_TAX_CLASS;
        
    $this->tax_basis MODULE_SHIPPING_TABLE2_TAX_BASIS;
       
        
    // disable only when entire cart is free shipping 
        
    if (zen_get_shipping_enabled($this->code)) { 
          
    $this->enabled = ((MODULE_SHIPPING_BAGSHIP_STATUS == 'True') ? true false); 
        } 

          
    // disable for one master_categories_id
        
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','reg') < 1)) {
          
    $this->enabled false;
        }     


        if ( (
    $this->enabled == true) && ((int)MODULE_SHIPPING_TABLE2_ZONE 0) ) {
          
    $check_flag false;
          
    $check $db->Execute("select zone_id from " TABLE_ZONES_TO_GEO_ZONES " where geo_zone_id = '" MODULE_SHIPPING_TABLE2_ZONE "' and zone_country_id = '" $order->delivery['country']['id'] . "' order by zone_id");
          while (!
    $check->EOF) {
            if (
    $check->fields['zone_id'] < 1) {
              
    $check_flag true;
              break;
            } elseif (
    $check->fields['zone_id'] == $order->delivery['zone_id']) {
              
    $check_flag true;
              break;
            }
            
    $check->MoveNext();
          }
     
        
         if (
    zen_get_shipping_enabled($this->code)) { 
              
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true false); 
         } 

          
          if (
    $check_flag == false) {
            
    $this->enabled false;
          }
        }
      }
      
    /**
       * Enter description here...
       *
       * @param unknown_type $method
       * @return unknown
       */
    Attached Images Attached Images  

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

    Default Re: Different shipping methods for different categories

    You have some mixed up code ...

    This should be working with the constants for the table2.php code not the bagship.php code:
    Code:
        // disable only when entire cart is free shipping 
        if (zen_get_shipping_enabled($this->code)) { 
          $this->enabled = ((MODULE_SHIPPING_BAGSHIP_STATUS == 'True') ? true : false); 
        }
    I have to work out the code for this ... but I am now sleeping ...

    Based on the fact that you are using weight for the bagship products and item count for the reg products ... this could actually be done with the table2.php module by itself ...

    The difference it to make calculations a little different where you leave table2.php setup as it is for the count or items, but reduce the count by the number of products that are bagship and then apply the table rate calculation ...

    Then, add in the weight to account for the bagship products ...

    But I have to actually think this through for more than 5 minutes and I went to sleep 15 minutes ago ...

    So give this a slow think ... and see if you can work out the calculations ... and if not, I will look at it in the morning to work out the calcuations based on how much weight belongs to the bagship products which is all the weight as the reg products have no weight plus the calculation of the number of items - the number of items that are bagship ...
    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!

  7. #277
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I am right there with ya ....thanks so much for your help. I will look at this with a fresh set of eyes tomorrow when I get home from work. Thanks again!!! I'm sure you will be hearing from me, like I said this is my first crack at php and a shopping cart, but I think I'm grasping some of it anyway....thanks again....night night!!

  8. #278
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    You have some mixed up code ...

    This should be working with the constants for the table2.php code not the bagship.php code:
    Code:
        // disable only when entire cart is free shipping 
        if (zen_get_shipping_enabled($this->code)) { 
          $this->enabled = ((MODULE_SHIPPING_BAGSHIP_STATUS == 'True') ? true : false); 
        }
    I have to work out the code for this ... but I am now sleeping ...

    Based on the fact that you are using weight for the bagship products and item count for the reg products ... this could actually be done with the table2.php module by itself ...

    The difference it to make calculations a little different where you leave table2.php setup as it is for the count or items, but reduce the count by the number of products that are bagship and then apply the table rate calculation ...

    Then, add in the weight to account for the bagship products ...

    But I have to actually think this through for more than 5 minutes and I went to sleep 15 minutes ago ...

    So give this a slow think ... and see if you can work out the calculations ... and if not, I will look at it in the morning to work out the calcuations based on how much weight belongs to the bagship products which is all the weight as the reg products have no weight plus the calculation of the number of items - the number of items that are bagship ...
    I appreciate all your help with this. I have looked at this and wonder if I'm not getting in over my head. I have figured out that I also want to add a discount for shipping of products under the bagship label. So if someone purchase 1 bagship product the second item that is a bagship would be 50% off the shipping cost that was put into the weight section by the store owner. Am I still going to be able to do this they way that you suggested?

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

    Default Re: Different shipping methods for different categories

    It would take quite a bit of customizing to work in a 50% discount ...

    What happens when 3 bagship are in the cart or 4?
    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!

  10. #280
    Join Date
    Oct 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    It would take quite a bit of customizing to work in a 50% discount ...

    What happens when 3 bagship are in the cart or 4?
    Ok so I talked the person that I am creating this for into making my life simple. I told her I was gonna lock her in the closet if she didn't cut me a break.....

    Anyway I'm going to work on this later tonight, but will you tell me if this is possible

    Going to use the table rate for both bagship and reg (still basising it on what is entered into the model number)

    Will I be able to combine those into one table shipping module?

 

 
Page 28 of 56 FirstFirst ... 18262728293038 ... LastLast

Similar Threads

  1. Re: Different shipping methods for different categories
    By kaddie in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 19 Nov 2010, 04:37 AM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Different shipping methods for different categories and mixed categories
    By neit in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Aug 2010, 12:20 AM
  4. Separate Shipping Methods for Different Categories
    By MortalWombat in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Jul 2010, 08:57 AM
  5. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 PM

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