Page 7 of 53 FirstFirst ... 5678917 ... LastLast
Results 61 to 70 of 522
  1. #61
    Join Date
    Jun 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by Ajeh View Post
    All of the Shipping Modules have their code stored in the:
    /includes/modules/shipping

    directory ...

    Each has a similar section of code for the:
    $this->enabled

    that can be controlled in a similar manner ...

    The example posted was for the Item Rate item shipping module ... you want to do this for the Table Rate table shipping module ... see if you can't follow along on the similarities to get this working for you and post back your results ...


    I have tried for table but it doens't seems tideo work. The category that I tried to hide still shows up.

  2. #62
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    949
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    If Shipping Module A is the one that I want activated only under certain circumstances how can I de-activate it under normal circumstances?

  3. #63
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    949
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I've been able to make the necessary changes so as to restrict all shipping modules except the one I would like - This is a good thing. There are two items I can't seem to get a handle on:
    1) If Shipping Module A is the one that I want activated only under certain circumstances how can I de-activate it under normal circumstances so that it does not show at all?

    2) Somehow the weights are not adhering to set maximum order weights/prices. Example, in grams: 350:7.00,1000:9.50,2000:13.00,3500:18.00,5000:25.00,8000:36.00

    This is being followed by one product that is forcing a certain shipping module. However, if I add something to the cart from another category that is also set to force the same shipping module, the numbers are not being followed and I can't seem to ascertain what is throwing them off. It almost seems as if the quantity of the items is coming into play somehow although not in any discernable pattern.

    Any thoughts? Thanks!!

    FYI - To force a certain shipping module for multiple items I have don't the following which may or may not be correct and may or may not be creating my current issues:

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

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

    // disable for one master_categories_id
    if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','168') > 0)) {
    $this->enabled = false;
    }
    Last edited by MeltDown; 30 Jun 2008 at 02:08 PM.

  4. #64
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I believe the problem is that only 2 of your disable master categories are working.

    I was testing this out myself and unfortunately, i was not able to use more than 2 of these codes. 1 being $this->enabled = true and the other false.

    if i used 2 that were false, it only seemed to work with the last category that had the false rather than both.

    At the moment, my work around was using products_model rather than master categories. this way any products that is added into the cart regardless of their category, it will force the correct shipping module. You can specify any model code you'd like for the product, the downside is that most products will have duplicate model types but if you add the correct models in the description than you should be good to go. personally i dont mind double models as long as it brings up the correct shipping since i was not able to use more than 2 of the disable master categoryies code no matter how i put them together.

  5. #65
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    949
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by cellmonsters View Post
    I believe the problem is that only 2 of your disable master categories are working.

    I was testing this out myself and unfortunately, i was not able to use more than 2 of these codes. 1 being $this->enabled = true and the other false.

    if i used 2 that were false, it only seemed to work with the last category that had the false rather than both.
    Actually multiple disable master categories seems to be working well for me. I've since added another, totaling 5, and have had no problems.

    I've also been able to sort out my maximum order weights/prices issue, which wasn't an issue after all but me mis-reading my own settings.

    I still have not been able to ascertain how I can de-activate the forced shipping module under normal circumstances so that it does not show at all.

  6. #66
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hmm.. interesting it does not work for me lol.

    I guess i will have to really start troubleshooting better lol. I will give it another try and hope i am lucky on it.

    Maybe we can help each other out.. send me an email cs@cellmonsters.com

  7. #67
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    949
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by cellmonsters View Post

    Maybe we can help each other out.. send me an email cs@cellmonsters.com
    It's best to work through issues here in the forum so that others may benefit. I will certainly post a response if I feel I have any potentially valuable insight.

  8. #68
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I am trying to do as the user at the begining of this thread-

    category 65, 66

    65 I need PICK UP ONLY
    66 I need FLAT RATE ONLY

    I tried using the code provided and I just cant seem to get it to work- I do know to edit the
    Storepickup.php & flat.php but am needing help on the exact code-
    Thanks for any help!

  9. #69
    Join Date
    Jul 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    OMG! Thank you, cellmonsters. This is exactly what I've been trying to do for a week. It seemed like such a simple desire, but I've never felt so inept in my life. great tweak!


    Now I'm going to get greedy. I want to charge a flat rate for certain product_models and a different flat rate for certain other product_models and still per item shipping on yet another product_model in the same cart.

    for example, if there are > 4 of product_model '1' (that's one flat rate), 1 of product_model '2' (that has its own flat rate), and product_model '3' (that is always per item), I want to be able to charge flate rate for product_model '1' + flate rate product_model '2' + per item charge for product_model '3'.

    what I've been able to do with your code is enforce ONLY per item as long as there is a product_model '3', but that means people are liable to drop product_model '3' from their order altogether. And there's a similar issue between product_models '1' and '2' but in that case, it's trying to get a different (more complex) flat rate total.

  10. #70
    Join Date
    Jul 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    forgot to mention that I tried what I thought was a simple procedure of cloning the 'flat rate' module but renaming it and replacing 'FLAT' in all areas with 'FLATTER' (just like the wiki had me do with 'STOREPICKUP') so I would in effect have two independent flat rate modules that I could configure with different product_model restrictions. I was able to follow the module creation guide successfully from the z-c wiki instructions based on the storepickup module, but for some reason, I couldn't repeat that success with the flat rate module.

 

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