auto-spellchecker got me
shoulda beenPayphone line 606 and others.shows up on line 1606 and other files.
Rob,
Need to read up a few posts. I think the === was not required once the sumofLineItems was changed to sumOfLineItems.
Understood, but it is the specific use of === within PHP that I am curious about. I have only seen that used within JS.
It's a perfectly valid operator in PHP when doing type-matching: http://php.net/manual/en/language.op...comparison.php
And ... you're way off topic for this bug-fix thread![]()
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
That's been common practice now in Zen Cart for several years, starting in various files touched since v1.3.7.1: http://tutorials.zen-cart.com/index.php?article=313
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
NOTE: v1.3.9e has now been released and contains the fixes to the issue described by stagebrace initially. See the News & Announcements section of the forum for details.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
$sumofLineTax is still at line 1264 of the paypalwpp.php
In the // Sanity Check// Sanity Check of line-item subtotals
for ($j=0; $j<$k; $j++) {
$itemAMT = $optionsLI["L_AMT$j"];
$itemQTY = $optionsLI["L_QTY$j"];
$itemTAX = (isset($optionsLI["L_TAXAMT$j"]) ? $optionsLI["L_TAXAMT$j"] : 0);
$sumOfLineItems += ($itemQTY * $itemAMT);
$sumOfLineTax += ($itemQTY * $itemTAX);
}
$sumOfLineItems = round($sumOfLineItems, 2);
$sumOfLineTax = round($sumOfLineTax, 2);
if ($sumOfLineItems == 0) {
$sumofLineTax = 0;
$optionsLI = array();
$discountProblemsFlag = TRUE;
if ($optionsST['SHIPPINGAMT'] == $optionsST['AMT']) {
$optionsST['SHIPPINGAMT'] = 0;
}
}
So it is.![]()
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
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.
Bookmarks