Page 17 of 53 FirstFirst ... 7151617181927 ... LastLast
Results 161 to 170 of 522
  1. #161
    Join Date
    Jun 2007
    Posts
    271
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Brismods View Post
    I'm not exactly the greatest when it comes to this sort of stuff. We previously had tried a few of the other solutions posted in the thread. For example there was one where we posted the code into the file, but it needed to be duplicated for the different categories, however when more than one copy of the code was in the file, the codes would seemingly clash and not work at all.
    Somewhere in the thread someone mentioned using beyond two categories(I think it was two) causes problems. Was that you? Or are you trying to do beyond two?

    This is where trying a solution similar to one I listed works better, which is to filter based on the product model. Are you currently using the Product Model for your products? If not, you could do that. Scroll bake a little to one of my last posts and take a look. If that doesn't make sense let me know.

    -lindasdd

  2. #162
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by lindasdd View Post
    Somewhere in the thread someone mentioned using beyond two categories(I think it was two) causes problems. Was that you? Or are you trying to do beyond two?
    That wasn't us, but yeah. We were trying to do about four or so, and they just kept clashing with each other and it just wouldnt work

    Quote Originally Posted by lindasdd View Post
    This is where trying a solution similar to one I listed works better, which is to filter based on the product model. Are you currently using the Product Model for your products? If not, you could do that. Scroll bake a little to one of my last posts and take a look. If that doesn't make sense let me know.
    I'll set the products up with a model type and try this out and let you know how it goes.

  3. #163
    Join Date
    Oct 2006
    Posts
    109
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hello - I'm on v 1.3.8a

    For three categories, all product have free shipping. For one category, shipping is based on dollar amount.

    I have freeshipper and zones as the two shipping modules that are activated.

    For the category with shipping based on dollar amount, I set up a zones chart with shipping calculated by weight. For each product, I enter the weight as being equal to the price. (i.e., $20 product is 20 in the weight box). This seems to calculate shipping perfectly, as long as only items from that category are in the cart.

    The problem arises when a customer purchases both a free shipping item and an item from the category with shipping charges. I can't figure out how to get the shipping charges to apply when there is a free shipping item also in the cart. If there is a free shipping item in the cart, it seems to always make the shipping free, even if there is a product in the cart that is supposed to be charged for shipping.

    Any advice?


  4. #164
    Join Date
    Sep 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Lindasdd, the method you posted using the low order fee code worked, however i was wondering if you knew if i was able to change the name of the 'low order fee' to something like 'large item fee'? Any help would be appreciated.

  5. #165
    Join Date
    Oct 2006
    Posts
    109
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Wanted to post this again - should I have started a new thread for this question?

    Quote Originally Posted by lyricwings View Post
    Hello - I'm on v 1.3.8a

    For three categories, all product have free shipping. For one category, shipping is based on dollar amount.

    I have freeshipper and zones as the two shipping modules that are activated.

    For the category with shipping based on dollar amount, I set up a zones chart with shipping calculated by weight. For each product, I enter the weight as being equal to the price. (i.e., $20 product is 20 in the weight box). This seems to calculate shipping perfectly, as long as only items from that category are in the cart.

    The problem arises when a customer purchases both a free shipping item and an item from the category with shipping charges. I can't figure out how to get the shipping charges to apply when there is a free shipping item also in the cart. If there is a free shipping item in the cart, it seems to always make the shipping free, even if there is a product in the cart that is supposed to be charged for shipping.

    Any advice?

  6. #166
    Join Date
    Jun 2007
    Posts
    271
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Brismods View Post
    Lindasdd, the method you posted using the low order fee code worked, however i was wondering if you knew if i was able to change the name of the 'low order fee' to something like 'large item fee'? Any help would be appreciated.
    For that you get the classic response of "Use the Developer's Toolkit." If your admin or customer pages have text, that means the text is coming from somewhere. So you need to figure out where. For stuff like this it is probably a language file.

    My text was changed to "Frozen Bucket". It looks like this one is here:

    includes/languages/english/modules/order_total/cutom_template/ot_loworderfee.php
    Line #22 : define('MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE', 'Frozen Shipping Bucket');

    Line #23 : define('MODULE_ORDER_TOTAL_LOWORDERFEE_DESCRIPTION', 'Frozen Shipping Bucket');

    Of course if you really wanted to do this correctly you would use this module as a template and actually create a new shipping module that does all this. That way you would avoid confusion. Me - I'm trying to make upgrades as hard as possible on myself.

    -lindasdd

  7. #167
    Join Date
    Jun 2007
    Posts
    271
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by lyricwings View Post
    Hello - I'm on v 1.3.8a

    For three categories, all product have free shipping. For one category, shipping is based on dollar amount.

    I have freeshipper and zones as the two shipping modules that are activated.

    For the category with shipping based on dollar amount, I set up a zones chart with shipping calculated by weight. For each product, I enter the weight as being equal to the price. (i.e., $20 product is 20 in the weight box). This seems to calculate shipping perfectly, as long as only items from that category are in the cart.

    The problem arises when a customer purchases both a free shipping item and an item from the category with shipping charges. I can't figure out how to get the shipping charges to apply when there is a free shipping item also in the cart. If there is a free shipping item in the cart, it seems to always make the shipping free, even if there is a product in the cart that is supposed to be charged for shipping.

    Any advice?
    Nice idea on the weight=price. I may need to try that myself.

    Based on what I have seen this should not have given free shipping. For the free shipping categories how are the categories designated as free shipping? Meaning is it on product level(Always Free Shipping radio button clicked) or is it via changes to the php files?

  8. #168
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    PHP Code:
          
          
    // disable for one master_categories_id
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
              
    $this->enabled false;
          } 
    Ajeh, I have this logic working on my site in flat.php and a clone of flat called flathalf.php, but with every new category I add, I have to add a new test 'if' statement to these files. To this point:
    PHP Code:
        // disable for one master_categories_id for WOTM Full Year
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','72') > 0)) {
              
    $this->enabled false;
          }      

        
    // disable for one master_categories_id for Dealer's Choice
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','67') > 0)) {
              
    $this->enabled false;
          }      
        
    // disable for one master_categories_id for Wine Baskets
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','68') > 0)) {
              
    $this->enabled false;
          }      
        
    // disable for one master_categories_id for Thirst-Aid Kits
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','69') > 0)) {
              
    $this->enabled false;
          }      
        
    // disable for one master_categories_id for Personalized Labels
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','70') > 0)) {
              
    $this->enabled false;
          }
        
    // disable for one master_categories_id for Accessories
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','74') > 0)) {
              
    $this->enabled false;
          }  
        
    // disable for one master_categories_id for Wine Glasses
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','75') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Wine Openers
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','76') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Backpacks and Totes
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','77') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Journals and Books
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','78') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Wine Racks
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','79') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Accessories->Miscellaneous
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','80') > 0)) {
              
    $this->enabled false;
          }
          
    // disable for one master_categories_id for Featured Wines
          
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','99') > 0)) {
              
    $this->enabled false;
          } 
    For me, flat and flathalf are each for one category only, so can I reverse this logic somehow so this tests for a category and enable the module?

    I'm pretty good with php, but I am paranoid of breaking things on a live store!
    Thanks so much!

  9. #169
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,883
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    To do this in more or less reverse logic ...

    You could place above the IF statement:
    $this->enabled = false;

    Now the module is turned off ...

    Then your IF statements when true, would have:
    $this->enabled = true;

    to trigger them on ...
    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 ...

  10. #170
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Different shipping methods for different categories

    Thanks Ajeh! You're a peach! It's working perfectly and now I won't have to update those files every time a new category is added!

 

 
Page 17 of 53 FirstFirst ... 7151617181927 ... 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
  •