Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Errors in sub total.

    Quote Originally Posted by incircolo View Post
    Any idea how to fix it?
    v1.5.0.
    .

    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.

  2. #12
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    mmm i can't wait for 1.5, maybe it's an easy mod
    The single product price is ok, the problem is with sub-total.

  3. #13
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    Why in administration, in whoisonline i can see a correct subtotal value, when the customer has products in cart, and in front-end the customer has an incorrect subtotal value ?
    In which file is calculated the subtotal value for front-end and order ?

  4. #14
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Errors in sub total.

    There are many files involved in the order handling process.

    All the rounding issues which you're talking about are fixed in v1.5
    .

    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.

  5. #15
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    This kind of bug can give problems if the payment is PayPalEC ?
    Does ZenCart pass incoherent data to PayPal?

  6. #16
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Errors in sub total.

    I think the word "incoherent" is inappropriate here, at least as far as Websters is concerned.

    It passes whatever it calculates. So, if, as described earlier in this thread, you're using percent discounts or taxes that cause the calculations to result in a penny-difference with rounding, then that will have its impacts wherever those numbers are calculated. PayPal will read whatever is supplied to it. And, as far as PayPal goes, ZC attempts to ensure that any mismatch in line-item values is mitigated by taking fallback actions to submit less detailed information when necessary to allow the transaction to go through.

    As I said, the rounding/calculation issues are fixed in the next version.
    .

    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.

  7. #17
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    When a stable-production version of 1.5 is planned for ?
    As you can imagine, the problem is now, but anyway the important thing is that at least there are no problems with PayPal transactions.

  8. #18
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Errors in sub total.

    See the News & Announcements section of the forum for all release announcements. Subscribe yourself to that forum if you wish to be notified by email when announcements are posted.
    .

    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. #19
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    I'm already subscribed. Anyway thanks for your great work DrByte, which is much-much appreciated.

  10. #20
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Errors in sub total.

    dear drbyte
    I've found this on the forum that seems to fix the problem.
    http://www.zen-cart.com/forum/showpo...3&postcount=21
    Is it possible?

    this
    PHP Code:
      function zen_round($value$precision) {
      
    $value = (int)$value + (round((ceil(round(($value - (int) $value)*pow(10$precision), $precision)))/pow(10$precision), $precision));
        return 
    $value;
      } 
    seems to work better than the original
    PHP Code:
      function zen_round($value$precision) {
        
    $value =  round($value *pow(10,$precision),0);
        
    $value $value/pow(10,$precision);
        return 
    $value;
      } 
    What do you think about it?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v152 Incorrect Sub-total and Total amount during checkout_payment page
    By ZkullGraveAce in forum General Questions
    Replies: 4
    Last Post: 10 Jan 2014, 02:45 AM
  2. Help with Cart total / order sub total
    By philip937 in forum General Questions
    Replies: 3
    Last Post: 19 Dec 2012, 11:46 AM
  3. Sub-total and total price are the same, please help!
    By albertvn in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Jan 2010, 02:13 AM
  4. Sub Total not matching actual total of products in order
    By PadreHomer in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2008, 11:54 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