.
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.
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.
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 ?
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.
This kind of bug can give problems if the payment is PayPalEC ?
Does ZenCart pass incoherent data to PayPal?
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.
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.
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.
I'm already subscribed. Anyway thanks for your great work DrByte, which is much-much appreciated.
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
seems to work better than the originalPHP 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;
}
What do you think about it?PHP Code:function zen_round($value, $precision) {
$value = round($value *pow(10,$precision),0);
$value = $value/pow(10,$precision);
return $value;
}