Jump to content

BrockleyJohn

♥Ambassador
  • Content count

    1,300
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by BrockleyJohn

  1. BrockleyJohn

    NEW! Complete Order Editing Tool!

    @ArtcoInc I guess you're talking about the buttons on the selected order in the list view. IIRC it just overrides the link of the first button - or the first yellow one, or something along those lines. There's a config setting for this which you can turn off instead of clobbering the hook. If you want it to pick a different button we'd need to work out a different jquery selector - if you copy the source code of the buttons section from your browser I can figure what it could be. I believe order editor does nothing with customers, addresses and so on, it simply manipulates the fields on an existing order and allows you to change the order products and totals. The place to do what you're asking would be the Order Maker addon which must be where the default address is getting pulled into all three when the order is created.
  2. BrockleyJohn

    Payments by credit card stopped working on Friday

    What paypal module are you using? If standard: Check the paypal log via your admin menus and confirm if you are getting notifications or not - look for _notify-validate [IPN] entries. Do you see the balance displayed on your admin dashboard? That would tell us the app is talking to paypal ok. There will be corresponding successful GetBalance log entries. In your paypal account, go to the settings and check them. This has all moved again. It's now on the drop down from your name, then account settings; check Instant Payment Notifications are turned on. If they are, from that page click through to the IPN History page, check there are entries corresponding to the orders. Try resending one of them.
  3. BrockleyJohn

    When is /ext/.../standard_ipn used?

    In case you don't know, IPN (instant payment notification) is a feature so paypal automatically contacts your site to tell it about things that happen with payments in paypal - like it's been paid, if it was an echeque that it's cleared, it's been refunded and so on. It's a security feature making it harder for hackers to steal from you by faking paymennts. If you also run an ebay account and you look at your paypal logs in osc you'll see that it tells your site about those payments too! All of these IPNs trigger the ipn listener in /ext/... if the listener can find a related order it will write a history record that you can see in admin. Now, sometimes when people pay with paypal they don't come back to your site - maybe they don't wait long enough after hitting pay and rush back to looking at porn or their connection drops or whatever. So if the ipn listener gets notified that the payment is there and the order is in the Preparing status, it will go ahead and complete the order, do the stock adjustments, send the emails and so on. If the order is already in the later status (eg Pending), it will just log the history record. For the people that do come back to your site and get there before the IPN, when they go through checkout_process that executes the code in the paypal_standard module and changes the order status, stock levels and sends out emails. So... both files handle setting an order to paid, the stock and so on - but for any given order it was one or the other. If you want to know which it was, you can tell from the history records (if IPN handled it the change of status history is nearly simultaneous with the IPN email). The IPN listener file always handles processing the IPN notification but it may only write a history if the other got there first The standard module always handles the user going through checkout_process to checkout_success but it may not do anything for the order if the other got there first Both routes need to work properly and if you're changing one for some reason you also need to change the other.
  4. BrockleyJohn

    TLS1.2 again

    It's a bit of a strange one, this and I could do with some bright ideas to try out. As we know, everywhere including Paypal is updating their security protocols. For Paypal the sandbox endpoints have already been updated and the live ones will cut off support for TLS below 1.2 in a few months. The latest version of the app has a very handy button for testing against tlstest.paypal.com which will tell you if the server is running the necessary protocol versions. On the site I'm working with, the tests run fine (see image) and yet it fails to fetch the balance from PP sandbox with the error error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure which indicates that the TLS version is below 1.2. The PP setting is to force TLS1.2 (even though the test indicates that the default setting should work) and I have checked that in the balance call the curl ssl version is getting set to 6 (force TLS1.2). Full debug of call: "rpcStatus":-1, "rpcResponse":{ "response":false, "ssl version":6, "error":"error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure", "info":{ "url":"https:\/\/api-3t.sandbox.paypal.com\/nvp", "content_type":null, "http_code":0, "header_size":0, "request_size":0, "filetime":-1, "ssl_verify_result":0, "redirect_count":0, "total_time":0.07172, "namelookup_time":0.014239, "connect_time":0.07175, "pretransfer_time":0, "size_upload":0, "size_download":0, "speed_download":0, "speed_upload":0, "download_content_length":-1, "upload_content_length":-1, "starttransfer_time":0, "redirect_time":0, "certinfo":[ ], "redirect_url":"" } } } So now ... ???
  5. BrockleyJohn

    TLS1.2 again

    That doesn't tell you anything. A working paypal installation also displays those errors. That is because paypal has withdrawn the test servers it is trying to contact so the tests fail for every site.
  6. BrockleyJohn

    NEW! Complete Order Editing Tool!

    If you view the source of the page where the script has been included, it looks likely that there is something extra in the string coming out of the draw button function.
  7. BrockleyJohn

    NEW! Complete Order Editing Tool!

    It comes from a file you're unlikely to have changed: catalog/includes/modules/hooks/admin/orders_edit_order.php What version of the shop are you running? It occurs to me I've not tested the latest version I posted to the thread on bs3 shops.
  8. BrockleyJohn

    [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

    @radhavallabh - whatever solution approach you arrived at when you raised this four years ago should still work. If you struggle to get it working on this version, create your own thread to get help on it.
  9. BrockleyJohn

    NEW! Complete Order Editing Tool!

    @radhavallabh it needs a lot of changes to get rid of warnings and notices - you should turn them off by changing admin/includes/application_top.php error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED); It's my hope to get a lot more of them eliminated by the next release which will be to go with 1.0.6.0
  10. BrockleyJohn

    NEW! Complete Order Editing Tool!

    That might work now but there's a good chance you'll get buttons popping up all over the place at some point in the future - it will add them to the start of every html element with the class align-self-center
  11. BrockleyJohn

    NEW! Complete Order Editing Tool!

    Here is a version of includes/modules/hooks/admin/orders_edit_order.php that works on 1.0.5.9 as well, but you are also going to have to deal with includes/database.php not being there - either add an include into edit_orders.php and edit_orders_ajax.php or go through and edit all the sql statements. orders_edit_order.php
  12. @greasemonkey - are you running moneris on phoenix?
  13. I recall someone having similar issues when customers double-click on the checkout confirmation button - see if you can reproduce by doing that. See if you can understand where the additional orders are being created - what status are the pairs of orders, how do the times compare, does moneris have a callback or just redirect to checkout_process on success...
  14. This suggests that perhaps the umlauted character is getting garbled on the way to the database. If the database is encoded utf-8 and the web page is also, then it's possible that the mysql server daemon is not defaulting to utf-8 for everything You could try running the query SET NAMES utf8 before the search query. You might get other problems though. If this theory were correct then you would have to be running on a new server but against a database that was originally populated somewhere else as I would expect data saved on this server to be garbled too. If it's under your control you might need to change the server's mysql startup configuration.
  15. No dissent from me on that
  16. It would - if you want them always to agree you probably need all the order total calculation outputs in osc to 2 dp not just the discount code one.
  17. BrockleyJohn

    NEW! Complete Order Editing Tool!

    @SCH_001 This appears to be a bug at all versions - perhaps it never worked! I'll have a look into it.
  18. BrockleyJohn

    NEW! Complete Order Editing Tool!

    @SCH_001 How many tax order total modules have you got enabled? The total tax is consistent it's just split into two lines - though the one that was $10 to start with changed name. Have those two products got the same tax class?
  19. Perhaps this is just the way you've expressed it but this doesn't sound entirely logical. If the discounted lines are truncated to 2 dp then don't they add up the same as they do online? Or is the VAT coming out wrongly? QB used to have a choice of calculating VAT line by line or for the whole order (as either way is ok with HMRC) and it may be that changing that would help if it's still there.
  20. BrockleyJohn

    PayPal App for osCommerce Online Merchant

    What could be done is to chop them shorter before sending to Paypal so they don't cause an error in the interface.
  21. BrockleyJohn

    NEW! Complete Order Editing Tool!

    You should be using the shipping modules in catalog. If you are not, you are using a different addon!
  22. BrockleyJohn

    NEW! Complete Order Editing Tool!

    If you need to change ot_shipping.php - I don't think that's part of the addon. Check if you can reproduce on the shop checkout and if so raise a phoenix issue.
  23. You put it in your google products feed (via adwords or merchant center)
  24. BrockleyJohn

    NEW! Complete Order Editing Tool!

    These notices are telling you that it cannot calculate the shipping order total because it can't find a match between the shipping quote stored in the session variable and the shipping classes stored in the global variable. The delivered code, fixed as suggested, doesn't do this. If you are running it in a test store you can put some debugging into ot_shipping so you can see what's not properly set. Check what $module gets set to in line 48 and if it doesn't look right, check the value of $_SESSION['shipping']['id']
×