Jump to content

gregp

Members
  • Content count

    61
  • Joined

  • Last visited

  1. gregp

    NEW! Complete Order Editing Tool!

    I've found if ajax is enabled and the comments field has more than 512 characters, the entire contents of the comments field gets dropped. I've traced it as far as the URL: http://www.yourstore.com/admin/edit_orders_ajax.php?action=update_comment&cID=COMMENT_ID_HERE&comment=COMMENT_HERE&oID=ORDER_ID_HERE Pulling the comment and order IDs from an existing order, if COMMENT_HERE has 512 characters they get saved to the database correctly. If I go to 513 characters an empty field is written to the database. I'm able to write more than 512 characters to that field through phpmyadmin and they got there in the first place when the order was placed so the issue isn't with the database. This is probably a server limitation caused by the suhosin patch but can someone rewrite this module so it doesn't use a GET process to write the information, and thereby hopefully fix this for the many people no doubt operating under this setup? Alternatively if that's NOT the problem, can someone else point me to the problem? Thanks!
  2. gregp

    NEW! Complete Order Editing Tool!

    Hi, I've got 5.0.9c installed on my shop and the only problem I find is that I have a few order total additions e.g. a surcharge for PayPal. Initially the order total all adds up correctly, but if I edit the order e.g. add another item, I then find that while the PayPal surcharge line remains visible, the amount for that doesn't get included in the recalculation of the order total. The only workaround is to add a second order total line and copy the paypal surcharge from the line above. It seems this second total DOES get included in subsequent calculations when edits are done, but why doesn't the original one? Thanks, Greg
  3. This is the support thread for contribution http://addons.oscommerce.com/info/7513 This contribution displays the quantities of each product in the products listing categories.php of the admin interface. It is a very simple modification to make and means you can see all stock in a category without having to click on each one. If you have lots of products in a category this makes it easy to see at a glance what's getting low. Here's a screenshot...
  4. Not sure I understand what's not working Lisa... I just went through your checkout procedure and everything worked up to the point I would have paid for my order within PayPal. But maybe you haven't added your changes yet... It's normal to receive that 'wait five seconds or click' message on completion of payment, a standard PayPal thing. As far as the 'code' for that message, you've got it right there, not sure what you're looking for? You can certainly change that wording if you need; the trick you MUST escape any apostrophes with a backslash, as you can see where I've put PayPal\'s. An apostrophe tells the system it's the end of the line, if you escape it it treats the following character as a literal character. Obviously leave everything as it is and just change the text between the apostrophe before Note and after procedure! Perhaps if that hasn't addressed it feel free to post back with some more details. Greg
  5. Thanks for that feedback guys, I've added a section in the instructions about the above problems.
  6. Greg,

    Thank you very much for your contribution! I can't wait to see if it solves my inventory control headaches.

    Lisa Peden

  7. Great! Yeah I guess that's a risk if the payment modules you're using have non-standard names. Glad you sorted it out. I did think about the popup box but thought this would be easier to do (for me anyway). I do know that if you don't select a delivery method and try to proceed it pops up a box so it'd just be a matter of hacking that script for this page. I think this is a bit easier to control though in that you can have whatever wording / layout / style you want rather than being restricted by what the browser throws up.
  8. Nice work JG... feel free to update the code in the repository with your modifications, particularly the code. If the code can be improved then so much the better. As you say the 'I understand' button is themed to your site, perhaps you could include that but retain the original text code in case some people want to just use a text link? Also did you find the formatting problems in v1.2? IE8 didn't play nicely with v1.0 or 1.1 but the 1.2 update fixed that for me. I like your wording too... not quite as 'pointed'! I guess I've put up with people not following more and more obvious instructions for so long now I have little patience for people who don't read the obvious! ;) Greg
  9. Perhaps before I go any further, could you tell me the problem?? :) You've said it "doesn't work" but that's a pretty broad fault description. The only thing that stands out from what's below is that it's not the whole page source so I can't see if you've included the Javascript as per the readme.
  10. Whoops my bad :(, yep it needs to go into english/images/buttons. I've updated the instructions, thanks! That line you quoted button_confirm_order is what needs to be replaced. Here's how my code looks: <td width="10"> </td> <td align="right" class="main"> <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } ?> <style> #warningdiv {float:right; position:relative;} #confirmbutton {position:absolute; top:0; right:0; z-index:10;} #hideimage {position: absolute; top: 0; right: 0; z-index:20; border:2px solid #900; padding: 5px; background-color: #fff; color: #900; width: 500px;} .stopimage {float: right;} .stopimage img {border: none;} </style> <div id="warningdiv"> <div id="confirmbutton"> <?php if ($GLOBALS['payment'] == 'paypal') { echo tep_image_submit('button_pay_now.gif', IMAGE_BUTTON_PAY_NOW) . '</form></div>' . "\n"; print '<div id="hideimage"><span class="stopimage"><img src="images/stop.gif" /></span>' . TEXT_PAYPAL_WARNING . '<br /><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYPAL_WARNING_CONFIRM . '</a></div>'; } elseif ($GLOBALS['payment'] == 'paymate') { echo tep_image_submit('button_pay_now.gif', IMAGE_BUTTON_PAY_NOW) . '</form></div>' . "\n"; print '<div id="hideimage"><span class="stopimage"><img src="images/stop.gif" /></span>' . TEXT_PAYMATE_WARNING . '<br /><a href="#" onClick="showDiv(\'hideimage\');return false;">'. TEXT_PAYMATE_WARNING_CONFIRM . '</a></div>'; } else {echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form></div>' . "\n";} ?> </td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Not sure if I've entirely understood your question but hopefully that's assisted a bit? If not please advise. Greg
  11. Hi Craig, In the readme I say to put button_pay_now.gif in /catalog/includes/languages/english/buttons/ but obviously if you use a different default images directory (or language) it would need to go there. You don't need to upload the .png version. Is that what you meant? When you say it's not working, what exactly is happening? The only requirement is that Javascript is enabled which is pretty safe to assume these days. Greg
  12. Updated to v1.2 * fixed bug in IE where overlay would sit to the left of the 'Confirm Order' button * rewrote css into ids rather than classes * included code to change the 'Confirm Order' button to a 'Pay Now' button when using PayPal or PayMate, which more accurately indicates what clicking the button will actually do. Note you may need to redesign this button to suit your site's look and feel, this is just the one I use, but I have included a layered .png file which should allow you to do this. I used Adobe Fireworks for this but any image program like Photoshop or The Gimp should be able to do something similar.
  13. Incidentally if the PayPal default text 'Return to <vendor>' annoys you as much as it does me for being utterly undescriptive of how important it is to click it, you can customise it to say whatever you want. In /catalog/includes/modules/payment/paypal.php, around line 90 where $process_button_string is being defined, add the following: tep_draw_hidden_field('cbt', 'Complete your order with YOURSTORENAME) . Or whatever you want to say. so the code snippet looks like this: tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('cbt', 'Complete your order with YOURSTORENAME') . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . Makes far more sense than just 'Return to YOURSTORENAME' as it more accurately describes the importance of the button.
  14. This thread is for discussion on the module of the same title which can be found at http://addons.oscommerce.com/info/7326 This is not the only contribution of this nature but I think it deals with the problem more effectively than some others. Many people seem to have a problem with customers that pay with PayPal (and perhaps other payment modules) not returning to their website. When their customers do this, the store owner receives payment, but does not receive the order information. For a long time I've had an animated .gif on the checkout_confirmation.php page which flashes at the users but we'd still get some people who wouldn't read it. So I've taken it one step further and made a div layer with a warning message that actually sits ABOVE the Confirm Order button and disappears when clicked - so they can't actually get to the 'Confirm Order' button unless they've read the message! It might not stop everyone but at least you've got a mighty big stick to take to those customers who still don't follow the instructions! Installation is straightforward - an image goes into /images/, two lines of text into /catalog/includes/languages/english/checkout_confirmation.php language file, and finally two blocks of code go into /checkout_confirmation.php I'm no great coding expert so I'd welcome anyone to go through my work and revise it as they see fit. Hope it helps someone!
×