Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

djmonkey1

Pioneers
  • Posts

    2,114
  • Joined

  • Last visited

Everything posted by djmonkey1

  1. As far as I know Order Editor doesn't do anything to the delete button or it's functionality. All of that is contained within admin/orders.php which is only changed minimally. Undo the changes that you made and start over.
  2. Have you modified anything at all in the file or is it fresh out of the contribution package?
  3. Do you get the error from every tooltip, a few of them, or just one?
  4. There are all sorts of things that you can mess up- that's what backups are for. :) Everybody makes mistakes. You'll learn a lot as you go.
  5. The installation instructions include steps for upgrading from previous versions. Look for this header:
  6. At the top of the file admin/edit_orders.php there should be a line similar to this: $Id: edit_orders.php v5.0.5 08/27/2007 djmonkey1 Exp $ where v5.0.5 is the version number. Unfortunately that is not always updated with every revision, but it should give you a fairly good idea of what you have.
  7. Not that I'm aware of. I've been concentrating on the standard version.
  8. There is nothing to remove per se. Just follow the instructions that I've posted.
  9. Find the following code in both edit_orders.php and edit_orders_ajax.php: for ($i=0, $n=sizeof($order->totals); $i<$n; $i++) { $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n"; } and edit it to make it exclude any undesired elements; I recommend using the ot_class value of the component to do this. For instance if you wanted to exclude the the subtotal you would change it to for ($i=0, $n=sizeof($order->totals); $i<$n; $i++) { if (strstr($order->totals[$i]['class'], 'ot_subtotal')) continue; $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n"; } You can find the class value of each component stored in the orders_total table.
  10. Open admin/edit_orders_ajax.php, find '" . oe_iconv($_GET['comments']) . "')"); change it to '" . tep_db_input(oe_iconv($_GET['comments'])) . "')"); and see if it works any better.
  11. What I would do is take the function count_store_contents() as it is defined in that file: function count_store_contents() { $count = 0; foreach($this->internal_get_store_products() as $key => $product) $count += $product['quantity']; return $count; } and add it to admin/order_editor/cart.php. Then you can test it out and see what you get, most likely a similar error identifying another missing function. Add that one in the same manner and continue in this way until the errors dry up. It will take some fiddling with to get it right. You will probably have to mess with the variable names used as well, for instance I don't think $product['quantity'] has any value in the Order Editor cart.php file, I believe it's actually $this->contents[$products_id]['qty'].
  12. I cannot recreate this problem on my testing server. Are you using AJAX to submit the new comments?
  13. Find in admin/edit_orders.php all three instances of <?php if (ORDER_EDITOR_USE_AJAX != 'true') { ?> <!-- Begin Update Block, only for non-ajax use --> <div class="updateBlock"> <div class="update1"><?php echo HINT_PRESS_UPDATE; ?></div> <div class="update2"> </div> <div class="update3"> </div> <div class="update4" align="center"><?php echo ENTRY_SEND_NEW_ORDER_CONFIRMATION; ?> <?php echo tep_draw_checkbox_field('nC1', '', false); ?></div> <div class="update5" align="center"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?></div> </div> <br> <br> <!-- End of Update Block --> <?php } ?> and change each to <!-- Begin Update Block, only for non-ajax use --> <div class="updateBlock"> <div class="update1"><?php echo HINT_PRESS_UPDATE; ?></div> <div class="update2"> </div> <div class="update3"> </div> <div class="update4" align="center"><?php echo ENTRY_SEND_NEW_ORDER_CONFIRMATION; ?> <?php echo tep_draw_checkbox_field('nC1', '', false); ?></div> <div class="update5" align="center"><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?></div> </div> <br> <br> <!-- End of Update Block --> Be careful when editing the third instance as the php tag <?php } //end if (ORDER_EDITOR_USE_AJAX == 'false') { echo '</form>'; } ?> that closes the if statement "if (ORDER_EDITOR_USE_AJAX != 'true')" is used for other purposes, so you would not delete the php tag, just the first curly brace }.
  14. I have no idea how that one change to checkout_process.php could possibly cause the problem you're describing, but if it works for you that way that's great. If you don't charge tax on shipping you will never know the difference.
  15. You should see an update button. Is there anything there at all, a blue bar, "Please click on "Update" to save all changes", etc?
  16. Well, that's the problem then: you do not have iconv() compiled on your server. Contact your webhost and see if they can/will install it. It is my understanding that it is a very simple procedure. You should undo the change that was made to admin/order_editor/functions.php. As a workaround you can disable AJAX use in Order Editor by going to Admin->Configuration->Order Editor->Allow use of AJAX to update order information?->Set to 'false'
  17. What happens if you open admin/order_editor/functions.php and change function oe_iconv($string) { if (function_exists('iconv')) { return iconv('UTF-8', CHARSET . '//TRANSLIT', $string); } else { return $string; } } to function oe_iconv($string) { return iconv('UTF-8', CHARSET . '//TRANSLIT', $string); }
  18. I am unable to re-create this problem on my testing server. Make sure that you have iconv() compiled on your server; go to Admin->Tools->Server Info->check for "with iconv" listed in the "Configure command" section near the top.
  19. Does this module provide instructions for modifying the file catalog/includes/classes/shopping_cart.php?
  20. You can back up your database using osCommerce by going to Admin->Tools->Database Backup. I recommend storing the backups locally as well as on the server (ie, keep local backups of your backups). In order to install Order Editor you must be able to modify your database. You should be able to login to your database and access it with a tool such as phpMyAdmin. If necessary ask your webhost how to access your database. Once you have accessed your database, if you are using phpMyAdmin you should see a row of tabs across the top of the right hand frame. One of these tabs should say SQL. Click on that tab; once you are viewing the SQL pane you can copy and paste the entire SQL command into the text box and hit the "go" button. That should be it.
  21. Post a link to the contribution that provides the file includes/modules/shipping/fixed.php.
  22. You might run into a problem with tax calculations- since the item is no longer stored in the database, it no longer has a tax class assigned to it. The taxes will still be calculated, but for the products deleted the name of the tax field will simply be "Tax" instead of the real name of whatever the appropriate tax class/rate may be.
  23. The current "hot fix", so to speak, is to find in admin/order_editor/order.php $index = 0; $orders_products_query = tep_db_query(" SELECT op.orders_products_id, op.products_name, op.products_model, op.products_price, op.products_tax, op.products_quantity, op.final_price, p.products_tax_class_id, p.products_weight, p.products_id FROM " . TABLE_ORDERS_PRODUCTS . " op INNER JOIN " . TABLE_PRODUCTS . " p ON op.products_id = p.products_id WHERE orders_id = '" . (int)$order_id . "' ORDER BY op.orders_products_id"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array( 'qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'tax_description' => tep_get_tax_description($orders_products['products_tax_class_id'], $this->delivery["country_id"], $this->delivery["zone_id"]), 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'weight' => $orders_products['products_weight'], 'products_id' => $orders_products['products_id'], 'orders_products_id' => $orders_products['orders_products_id']); and change it to $index = 0; $orders_products_query = tep_db_query("select orders_products_id, products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "' order by orders_products_id"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $orders_products_tax_query = tep_db_query("select products_tax_class_id from " .TABLE_PRODUCTS . " where products_id = " . $orders_products['products_id'] . ""); $orders_products_tax = tep_db_fetch_array($orders_products_tax_query); $this->products[$index] = array( 'qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'tax_description' => tep_get_tax_description($orders_products_tax['products_tax_class_id'], $this->delivery["country_id"], $this->delivery["zone_id"]), 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price'], 'products_id' => $orders_products['products_id'], 'orders_products_id' => $orders_products['orders_products_id']);
×
×
  • Create New...