Jump to content

bitwiz

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • First Name
    Tech
  • Last Name
    Lab

bitwiz's Achievements

Newbie

Newbie (1/14)

1

Reputation

1

Community Answers

  1. The one transaction that went through over the weekend after the update that had tax applied rounded correctly. Perhaps there was a caching issue after the update was installed. I will post back if it is still a problem.
  2. An invoice totals: $194.25 Tax based on customer zipcode = 5.5% (WI State @ 5.0% combined with WI Dane County @ 0.5%) Correct Actual Math = 194.25 * 0.055 = 10.68375 Prestashop Tax = $10.69 (rounded up?) INCORRECT Our company's POS System calculation = $10.68 (rounded down) Correct Then also, a second example: An invoice with total: $257.25 Tax based on customer zipcode = 5.6% (WI State = 5.0%, Milwaukee County = 0.6%) Correct Actual Math = 257.25 * 0.056 = 14.406 Prestashop tax = $14.40 (this time it rounded down???) INCORRECT Our company's POS system calculation = $14.41 Correct Prestashop Version 1.6.1.9 We're using the "recommended" rounding to round up when half way. Tax rules are set to combine. A 25% off voucher has been applied to these invoices. Removing the voucher has no effect. The tax is still incorrectly rounded. Invoices that come out to 2 decimal places or less in tax amount work correctly (no rounding involved). I've also checked for PHP updates and updated to the latest PHP 5.6 on the server today. Upgraded to Prestashop 1.6.1.10 - problem persists.
  3. Found it: themes/mytheme/js/modules/blocklayered/blocklayered.js Changed this: if (result.heading != '') $('h1.page-heading .cat-name').html(result.heading); To this: if (result.heading != ''){ var str = result.heading; var res = str.replace('Manufacturer ', ''); $('h1.page-heading .cat-name').html(res); }
  4. I'm trying to modify the breadcrumbs that show up after filtering products by manufacturer (with the checkboxes). The default theme uses breadcrumbs like: Category > Manufacturer ManufacturerName In other words it says "Manufacturer" then outputs the actual Manufacturer's Name. I'm trying to remove the word "Manufacturer" from the breadcrumb. Is this possible? I've tried str_replace on a number of variables in various template files, I've tried to override the Tools.php controller, and even in the categories.js file without any success. When I checkmark the Manufacturer (as a product filter) while inspecting in Chrome, PS runs an Ajax call to "modules/blocklayered/blocklayered-ajax.php" but I'm lost where to go after that point to modify the output. I've also tried modifying breadcrumbs.tpl with: $path|replace:'Manufacturer ':''|replace:'MANUFACTURER ':'' Nothing. Where is this getting generated? Or how can I modify the breadcrumbs? Thank you for any assistance.
  5. That's a better solution. Thanks!
  6. Yes, we're on Paypal USA/Canada 1.3.8.
  7. We had the same problem with the paypal usa module in our site. Here's how I corrected the problem: I added a function at the bottom of classes/cart.php right before the closing curly brace ( } ). public function roundAmount($a){ return Tools::ps_round($a, _PS_PRICE_COMPUTE_PRECISION_); } } Then in the paypalusa/views/templates/hook/standard.tpl file, change the "value" on the HTML like so: <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$cart->roundAmount($paypal_usa_product.price)}" /> <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+2|escape:'htmlall':'UTF-8'}" value="{$cart->roundAmount($paypal_usa_total_shipping)}" /> This is only a temporary fix and will probably get over-written if you upgrade prestashop or paypal usa, but at least it's working again.
×
×
  • Create New...