Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    26
    Plugin Contributions
    0

    Default Flat rate on one category only

    Hi,

    I am using v.1.3.7. I need some help here on setup shipping method. Most of categories in my store are using weight based shipping. They are working very well. However, recently I have decided changing ONLY one of them to start using flat rate shipping. How can I setup the system?

    Thanks for in advance.

    Yxw168


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

    Default Re: Flat rate on one category only

    Set the products_weight on that category of products to 0 ...

    Then, you can test in your shipping module for if there are 1 or more Products that use the master_categories_id that matches your Category for the Flat Rate categories_id in the order and if so, add on to the calculated shipping cost ...

    In the shopping_cart class is a function that should be able to help you:
    Code:
      /**
       * Method to calculate the number of items in a cart based on an abitrary property
       *
       * $check_what is the fieldname example: 'products_is_free'
       * $check_value is the value being tested for - default is 1
       * Syntax: $_SESSION['cart']->in_cart_check('product_is_free','1');
       *
       * @param string product field to check
       * @param mixed value to check for
       * @return integer number of items matching restraint
       */
      function in_cart_check($check_what, $check_value='1') {
    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.5]
    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. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Flat rate on one category only

    Or, if the thought of getting involved with the code to that level paralyses you with fear, you could get the Advanced Shipper module from ceon.net (it IS a commercial offering) which will allow you to set up per category shipping amongst a vast range of other possibilities.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

 

 

Similar Threads

  1. Flat Rate Shipping 1 Category only
    By db-r in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 23 Apr 2009, 08:31 AM
  2. Flat Rate Shipping On Only One Product In Store
    By juliartz in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 25 Sep 2008, 03:32 PM
  3. Flat rate shipping override - on one product only
    By Nappy Nature in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Mar 2008, 11:43 PM
  4. One product only be set to Flat Rate shipping?
    By LilleyPadGifts in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 3 Jan 2008, 06:32 AM
  5. Applying Flat Rate Shipping To One Country Only?
    By Arkwright in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Jan 2008, 06:22 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