Page 6 of 53 FirstFirst ... 4567816 ... LastLast
Results 51 to 60 of 522
  1. #51
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,666
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    What are your settings for the Shipping/Packaging?
    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 ...

  2. #52
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    QUOTE=Ajeh;559683]Imagine for a moment ...

    I buy 3 Products from categories_id 15 and that means UPS ...

    Tommy buys 4 Products from categories_id 32 and that means "other shipping module(s)" ...

    Freddy buys 2 Products from categories_id 32 and 1 Product from categories_id 15 ...

    1 Can Tommy use UPS as an option? ... meaning other shipping modules show "and" UPS also shows ... OR, other shipping module(s) show but UPS does NOT show ...

    2 Can Freddy "only" use UPS? ... meaning no other shipping modules show

    3 Can I "only" use UPS? ... meaning my whole order is categories_id 15 so that is my "only" shipping module to choose from

    What "other" shipping module(s) are you using aside from UPS?♠[/QUOTE]




    I had this very same problem.

    if a customer chose a category that only provided UPS and then added another product from a category that only provided "other shipping" once they clicked on checkout, an error page would come up as it would cancel each other out.

    My only solution was that when lets say, category 2 was in shopping cart, to show other shipping as well as ups, when category 1 was in shopping cart, UPS would hide.. and if category 1 and 2 were in shopping cart, then only other shipping would come up and UPS would still be hidden. This way, only both UPS and other shipping option show up if a product from category 2 is added. if it is mixed up with another product.. UPS is no longer an option.

  3. #53
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I think this thread can help me. I have tried figuring this out myself using the previous post but I am able to figure out what variable I need to use.

    I want to set my USPS module to only turn on if the total order weight of each box in the order is less than 20 pounds.

    Could someone please help me with the correct code to insert.

    Matt

  4. #54
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Ok I almost have something that works

    In the USPS module I added $shipping_weight to the first global line

    Then added this code:
    // disable only if shipping weight > 20
    if ($shipping_weight > 20) {
    $this->enabled = false;
    }


    This then only lets the USPS module show if the total weight is less than 20 pounds

    But If I have 2 boxes that each weigh less than 20 pounds USPS does not show but I want it to show.

    Any help would be appreciated

    Matt

  5. #55
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,666
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    If your Maximum Shipped weight is > 20, then your boxes cannot be less than 20 when there is more than one box ...

    What are you using for the Maximum Box shipped in the Shipping/Packaging?
    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 ...

  6. #56
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    My Max weight per box is set at 30. So if I have 2 20 pound items each item would go in 1 box. But with the code I used the USPS module doesn't show.

    Matt

  7. #57
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,666
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Unfortunately ... it doesn't quite work that way, at this time ...

    You have 2 20lb Products and ship a maximum of 30lbs so it will make 2 boxes of 20lbs ... check where you are setting your test what the actual value of $shipping_weight is ... if it is equal to 20 and you add in a Tare weight, then you are over the 20 and may really be at 22.00 with the 10:0 on the Large Package ...
    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. #58
    Join Date
    Jun 2008
    Posts
    24
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    You could customize the shipping modules that when a given master_categories_id is in the shopping cart then only Store Pickup storepickup can run ...

    Otherwise, when nothing from that master_categories_id is in the cart then all other Shipping modules run ...

    You should also consider whether you want Store Pickup storepickup to always show as an option ...
    Can someone help with coding the item.php file (or another area) if I want certain items to not have store pick up? I want all my items to have shipping all the time.

  9. #59
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I can certaintly help you on this..

    Please email me at cs@cellmonsters.com

    Currently I have been successful at coding the shipping options to include more than one master category.

  10. #60
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by GraniteMan44 View Post
    I would like to do what the original poster asked. If I want to use "per item" on more than one category, do I have to duplicate the

    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
    $this->enabled = false;


    for each category?

    Or can I list the others within the same line as the '17' ?

    example: 'master_categories_id','17','18', '20')


    Thank you.

    G
    Alright, so i have been troubleshooting this for a while now since it is an option that I really want and all i have been able to do is change the code to instead of using master_categories_id i tested with :

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

    now, everytime a product with this model "SHP1" is in the cart, the appropriate shipping module is activated. What i found out is that you cannot include more than 2 main_categories_id in the shipping module. for example you can use:

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

    and under this another:
    // disable for one master_categories_id
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','2') > 0)) {
    $this->enabled = false;
    }

    this would disable any products in category 2 from using whatever shipping module this code is in. however, you cannot repeat the same code to disable another category as it would not work. At least it did not work for me. so what i did was change the master_categories_id to products_model, therefore any products with the same Model, regardless of their categories would disable or enable a shipping module.


    Hope this helps everyone that would like to include many products in different categories and would like these to activate different shipping options.
    Last edited by cellmonsters; 29 Jun 2008 at 10:58 PM.

 

 
Page 6 of 53 FirstFirst ... 4567816 ... 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
  •