Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41
  1. #21
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    sorry wrong quantity
    QTY 1136.4 would like it to convert to cartons but, i know that aint easy.
    What would you suggest would be the best way of handling this.
    i have two instances of Advanced shipper, but only has fedex freight,
    i am trying to get this freigtquote module working with my site.

  2. #22
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    eliminating the decimals
    this way is probaly the better
    Code:
    ceil(1137 * 1.583949313621964) = 1801
    Last edited by jimmie; 22 Nov 2014 at 01:44 AM.

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

    Default Re: Hide module from certain state

    Which do you want for the weight:
    Quantity 1136.4 and Weight 1.583949313621964
    1136.4 * 1.583949313621964 = 1800
    -- or --
    ceil(1136.4 * (int)1.583949313621964) = 1137
    -- or --
    ceil(1136.4 * 1.583949313621964) = 1800


    Quantity 1200 and Weight 1.583949313621964
    What do you want it to equal?
    1200 * 1.583949313621964 = 1900.7391763464
    -- or --
    ceil(1200 * (int)1.583949313621964) = 1200
    -- or --
    ceil(1200 * 1.583949313621964) = 1901
    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!]
    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!

  4. #24
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    ceil(1136.4 * 1.583949313621964) = 1800

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

    Default Re: Hide module from certain state

    Quote Originally Posted by jimmie View Post
    eliminating the decimals
    this way is probaly the better
    Code:
    ceil(1137 * 1.583949313621964) = 1801
    You cannot make up results you only can use what will really calculate ...
    Code:
    ceil(1137 * 1.583949313621964) = 1800
    So if:
    Quantity 1.25 and Weight 1.25
    ceil(1.25 * 1.25) = 2

    Quantity 1200 and Weight 1.583949313621964
    ceil(1200 * 1.583949313621964) = 1901

    Quantity 1136.4 and Weight 1.583949313621964
    ceil(1136.4 * 1.583949313621964) = 1800

    work for you, then use in your code for Weight:
    Code:
    'Weight' => ceil($product['quantity'] * $product['weight']),
    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!]
    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!

  6. #26
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    i figured out what piececount does, it is how many pallets i am shipping i just did this for that so that is done
    Code:
    'PieceCount' => '1',

  7. #27
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    one more thing before you go
    this
    Code:
    $shipping_form = '';
          if ($_POST['action'] != 'process') {
            $shipping_form  = '<table border="0" cellspacing="0" cellpadding="2">';
            $shipping_form .= '<tr><td class="main" width="120">Delivery Location:</td><td class="main">';
            $shipping_form .= '<select name="freightquote_delivery_location" onchange="window.location.href=\'' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, 'freightquote_delivery_location=') . '\'+this.value">';
            $shipping_form .= '<option value="0"' . ($delivery_location == '0' ? ' SELECTED' : '') . '>Residence</option>';
            $shipping_form .= '<option value="1"' . (!isset($delivery_location) || $delivery_location == '1' ? ' SELECTED' : '') . '>Commercial (no loading dock)</option>';
            $shipping_form .= '<option value="2"' . ($delivery_location == '2' ? ' SELECTED' : '') . '>Commercial (with loading dock)</option>';
            $shipping_form .= '<option value="3"' . ($delivery_location == '3' ? ' SELECTED' : '') . '>Construction Site</option>';
            $shipping_form .= '</select></td></tr>';
            $shipping_form .= '</table>';
          } else {
            $shipping_form  = '<br>Delivery Location: ';
            switch ($delivery_location) {
              case '0':
                $shipping_form .= 'Residence';
                break;
              case '2':
                $shipping_form .= 'Commercial (with loading dock)';
                break;
              case '3':
                $shipping_form .= 'Construction Site';
                break;
              case '1':
              default:
                $shipping_form .= 'Commercial (no loading dock)';
                break;
            }
          }
    when on shopping cart page and they pick commercial sends them to checkout_shipping with no change
    if i do this
    Code:
    . zen_href_link(FILENAME_SHOPPING_CART,
    it works as it should. but when they check out it sends them back to shopping cart.
    if i remove the link they have to update cart.

  8. #28
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Hide module from certain state

    Can you attach a .zip of the module PHP file?
    Or at least a URL to the site so we can look at the javascript in action? And any special instructions for putting the right things into the cart to trigger the problem?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #29
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state

    http://floorz-n-more.com/index.php?m...oducts_id=1909
    put in 1136.4 choose commercial when in check out

  10. #30
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    969
    Plugin Contributions
    0

    Default Re: Hide module from certain state


 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v139h Hide COD payment method from certain customers?
    By TroyC in forum General Questions
    Replies: 3
    Last Post: 5 Apr 2013, 04:19 PM
  2. Hide Search box from certain categories
    By pixelpadre in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Aug 2011, 01:49 AM
  3. Hide certain products from a group of users
    By mohammedsk in forum Basic Configuration
    Replies: 4
    Last Post: 29 Dec 2009, 06:31 AM
  4. Hide Certain EZ Pages Links from main page??
    By lmw1 in forum Basic Configuration
    Replies: 0
    Last Post: 6 Oct 2007, 12:18 PM
  5. Hide Table Shipping Module from Certain Customers
    By bearaman in forum General Questions
    Replies: 1
    Last Post: 29 Jun 2007, 05:51 AM

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