Jump to content

PandA.nl

Members
  • Content count

    312
  • Joined

  • Last visited

Posts posted by PandA.nl


  1. Installed it, no errors but when I activate it, it says everything ok but I don't see the file in the system_backup folder.

    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.


  2. 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  )


  3. Warning: main(BATCH_PRINT_INCbatch_print_header.php): failed to open stream: No such file or directory in /homepages/7/d114718265/htdocs/catalog/admin/includes/application_top.php on line 209

     

    Fatal error: main(): Failed opening required 'BATCH_PRINT_INCbatch_print_header.php' (include_path='.:/usr/local/lib/php') in /homepages/7/d114718265/htdocs/catalog/admin/includes/application_top.php on line 209

    :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?)


  4. Hi gregy,

    when you finished your TODO

    then we have everything  :thumbsup:

    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


  5. Hi David!

    Sounds interesting! 

     

    Have you thought of integrating it with Chemo's

    Quick Ship Contribuition that  select's orders and updates the order status?

    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: )


  6. 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.


  7. Could you post this solution, please?

     

    Thank you in advance.

     

    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


  8. 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.


  9. Is the full cart thing released and working? If so I'll bathe the feet of the person that sends me the mod and the guy who wrote it! Us sad case stats watches need it badly! :)

    :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.


  10. 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 :)


  11. Martin,

     

    That's a good idea.  I'll look into it.

     

    ed

     

    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?


  12. The "error" Paypal is giving on the new mod is that the address (of the buyer) is not verified, that's why the "Accept/Deny" options are showing up.

    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.

  13. Does this mean that I will have to accept or deny every payment made?  Isn't the whole point of IPN not to have to do that?

    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.


  14. Easy, for instance in faq.php

    ......

    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)


  15. The account option which would allow customers to use their credit cards and then optionally sign up for paypal is NOT AVAILABLE IN CANADA

    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?


  16. remove the <BASE HREF statement which is in every page.
    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

×