Irin Posted September 5, 2006 Posted September 5, 2006 Well, I can't see any compatibility issues here. If you give me a step-by-step rundown of how things work with the comment bar add-on, as far as what you do, what happens next, etc, maybe I can think of something. I have predefined buttons near my comments area. According to the button selected, the comments should appear in the field. However, when I press any button, the comments are placed in the product's description area instead of comments. There is really nothing complicated and I don't understand why it's not working. If you'll be able to come up with any idea, it would be great... if not, don't worry about it. I don't want to make it too hard for you. Thanks. Quote
djmonkey1 Posted September 5, 2006 Posted September 5, 2006 I have predefined buttons near my comments area. According to the button selected, the comments should appear in the field. However, when I press any button, the comments are placed in the product's description area instead of comments. There is really nothing complicated and I don't understand why it's not working. If you'll be able to come up with any idea, it would be great... if not, don't worry about it. I don't want to make it too hard for you. Thanks. Try changing <?php echo tep_draw_textarea_field('comments', 'soft', '40', '5', '', 'id="tal" class="textarea"'); ?> to <?php echo tep_draw_textarea_field('comments', 'soft', '40', '5', ''); ?> and see if it works that way. Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 5, 2006 Posted September 5, 2006 Try changing <?php echo tep_draw_textarea_field('comments', 'soft', '40', '5', '', 'id="tal" class="textarea"'); ?> to <?php echo tep_draw_textarea_field('comments', 'soft', '40', '5', ''); ?> and see if it works that way. Nope, it doesn't work this way. I get the message 'The text area is not found.' It disables GOOGIESPELL and doesn't solve the problem either. The comments are still placed into product's description field. Any other ideas? Thanks. Quote
djmonkey1 Posted September 5, 2006 Posted September 5, 2006 Nope, it doesn't work this way. I get the message 'The text area is not found.' It disables GOOGIESPELL and doesn't solve the problem either. The comments are still placed into product's description field. Any other ideas? Thanks. Do you have <script language="javascript"><!-- var usrdate = ''; function updateComment(obj,statusnum) { var textareas = document.getElementsByTagName('textarea'); var myTextarea = textareas.item(0); { myTextarea.value = obj; } var selects = document.getElementsByTagName('select'); var theSelect = selects.item(0); theSelect.selectedIndex = statusnum; return false; } function killbox() { var box = document.getElementsByTagName('textarea'); var killbox = box.item(0); killbox.value = ''; return false; } function getdate () { usrdate = prompt("<?php echo TEXT_PROMPT; ?>"); } function getrack () { usrtrack = prompt("<?php echo TEXT_TRACKNO; ?>"); } //--></script> as the JavaScript code in your admin/comment_bar.php file? Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 6, 2006 Posted September 6, 2006 (edited) In my admin/comment_bar.php I have the following Java script: <script language="javascript"><!-- var usrdate = ''; function updateComment(obj,statusnum) { var textareas = document.getElementsByTagName('textarea'); var myTextarea = textareas.item(0); { myTextarea.value = '---<?php echo date("H:i:s"); ?> CST---\n\n' + obj; } var selects = document.getElementsByTagName('select'); var theSelect = selects.item(0); theSelect.selectedIndex = statusnum; return false; } function killbox() { var box = document.getElementsByTagName('textarea'); var killbox = box.item(0); killbox.value = ''; return false; } //--></script> I don't use those additional functions getdate () and getrack (). Edited September 6, 2006 by Irin Quote
djmonkey1 Posted September 6, 2006 Posted September 6, 2006 In my admin/comment_bar.php I have the following Java script: I don't use those additional functions getdate () and getrack (). If you actually have the product description displayed in Order Editor (I was thinking you meant the product name), perhaps you're showing it in a text area? In that case the number of text areas on the page is variable and you'll need to modify the code in admin/comment_bar.php. If you have a variable number of text areas displayed on admin/edit_orders.php, in admin/comment_bar.php change var textareas = document.getElementsByTagName('textarea'); var myTextarea = textareas.item(0); to var myTextarea = document.getElementById("tal"); Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 6, 2006 Posted September 6, 2006 If you actually have the product description displayed in Order Editor (I was thinking you meant the product name), perhaps you're showing it in a text area? In that case the number of text areas on the page is variable and you'll need to modify the code in admin/comment_bar.php. If you have a variable number of text areas displayed on admin/edit_orders.php, in admin/comment_bar.php change var textareas = document.getElementsByTagName('textarea'); var myTextarea = textareas.item(0); to var myTextarea = document.getElementById("tal"); Ok, at least something. Now, when I click any button, the comments are displayed in the appropriate area. However, the Order Status doesn't change according to the button pressed and Reset button doesn't clear comments. I tried to change killbox function for Reset from: function killbox() { var box = document.getElementsByTagName('textarea'); var killbox = box.item(0); killbox.value = ''; return false; to: function killbox() { var box = document.getElementById("tal"); killbox.value = ''; return false; But it doesn't work. May be I'm doing something wrong? Quote
djmonkey1 Posted September 6, 2006 Posted September 6, 2006 Ok, at least something. Now, when I click any button, the comments are displayed in the appropriate area. However, the Order Status doesn't change according to the button pressed and Reset button doesn't clear comments. I tried to change killbox function for Reset from: function killbox() { var box = document.getElementsByTagName('textarea'); var killbox = box.item(0); killbox.value = ''; return false; to: function killbox() { var box = document.getElementById("tal"); killbox.value = ''; return false; But it doesn't work. May be I'm doing something wrong? Have you tried function killbox() { var box = document.getElementById("tal"); var killbox = box.item(0); killbox.value = ''; return false; } Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
djmonkey1 Posted September 6, 2006 Posted September 6, 2006 (edited) Ok, at least something. Now, when I click any button, the comments are displayed in the appropriate area. However, the Order Status doesn't change according to the button pressed and Reset button doesn't clear comments. I tried to change killbox function for Reset from: Scratch my last post. Just use: function killbox() { document.getElementById("tal").value = ''; return false; } Incidentally, if you use this anywhere else, don't forget to make sure the id of the textarea on each page is always "tal". Edited September 6, 2006 by djmonkey1 Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 6, 2006 Posted September 6, 2006 Scratch my last post. Just use: function killbox() { document.getElementById("tal").value = ''; return false; } Incidentally, if you use this anywhere else, don't forget to make sure the id of the textarea on each page is always "tal". Great... now everything works except for the order status doesn't change. Like on my orders page, the status changes according to the button pressed (if it's Processing - it becomes Processing, etc.). And also, I probably should ask it on another forum, that when I click Reset, the status goes back to the last updated. The status changes are also set in admin/comment_bar.php. Here is for example button 'Pending' changes order's status to '8' which is 'Pending': <button class="cbutton" onClick="return updateComment('<?php echo(TEXT_COMMENT_01); ?>','8');"><?php echo TEXT_BUTTON_01; ?></button> Quote
djmonkey1 Posted September 6, 2006 Posted September 6, 2006 Great... now everything works except for the order status doesn't change. Like on my orders page, the status changes according to the button pressed (if it's Processing - it becomes Processing, etc.). And also, I probably should ask it on another forum, that when I click Reset, the status goes back to the last updated. The status changes are also set in admin/comment_bar.php. Here is for example button 'Pending' changes order's status to '8' which is 'Pending': If you have the payment method dropdown enabled, disable it and see how the comment bar functions then. Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 6, 2006 Posted September 6, 2006 If you have the payment method dropdown enabled, disable it and see how the comment bar functions then. You're right, as always. When payment method dropdown is disable, all comment bar functions work perfectly. Now, can I use them both with payment method dropdown enabled? Thanks Stew. Quote
djmonkey1 Posted September 6, 2006 Posted September 6, 2006 You're right, as always. When payment method dropdown is disable, all comment bar functions work perfectly. Now, can I use them both with payment method dropdown enabled? Thanks Stew. You're welcome- glad to help! In edit_orders.php, orders.php, and anywhere else you use this code, find <?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?> and change it to <?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status'], 'id="status_select"'); ?> Then in comment_bar.php change var selects = document.getElementsByTagName('select'); var theSelect = selects.item(0); to var theSelect = document.getElementById("status_select"); and that should do it. Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Irin Posted September 7, 2006 Posted September 7, 2006 You're welcome- glad to help! In edit_orders.php, orders.php, and anywhere else you use this code, find <?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?> and change it to <?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status'], 'id="status_select"'); ?> Then in comment_bar.php change var selects = document.getElementsByTagName('select'); var theSelect = selects.item(0); to var theSelect = document.getElementById("status_select"); and that should do it. Thanks, Stew. You're SUPER! :thumbsup: Quote
nelslynn Posted September 7, 2006 Posted September 7, 2006 Any ideas on how to get the shipping total, which I have as a percentage of order total (Percent Rate:), to work with this contribution? If I change an order in the admin, the shipping rate stays the same no mater what the order subtotal is... it should change based on order subtotal. Quote
djmonkey1 Posted September 8, 2006 Posted September 8, 2006 Thanks, Stew. You're SUPER! :thumbsup: You're welcome, and thanks! Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
djmonkey1 Posted September 8, 2006 Posted September 8, 2006 Any ideas on how to get the shipping total, which I have as a percentage of order total (Percent Rate:), to work with this contribution? If I change an order in the admin, the shipping rate stays the same no mater what the order subtotal is... it should change based on order subtotal. You can set Order Editor to do the calculations itself fairly easily; tying it to the shipping module would be a little more difficult. All your orders are charged at the same rate? Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
stuartuk Posted September 8, 2006 Posted September 8, 2006 Thank you to the author(s). This is a fantastic modification that was very much needed. Hopefully the next release of osC will include this. :thumbsup: Quote
nelslynn Posted September 8, 2006 Posted September 8, 2006 You can set Order Editor to do the calculations itself fairly easily; tying it to the shipping module would be a little more difficult. All your orders are charged at the same rate? I would want Order Editor tied into the shipping module. I'm using a sliding percentage rate based on order subtotal for shipping cost. I think this should be a standard feature for this contribution... most stores base shipping charges on order subtotal. I'll poke around and see if I can implement the shipping modules into this contribution. Thanks. Quote
djmonkey1 Posted September 8, 2006 Posted September 8, 2006 I just wanted to post a hearty "You're welcome" to all the people who have been posting thank yous recently. While I can't speak for any of the other people who have contributed to this project, I know for me at least it's great when people appreciate the work that has been done. Cheers Stew Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
djmonkey1 Posted September 8, 2006 Posted September 8, 2006 I would want Order Editor tied into the shipping module. I'm using a sliding percentage rate based on order subtotal for shipping cost. I think this should be a standard feature for this contribution... most stores base shipping charges on order subtotal. I'll poke around and see if I can implement the shipping modules into this contribution. Thanks. Good luck with that- if you come up with anything, be sure to post it here or on the contribution page. I'm sure others could benefit from it as well. Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Guest Posted September 14, 2006 Posted September 14, 2006 I just wanted to post a hearty "You're welcome" to all the people who have been posting thank yous recently. While I can't speak for any of the other people who have contributed to this project, I know for me at least it's great when people appreciate the work that has been done. Cheers Stew I would also like to say a big Tank You Stew! Your help has been invaluable. Keep up the good work! /Magnus Quote
Noy Posted September 15, 2006 Posted September 15, 2006 Hi all! I'm an Italian user of osCommerce (in italiano, "openCommercio :) ) and I've installed the optimun contrib of djmonkey1. I've also installed, in a previous time, PIvaCF_2.51, a contrib for add two other fields when a customer registers his account: "partita iva" and "codice fiscale". How to add these fields in edit order process? Thanks! Quote
djmonkey1 Posted September 15, 2006 Posted September 15, 2006 Hi all!I'm an Italian user of osCommerce (in italiano, "openCommercio :) ) and I've installed the optimun contrib of djmonkey1. I've also installed, in a previous time, PIvaCF_2.51, a contrib for add two other fields when a customer registers his account: "partita iva" and "codice fiscale". How to add these fields in edit order process? Thanks! This information is stored with every order in the 'orders' table? Quote Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread.
Noy Posted September 15, 2006 Posted September 15, 2006 This information is stored with every order in the 'orders' table? Yes, in 'billing_cf' and 'billing_piva' columns of the order's table... Both billing address than delivery address can have one. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.