Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dev123

Archived
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    John

dev123's Achievements

  1. Hey everyone, I had this same issue and it seemed to be with this perticular line of code: ot_discount.php line 61 (accordinly to 2.4 release) $tax_discount[$order->products[$i]['tax_description']] += $products_discount * $order->products[$i]['tax'] / 100; This line of code kept spitting out a warning something about illigal blah blah.. (forgot the exact error) After using a bunch of print_r statements, I noticed that the array ($tax_discount) was actually empty. so i updated the above line of code into the following and it worked for me! ot_discount.php foreach($order->products[$i]['tax_description'] as $key123 => $value123){ $tax_discount[$key123] += $products_discount * $order->products[$i]['tax'] / 100; } Not sure if this was the best and most efficient way, but it worked for me. If anyone has a better example, please feel free to show!
  2. I am in a little bit of a dilemma. I looked around the forum for any answers to this but could not find it anywhere...... please help I have installed the separate pricing 4.2.2 contrib as well as Canadian taxes installed. Everything is working fine, except the order total is still calculating the PST for customers who are set as wholesale and exempt from that tax bracket. when checking out, it shows the product totals checkout_confirmation.php: Products (Edit) Tax Total 40 x Merkur M 1.1out of stock 5% $0.00 1 x Merkur M3 5% $36.95 This works because the taxes are only showing as 5%. But below that, it shows: Sub-Total: $36.95 Shipping (Shipping to Ontario, Canada ): $23.00 5.0% GST (Ontario): $1.85 8.0 % PST (Ontario): $2.96 Total: $61.80 It still shows the PST even though the TOTAL does to take it into the calculation. The final price is correct, but still shows the PST. Anybody else have this same problem? It has been driving me insane!!!!! TEST ACCOUNT to replicate the problem: http://www.smart-toys.ca user: [email protected] pass: nftest Any assistance is appreciated! Thanks!
×
×
  • Create New...