Jump to content

sanctuarybookshop

Members
  • Content count

    42
  • Joined

  • Last visited

Posts posted by sanctuarybookshop


  1. Now I've got the HTML invoice working with paypal standard, i'd like to share the coding I've used to make it work, how do I go about making it available to the community?

     

    As I'm new to PHP, I'm pretty sure that the code can be improved and made more efficient by somebody a little more proficient than myself, but it works and that is what i set out to achieve!!!!

     

    Paul


  2. I've been working on getting email invoices working with paypal standard too, I'm using fancier-invoice-packing-slip-for-231 module ( http://addons.oscommerce.com/info/8362 )

     

    The email is sent but on the invoice for paying via paypal the order number isn't appearing, yet it does on the cash on delivery invoice.

    Both use exactly the same code to generate the invoice.
    The code that sends the email is (lines 106-111 in email_invoice.php) :-
     

        $ei_message->build_message();
        $ei_message->send($order2->customer['name'], $order2->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Your Sanctuary Books Order # ' . $insert_id);
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
           
        $ei_message->send('Orders','myemail@myemail.com', STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'New Order Received # ' . ' ' . $insert_id);

    By changing the $insert_id to '123456'  the subject line shows the order number as 123456, hence the variable $insert_id should be the order number, but isn't been assigned the order number for some reason.

    Any ideas or suggestions would be welcome,

    Paul

     


  3. I've been working on enabling the paypal standard module to send HTML invoice via email, the email is sent but on the invoice for paying via paypal the order number isn't appearing, yet it does on the cash on delivery invoice.

    Both use exactly the same code to generate the invoice.
    The code that sends the email is (lines 106-111 in email_invoice.php) :-
     

        $ei_message->build_message();
        $ei_message->send($order2->customer['name'], $order2->customer['email_address'], STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'Your Sanctuary Books Order # ' . $insert_id);
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
           
        $ei_message->send('Orders','myemail@myemail.com', STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'New Order Received # ' . ' ' . $insert_id);

    By changing the $insert_id to '123456'  the subject line shows the order number as 123456, hence the variable $insert_id should be the order number, but isn't been assigned the order number for some reason.

    Any ideas or suggestions would be welcome,

    Paul

×