Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Re: Shipping Based on a range of # of units

    Thank you!

    For posterity sake should someone else come across this gave me an idea and I went a different direction and came up with this which maybe I'd make a plugin as it's really convenient and makes it possible for me to literally item set shipping v the existing modules so end of day I ended up with a wide ranging solution.

    You could literally do unique shipping for your entire catalog with this type thing. Thanks very much to SWGUY and carlwhat because I really was having a mental block on this and you got me thinking about it in my head for a bit.

    global $cart;
    $chk_oversized = 0;
    $oversized_title = '';
    $chk_oversized += $_SESSION['cart']->in_cart_check('products_model', '1634');
    $chk_oversized += $_SESSION['cart']->in_cart_check('products_model', '1635');
    $chk_oversized += $_SESSION['cart']->in_cart_check('products_model', '5035');
    $extra_shipping = ((int)($chk_oversized / 24) + 1) * 15.00;
    if ($extra_shipping > 0) {
    $oversized_title = ' + Weight Surcharge $15.00';
    }

  2. #12
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Re: Shipping Based on a range of # of units

    Actually end was your suggested ceil v int in the end for anyone that might ever need this.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Can I reduce inventory based on weight instead of units?
    By paperpixels in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 5 May 2020, 01:51 AM
  2. v151 Automatically calculate price based on specific units
    By SpyderSL in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 23 Feb 2013, 11:37 AM
  3. Shipping module w/pricing based on table look-up on # of units?
    By Dave.T in forum Addon Shipping Modules
    Replies: 2
    Last Post: 24 Nov 2010, 03:52 PM
  4. Search for Products based on Weight Range
    By antoniobb in forum General Questions
    Replies: 4
    Last Post: 7 May 2010, 04:49 AM
  5. Changing price range to time range (in Advanced Search)
    By jeffmic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2006, 07:12 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