Jump to content

PandA.nl

Members
  • Content count

    312
  • Joined

  • Last visited

Everything posted by PandA.nl

  1. PandA.nl

    Official PayPal IPN Support Thread

    newer (or "updated") isn't always better, try the first version ("30 Nov 2004 - osCommerce PayPal IPN Module v1.0 For 2.2MS2"), it should work just fine.
  2. PandA.nl

    Official PayPal IPN Support Thread

    This one indeed seems messed up a bit, I would not use it! But the older version(s) work just fine, using it on a live shop, no errors at all.
  3. PandA.nl

    OSC 2.2MS2 System Backup

    I experienced the same with several other compression scripts. If something goes wrong with the compression/script (the compression script itself isn't found? or there is no permission to execute one of the used commands? or??), no error is printed. The script says ok, but there's no file. Haven't tried the contribution myself yet, sounds very interesting though! Hope to try soon.
  4. PandA.nl

    [Contribution] Admin Notes

    Hi Scott, thank you for this great contribution!! Noticed one tiny typo (line 405 admin/admin_notes.php): <td class="dataTableContent"><?php echo $sInfo->status . ': ' . $status_desc; ?></td> should be: <td class="dataTableContent"><?php echo $sInfo->status . ': ' . $status_desc; ?></td> (the ; is missing after the )
  5. :huh: 1) radders is right of course 2) Isn't there a support thread for the contribution you're asking about? I hoped we could reserve this one for the batch-invoice-printing contribution. (or should I setup a seperate support thread after all?)
  6. Ok, great. Appearantly no big "just before uploading" errors then. I wish I had done this before, it saves me so much time, and boring clicks :)
  7. Hi gregy, I had some spare time today and I decided to give it a go. And guess what? It already works B) So now, using version 1.1, it's also possible to (un)select individual invoices if needed! (the basic selection is done by order status using your regular orders page). At the moment the selectboxes are added as a list below the orders table, maybe the selectboxes will be moved to the orders table itself someday. But the priority for this is quite low to me, because I won't use the individual selection myself that often anyway. same download location for batch printing 1.1: http://www.oscommerce.com/community/contributions,2735
  8. thanks for the feedback, I hope to find some time (or even better someone else's :) ) for the checkboxes soon
  9. Hi David! No, I didn't even know about this contribution until now. It should be very easy to integrate I think, because my little contribution is just a couple of lines of simple coding. The printing page accepts an array of ordernumbers (and the filename to pass it to, currently invoice or packing_slip) and then simply creates one frame for each invoice (so actually it's just a list of links to invoice.php). That's all. Batch status updating isn't usefull for me at the moment, so I don't think I will integrate it, but if you or anyone else is interested please use the code/idea in whatever way you like :) (but maybe you better hurry, or else it may be patented by someone soon :rolleyes: )
  10. Hi Gregor, I decided to make it a real contribution after all. See: http://www.oscommerce.com/community/contributions,2735 I remember now, I added some CSS styles to my orders.php to make the menu look better, but I forgot to include any styles to the contrib so it won't look vey nice as it is. Please tell me how it works out for you, my orders.php is very heavyly modded, so I might have made mistakes in the description.
  11. PandA.nl

    Official PayPal IPN Support Thread

    Hi bmhoma, here are the changes I made. You should remove the original module first, and re?nstal after you made the changes. It added as an option to the admin (default set to true), so it's very easy to switch back to the original behaviour of the IPN module if needed. The changes below describe how to modify the osCommerce PayPal IPN Module v1.0 For 2.2MS2 so that the total amount including tax is transferred to PayPal as discussed earlyer at this support thread (http://forums.oscommerce.com/index.php?showtopic=124298&st=0#). I'm using it myself and it works fine, but please test carefully before using on a live shop! #STEP 1: change line (320): $parameters['tax'] = number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); to: if(MOVE_TAX_TO_TOTAL_AMOUNT == 'True') { // PandA.nl move tax to total amount $parameters['tax'] = 0; } else { // default $parameters['tax'] = number_format($order->info['tax'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } #STEP 2: change (line 324): $parameters['amount'] = number_format(($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); to: if(MOVE_TAX_TO_TOTAL_AMOUNT == 'True') { // PandA.nl move tax to total amount $parameters['amount'] = number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } else { // default $parameters['amount'] = number_format(($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency)); } #STEP 3: after (line 576): tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable PayPal IPN Module', 'MODULE_PAYMENT_PAYPAL_IPN_STATUS', 'False', 'Do you want to accept PayPal IPN payments?', '6', '3', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // comment: adding inc tax key to the configuration table, if set to false the module should operate as the original again add // bof PandA.nl move tax to total amount tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Move tax to total amount', 'MOVE_TAX_TO_TOTAL_AMOUNT', 'True', 'Do you want to move the tax to the total amount? If true PayPal will allways show the total amount including tax. (needs Aggregate i.s.o. Per Item to function)', '6', '4', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // eof PandA.nl move tax to total amount #STEP 4: //comment: this is only a change to the default configuration settings, use 'Aggregate' i.s.o. 'Per Item' by default (inc tax does not seem to work well per item) change (line 583): tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Type', 'MODULE_PAYMENT_PAYPAL_IPN_TRANSACTION_TYPE', 'Per Item', 'Send individual items to PayPal or aggregate all as one total item?', '6', '6', 'tep_cfg_select_option(array(\'Per Item\',\'Aggregate\'), ', now())"); to: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Type', 'MODULE_PAYMENT_PAYPAL_IPN_TRANSACTION_TYPE', 'Aggregate', 'Send individual items to PayPal or aggregate all as one total item?', '6', '6', 'tep_cfg_select_option(array(\'Per Item\',\'Aggregate\'), ', now())"); #STEP 5: change line (601/603): function keys() { return array('MODULE_PAYMENT_PAYPAL_IPN_STATUS', 'MODULE_PAYMENT_PAYPAL_IPN_ID', 'MODULE_PAYMENT_PAYPAL_IPN_CURRENCY', 'MODULE_PAYMENT_PAYPAL_IPN_ZONE', 'MODULE_PAYMENT_PAYPAL_IPN_PREPARE_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_IPN_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_IPN_GATEWAY_SERVER', 'MODULE_PAYMENT_PAYPAL_IPN_TRANSACTION_TYPE', 'MODULE_PAYMENT_PAYPAL_IPN_PAGE_STYLE', 'MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL', 'MODULE_PAYMENT_PAYPAL_IPN_SORT_ORDER', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_STATUS', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PRIVATE_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PUBLIC_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PAYPAL_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_CERT_ID', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_OPENSSL'); } to: function keys() { // PandA.nl move tax to total amount added: ", 'MOVE_TAX_TO_TOTAL_AMOUNT'" return array('MODULE_PAYMENT_PAYPAL_IPN_STATUS', 'MOVE_TAX_TO_TOTAL_AMOUNT', 'MODULE_PAYMENT_PAYPAL_IPN_ID', 'MODULE_PAYMENT_PAYPAL_IPN_CURRENCY', 'MODULE_PAYMENT_PAYPAL_IPN_ZONE', 'MODULE_PAYMENT_PAYPAL_IPN_PREPARE_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_IPN_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_IPN_GATEWAY_SERVER', 'MODULE_PAYMENT_PAYPAL_IPN_TRANSACTION_TYPE', 'MODULE_PAYMENT_PAYPAL_IPN_PAGE_STYLE', 'MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL', 'MODULE_PAYMENT_PAYPAL_IPN_SORT_ORDER', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_STATUS', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PRIVATE_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PUBLIC_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_PAYPAL_KEY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_CERT_ID', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_WORKING_DIRECTORY', 'MODULE_PAYMENT_PAYPAL_IPN_EWP_OPENSSL'); } hth
  12. You can (quite easyly) create a page with all invoices to be printed inside frames. It's just a couple of lines to add to orders.php and a very simple frames page. That way you can print all orders you see at orders.php (so it's possible to select by status for example). To make it possible to select each invoice separately would take a little more, but shouldn't be to difficult either. I'm currently using the simple (no individual selection, only groups) version myself, I'll post the code if you like. Opera, Mozilla and even IE, all support to print all frames on separate pages.
  13. PandA.nl

    Who's Online Enhancement 1.4

    About the sessions: I remember I've changed something to the original code concering sessions to make it work with my own cart, but I didn't really understand this part so..... I will try to take another look at it
  14. PandA.nl

    Who's Online Enhancement 1.4

    Great job medvid! (I think, after looking at the including screenshot, didn't install yet)
  15. PandA.nl

    Who's Online Enhancement 1.4

    :D I was hoping Ed would like to update his version himself with this feature. If not, I might do it, the problem is that it's all so time consuming, and I need to finish some other things first. Hacking some code into your own shop is so much easyer and faster to do than creating a contrib out of it.
  16. PandA.nl

    Official PayPal IPN Support Thread

    I noticed E-Bay visited the ipn.php file inside the ext directory today ( /ext/modules/payment/paypal_ipn/ipn.php ). I suppose it happened because the IPN info was transferred at that moment (and Ebay and PayPal are the same company)? It seemed a bit strange to me, but I suppose this is normal behaviour, just checking to be sure :)
  17. PandA.nl

    Who's Online Enhancement 1.4

    Yeah, but I would like to know why the guy with the cart didn't complete his order? :P But it would be nice if it would be added to the Who's Online Enhancement of course.
  18. PandA.nl

    Who's Online Enhancement 1.4

    temporary screenshot:
  19. PandA.nl

    Who's Online Enhancement 1.4

    Hi medvid and Sheepish, I've copied and pasted and editted some code yesterday and it does exactly what Sheepish just asked. It shows Carts and non Carts and Active and non Active, using red and green "lights". It also detects for each entry if it has a session assigned, if not it's probably a spider. If you like it, I will mail you the code medvid, or maybe a screenshot first?
  20. PandA.nl

    Official PayPal IPN Support Thread

    Hopefully the experts can help you with this then. The only thing that I can add that I'm also using this module (osCommerce PayPal IPN Module v1.0 For 2.2MS2) and also received several payments from unverfied customers, but I don't have to accept or deny any of the payments.
  21. PandA.nl

    Official PayPal IPN Support Thread

    I'm no PayPal expert, but don't think this has anything to do with the PayPal IPN module, or even IPN in general. Do you have a verified PayPal account? If not, that might the cause that you have to "Accept" or "Deny" the payments.
  22. PandA.nl

    Named anchor tags don't work?

    Hi John, sorry but the solution you propose here has already been mentioned at the top of this thread, but it does not work as we would like, because it makes the whole page reload!While one of the nice things about those anchors is, that it's not needed to reload the page. (Which saves me some bandwith and the customers some time)
  23. PandA.nl

    PayPal sign up optional now. Any new Modules?

    Just found out, the hard way :( ,that it's the same in the Netherlands (customers trying to pay with their creditcard but quit before finishing, because they were dissapointed: after signing up at the shop, they had to start all over again and create an account at PayPal) Hopefully the optional signup feature will be introduced for non US citizens too someday. Would anybody know of any PayPal alike alternative, that do offer cc payments without the need for the buyer to create an account?
  24. PandA.nl

    Named anchor tags don't work?

    Hmm.. stil not sure what the BASE HREF is good for, never used it before I entered the oscommerce world, but it might be there for a good reason. You can also work around this problem by using this: <a href="<?php echo $_SERVER['REQUEST_URI']; ?>#top">Top</a> Works like a normal anchor tag (so without reloading the whole page), the session is retained, and you can keep the BASE HREF. @Jeremy: using the tep_href the whole page is reloaded after every click, or isn't it? @Amanda: You remind me, I have got to work on my languages switch :D
  25. PandA.nl

    Paypal ipn

    I think you need to go to this thread (unless you're talking about another PaPal IPN module): http://forums.oscommerce.com/index.php?showtopic=124298&st=0 B.t.w. if you're having trouble to pass the total amount inc tax, that seems to be normal PayPal behaviour (shows tax after login only). But there is a possible workaround. Anyhow, it's better to continue at the official support thread
×