Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    red flag Mileage based Shipping for One Category

    Hi

    On my website https://www.sitstandforbusiness.com/ssfb_test/ (its a test site), I have flatpacked desk units and one category for fully assembled units. On the Assembled units category, we have 2 desks which have different shipping rules to the other products on our shop.

    The other products on the catalogue are calculated per unit (perweightunit). However, Assembled units are delivered from our Distribution Centre to the customer in the UK (it is a Uk only site). Therefore I have installed MileageShip which is ideal for this purpose, but I wondered if it would be possible to have shipping only apply to the Assembled Units Category only?

    Is this at all possible and would it take much modification? At the moment, the checkout shows both shipping options.

    I can follow clear instructions if it is a straightforward change, but I welcome any help/advice.
    Debbie Harrison
    DVH Design | Web Design blog

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Mileage based Shipping for One Category

    Try this:

    Assuming the master category id of assembled desks is 78 (replace that number with your master category id)

    In the file includes/modules/shipping/mileageship.php immediately after


    PHP Code:
    $this->enabled = ((MODULE_SHIPPING_MILEAGESHIP_STATUS == 'True') ? true false); 

    insert

    PHP Code:
    // bof enable only for certain category in cart
        
    if (IS_ADMIN_FLAG == false) {
          if ((
    $_SESSION['cart']->in_cart_check('master_categories_id','78') > 0))
              {
              
    $this->enabled true;
          } else {
              
    $this->enabled false;
              }
            }
    // eof enable only for certain category in cart 
    Pls let us know if it works for you.

  3. #3
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Mileage based Shipping for One Category

    Hi Frank

    Thank you

    That does work, but it also lists the total delivery as an option £0. If you try to go to the checkout with an assembled, desks it lists both mileage option and total delivery.

    How would I apply this to two categories?

    Hope you can help :)
    Debbie Harrison
    DVH Design | Web Design blog

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Mileage based Shipping for One Category

    Quote Originally Posted by dharrison View Post
    Hi Frank

    Thank you

    That does work, but it also lists the total delivery as an option £0. If you try to go to the checkout with an assembled, desks it lists both mileage option and total delivery.
    It shows 0 because there is no actual shipping address specified in the estimator. The module needs to know where to ship the desk to.

    Quote Originally Posted by dharrison View Post
    How would I apply this to two categories?

    Hope you can help :)
    Try this (for additional category = 99

    PHP Code:
    // bof enable only for certain category in cart
        
    if (IS_ADMIN_FLAG == false) {
          if ((
    $_SESSION['cart']->in_cart_check('master_categories_id','78') > 0) ||
             (
    $_SESSION['cart']->in_cart_check('master_categories_id','99') > 0))
              {
              
    $this->enabled true;
          } else {
              
    $this->enabled false;
              }
            }
    // eof enable only for certain category in cart 

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Mileage based Shipping for One Category

    Quote Originally Posted by dharrison View Post
    ....but it also lists the total delivery as an option £0......
    Hmmm, checked several other ZC 1.5.5x installations and none of these show 'Total Shipping' in the Shipping Estimator. They only show the cost for individually available shipping options.

  6. #6
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Mileage based Shipping for One Category

    Hi Frank

    Total Shipping was just a reword from the Per weight unit shipping module. When I add a value for weight, this appears under total shipping.

    For example, https://sitstandforbusiness.com/ssfb...ies-p-117.html now has the value of 20 under weight so now at checkout, total shipping shows at £20.

    I need to eliminate this showing for the categories based on mileage.

    I hope this clears things up a bit :)
    Debbie Harrison
    DVH Design | Web Design blog

  7. #7
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    446
    Plugin Contributions
    0

    Default Re: Mileage based Shipping for One Category

    I also tried the multiple category setup and it doesn't appear to work.
    Debbie Harrison
    DVH Design | Web Design blog

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Mileage based Shipping for One Category

    If you are wanting to disable the other shipping module when the one is active, then the per weight module needs to have a condition similar but opposite to the mileageship options.

    Of course this raises the issue of what is expected to happen if an item of both types is added to the cart? Does the pricing of mileageship cover for what would have been the shipping cost of the other item(s)?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Mileage based Shipping for One Category

    Just noticed that this has been discussed at length way back in 2008, see

    https://www.zen-cart.com/showthread....ent-categories

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Mileage based Shipping for One Category

    Quote Originally Posted by dharrison View Post
    I also tried the multiple category setup and it doesn't appear to work.

    Hmmm... works in my test cart

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v154 Mileage based shipping module?
    By Fjolsvith in forum Addon Shipping Modules
    Replies: 32
    Last Post: 1 Dec 2018, 06:42 AM
  2. Module for local mileage based delivery?
    By esobalvarro in forum General Questions
    Replies: 0
    Last Post: 8 Feb 2010, 04:39 AM
  3. set different shipping rates based on zones only for one country.. need help..
    By daxchoki in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Dec 2009, 06:19 PM
  4. Urgent - One type of shipping for only one category
    By beyre in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 16 Oct 2009, 05:01 PM
  5. Free Shipping based on quantity - for one product only
    By Schanz in forum Addon Shipping Modules
    Replies: 4
    Last Post: 11 Mar 2009, 12:16 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