Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

franktechniek

Pioneers
  • Posts

    15
  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

franktechniek's Achievements

  1. Thanks John, after some time I figured out there was an ommission in my own modfications I made to facilitate intracommute orders (b2b) inside the EU that don't have tax added. I decided to turn off the ajax functions also. They are nice to have, but since the code is too complicated for my own level of understanding, I decided it is better to do without - for now anyway.. Nice when things start to work ;-)
  2. And now I modified \includes\modules\order_total\ot_tax so that I can enter negative quantities for products without loosing the total for tax completely. I want it to work that way, because occasionally I need to create a credit invoice for customers that return product(s). In function process() it is just a simple change: foreach($order->info['tax_groups'] as $key => $value) { // if ($value > 0) { if ($value != 0) { // also allow negative tax for negative quantities of products that are returned and have to be credited on the (credit) invoice $this->output[] = array('title' => $key . ':', 'text' => $currencies->format($value, true, $order->info['currency'], $order->info['currency_value']), 'value' => $value); } Next step is to figure out why the order editor looses the tax that is part of the shipping cost. A new order that is placed has the correct total for tax, for products and shipping combined, but as soon as I hit update even without changing any fields, the total tax is changed to products only. Once the order editor behaves correctly, I guess I would like a button to create a blank order for a particular customer and then fill/modify it as desired. That should not be too difficult. But that shipping tax......
  3. Hmm, forget that, I was messing with the wrong file.. Sorry folks ;-)
  4. Well, the shop runs fine, all orders have everything in the right place, with correct taxes. As soon as I use the order editor, things go wrong. The shipping quotes that I see on the left, the top one (coming from table rate) has no tax, and the second one (coning from flat rate) has 21% tax (high level tax). Both shipping methods are configured for 21% tax. That's why I added the echo lines to check if the right country data was applied, and to check what percentage was set in the quotes. It goes wrong at fetching the quotes. Table rate give 0%. Even when I hard coded the qoute method to return a fixed number, 22 to distinguish from the configured 21, it still shows 0% for table rate, but 22 for flat rate. Have to check that again, still can't believe it.. so weird.
  5. Tax problems with the shipping cost in the order editor 1.2.5 - my findings sofar. In admin\edit_orders.php, I added 4 echoes at the bottom of this: // Edit Order case 'edit': if (!isset($_GET['oID'])) { $messageStack->add(ERROR_NO_ORDER_SELECTED, 'error'); break; } $oID = tep_db_prepare_input($_GET['oID']); $orders_query = tep_db_query("select orders_id from orders where orders_id = '" . (int)$oID . "'"); $order_exists = true; if (!tep_db_num_rows($orders_query)) { $order_exists = false; $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error'); break; } $order = new manualOrder($oID); $shippingKey = $order->adjust_totals($oID); $order->adjust_zones(); $cart = new manualCart(); $cart->restore_contents($oID); $total_count = $cart->count_contents(); $total_weight = $cart->show_weight(); // Get the shipping quotes $shipping_modules = new shipping; $shipping_quotes = $shipping_modules->quote(); echo $order->delivery['country']['id'] . ' country id<br>'; echo $order->delivery['zone_id'] . ' zone id<br>'; echo $shipping_quotes[0]['tax'] . ' %tax ' . $shipping_quotes[0]['module'] . ' first quote<br>'; echo $shipping_quotes[1]['tax'] . ' %tax ' . $shipping_quotes[0]['module'] . ' second quote<br>'; break; That tells me that the first shipping quote (table shipping) on the left, in the order editor use 0% tax (should be 21). The second quote (flat rate) is fine, 21% indeed. if I hard code 22 in both shipping cost modules, the first quote stubbornly shows 0, the second quote 22. That is weird. I don't understand that at all. Any ideas?
×
×
  • Create New...