Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2010
    Posts
    62
    Plugin Contributions
    0

    Default Shipping option.

    Hi,

    I am trying to figure out the best way to setup a shipping method and want to know if anyone has any ideas?

    Currently I would like the first item be 7 dollars and any addition items is 3.50 each

    Not sure how to configure that.

    Thanks!

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

    Default Re: Shipping option.

    You could adapt the Item Rate item shipping module for this ...

    I believe you could set the Item Rate item setting for how much per Item to 3.50 ...

    Then customize the code:
    /include/modules/shipping/item.php

    Code:
          if($item_total_count <= 7) {
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => (7.00) + MODULE_SHIPPING_ITEM_HANDLING)));
          } else {
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => (MODULE_SHIPPING_ITEM_COST * ($item_total_count - 7)) + 7.00 + MODULE_SHIPPING_ITEM_HANDLING)));
          }
    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
    Mar 2010
    Posts
    62
    Plugin Contributions
    0

    Default Re: Shipping option.

    Do I just add the code?

    Where would I put it?

    Would usps module work?

    Have the first item at usps rate and any addition item is 3.50?
    Last edited by chal2les; 9 Apr 2010 at 09:52 PM.

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

    Default Re: Shipping option.

    The difficulty in trying to do this on the USPS shipping module is knowing which 7 items are the 1st 7 items for the weight for the quote from USPS as the weight is calculated in the shipping.php class where the total weight is prepared and is the per quantity per product time its weight ...

    Suddenly, you want to take all of the weight calculated and subtract out the weight beyond 7 Products ...

    Which 7 Products?

    What happens when there are 2 Products at quantity 3 and 1 at quantity 4 etc. etc.

    Now you could use USPS when the Item Count is less than or equal to 7 (7 being total item count regardless if this is 7 Products or quantity 2, 2, 3 on 3 Products) for USPS ... and then at Item Count 8 or more items turn off USPS and use something else ...
    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!

 

 

Similar Threads

  1. v154 Free Shipping to Disable Showing Option for Paid Shipping
    By Bob La Londe in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 21 Feb 2016, 05:59 PM
  2. v138a Zone rate shipping does not disappear when free shipping option is triggered
    By corseter in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 4 Sep 2013, 02:35 PM
  3. v139h Free shipping option, disable one other shipping option
    By stylenote in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 21 Jul 2012, 09:56 PM
  4. Replies: 41
    Last Post: 27 Feb 2011, 01:01 AM
  5. Shipping option only shows as free shipping - i want all options
    By RomanSon3625 in forum Addon Shipping Modules
    Replies: 8
    Last Post: 14 Nov 2007, 04:13 PM

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