Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37
  1. #31
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    And you did apply the change from #4 on this post that DrByte wrote out, correct?
    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!

  2. #32
    Join Date
    Feb 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    I did change it in both of those places. I added the extra line that was in red. That is what you wanted me to do, isn't it?

    My version says Zen Cart 1.3.8a and it says Database Patch Level: 1.3.8 "fresh installation"

    PHP Version 5.2.9

  3. #33
    Join Date
    Feb 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    Quote Originally Posted by Ajeh View Post
    And you did apply the change from #4 on this post that DrByte wrote out, correct?
    Yep - I had already changed that too.

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

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    I cannot repeat this error that you are having regardless of how I try to configure it the Minimum of .5 and Units of .5 work ...

    If you want, drop me a PM to your Zen Cart Admin and I can peek to see if I see anything odd on your setup ...
    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!

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

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    I changed the function fmod_round in the functions_general.php with a different method:
    Code:
    // replacement for fmod to manage values < 1
      function fmod_round($x, $y) {
        $x = strval($x);
        $y = strval($y);
        $zc_round = ($x*1000)/($y*1000);
        $zc_round_ceil = (int)($zc_round);
        $multiplier = $zc_round_ceil * $y;
        $results = abs(round($x - $multiplier, 6));
         return $results;
      }
    and this appears to fix your rounding issue ...

    See if everything is now working for you as it appears to be working for me now ...
    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. #36
    Join Date
    Feb 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    Quote Originally Posted by Ajeh View Post
    I changed the function fmod_round in the functions_general.php with a different method:
    Code:
    // replacement for fmod to manage values < 1
      function fmod_round($x, $y) {
        $x = strval($x);
        $y = strval($y);
        $zc_round = ($x*1000)/($y*1000);
        $zc_round_ceil = (int)($zc_round);
        $multiplier = $zc_round_ceil * $y;
        $results = abs(round($x - $multiplier, 6));
         return $results;
      }
    and this appears to fix your rounding issue ...

    See if everything is now working for you as it appears to be working for me now ...
    Yes! That did the trick. It is working like a charm! Now to edit the rest of my products for 1/2 yards. Thank you for all your help!

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

    Default Re: Is It Possible To Make Add To Cart Minimum Unit .5 Like: 1.5 Units

    You are most welcome ... glad that this could get things running again for you ...
    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!

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. '0 units in stock', and No Add to Cart
    By WhitePhantom in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2010, 08:10 PM
  2. Add to Cart Quantity alway shows 1 unit [TPP]
    By digulu in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Jan 2010, 04:38 AM
  3. Can I make zen cart look like this?
    By jwitt98 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 17 Feb 2009, 12:40 AM
  4. Add to Cart Area: Units
    By DesignbyDemeter in forum Basic Configuration
    Replies: 5
    Last Post: 5 Jul 2006, 07:34 PM

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