Jump to content

Perfect Eye

Members
  • Content count

    134
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    David
  1. Perfect Eye

    Official PayPal IPN Support Thread

    If i use a different contribution e.g cash on delivery, it all works. I changed the code in the email confirmation area of paypal_ipn.php to pull through the email address and telephone number, and since the comments has stopped working. This is the only area of code i've tampered with. It came off of a recommendation I found in another thread: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\nemail: " .$order->customer['email_address']. "\nTelephone: ".$order->customer['telephone']."\n". tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } if(isset($_SESSION["shipdate"]))$email_order.="\n" . EMAIL_TEXT_ARRIVAL_DATE . "\n" . EMAIL_SEPARATOR . "\n" . date("l, F j, Y",$_SESSION["shipdate"]) . "\n\n"; $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\nemail: " .$order->customer['email_address']. "\nTelephone: ".$order->customer['telephone']."\n". tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); I can publish other bits if it helps.
  2. Perfect Eye

    Official PayPal IPN Support Thread

    I actually do have an ipn file, but i've never touched this - i'm not sure how it affects my issue to be honest. Does it have an impact on the comments field coming through?
  3. Perfect Eye

    Official PayPal IPN Support Thread

    hi, it was the version just before this new one was released. My checkout_process and paypal_ipn files are identical, i make sure i hit both files to be safe - it previously did work but it's decided to stop working - and i really can not put my finger on the reason why.
  4. Perfect Eye

    Official PayPal IPN Support Thread

    Thanks tkw829. Is anyone okay for me to send them the paypal_ipn.php file? The issue is that additional comments are getting ignored by admin and email - not processing with the order, and shop keeper is resorting to ringing the customer to find out what their comments were.
  5. Perfect Eye

    Additional Comments field not working

    Hi all - I have the Paypal IPN module installed. I recently edited the checkout_process.php file to add the email address and telephone number of the customer to the order confirmation email - and the additional comments box (we're using it as a field for the customer to write a message in) has stopped working completely - something may have been deleted or i'm conflicting something. It retains the contents of the box all the way up to the point where you go to paypal (e.g. you can see the text in the order summary and so on) - but the text just doesnt get added to the confirmation email, or appear in admin on the order description/invoice. It just gets forgotten upon processing the order. Then the store owner has to ring and ask what their message was...... Could anyone look at my checkout_process.php code? Which file would it be - the one found in the catalog root, or the one in the includes - modules - payment - paypal_ipn folder? any help would be most appreciated - i'm a bit desperate.
  6. Perfect Eye

    Official PayPal IPN Support Thread

    Hi all - I have the Paypal IPN module installed. I recently edited the checkout_process.php file to add the email address and telephone number of the customer to the order confirmation email - and the additional comments box (we're using it as a field for the customer to write a message in) has stopped working completely - something may have been deleted or i'm conflicting something. It retains the contents of the box all the way up to the point where you go to paypal (e.g. you can see the text in the order summary and so on) - but the text just doesnt get added to the confirmation email, or appear in admin on the order description/invoice. Then the store owner has to ring and ask what their message was...... Could anyone look at my checkout_process.php code? Which file would it be - the one found in the catalog root, or the one in the includes - modules - payment - paypal_ipn folder? any help would be most appreciated - i'm a bit desperate.
  7. Perfect Eye

    adding telephone number to order process email

    I tried changing this code: if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } to this: if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_MAIL . $order->customer['email_address'] . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . EMAIL_TEXT_PHONE . $order->customer['telephone']. "\n"; } but it didnt work. I want the order process email to show telephone and email of the customer who made the order. Is the bit I added this to only for virtual downloads? Can anyone suggest a solution? I'm pretty desperate :-)
  8. Hi all I have a customer who uses the paypal IPN module for their store. They get a copy of the order process email faxed to their shop when someone orders from their shop. Currently, it has the order description and basic details on it, but does not get the phone number on it or email address of the person making the order. If there's ever an issue, and my client wants to ring their customer they cant. What code would I add to the paypal_ipn.php file? (this over-rides the checkout_process.php file). I guess i'd add it somewhere in this lot?: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } if(isset($_SESSION["shipdate"]))$email_order.="\n" . EMAIL_TEXT_ARRIVAL_DATE . "\n" . EMAIL_SEPARATOR . "\n" . date("l, F j, Y",$_SESSION["shipdate"]) . "\n\n"; $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Cheers David
  9. I have installed the paypal IPN module and worked out how to pass the shipping date into the order screen in admin. But I dont know how to get the date to appear in the order confirmation email. Can anyone help me? The paypal_ipn file appears to overwrite the normal checkout_process page which defines what goes in the email. But if I paste what's in here into the same area on paypal_ipn, it breaks it. Any help would be great. Thanks David
  10. Perfect Eye

    PayPal IPN - Order Status NOT updating all of a sudden

    Just bumping this - i use the paypal ipn module and orders are not getting updated to processing. (i'm making my own test orders). I get the paypal payment email, and money does change hands - but i dont get the oscommerce order confirmation email and admin isnt updated. This is worrying :'(
  11. Perfect Eye

    PayPal_Shopping_Cart_IPN query

    When visiting admin and viewing the contents of the order, the Paypal message stays the same: No PayPal Transaction Information Available (xxxxxxxxxx) Even though I've personally logged in and made a live payment - which has gone through and been accepted. The entire admin area is just not acknowledging the payment of the item - so no order confirmation email is going to customer, the order status is not going to processing automatically... But i'm not sure where i've deviated off track.
  12. Hello All I recently installed the latest download of the following contribution: http://www.oscommerce.com/community/contri...l/search,paypal When I select Paypal as the payment method and do a test order I recieve no order confirmation email (the oscommerce one). The transaction goes through and I get the paypal email, the account also gets credited. One odd thing is the shopping cart does not clear when you return to the merchant website, and in the admin area the order status stays as pending. This should automatically go to processing. Can anyone shed any light on why this may be happening? I've followed the instructions to the letter, but the thing just will not work. Happy to post code or files to make it work, as it's getting a bit worrying. Many Thanks David
  13. Perfect Eye

    Official PayPal IPN Support Thread

    Dear All - I wonder if someone can help me? I installed the latest version of the Paypal IPN module found here: http://www.oscommerce.com/community/contributions,1753 (24th march, 2006) I've managed to hook the backend up so the order comes in to the admin area with all the correct information attached. But for some reason, as I'm only testing at the moment, no extra order email comes to my email address that I specify, and also the customer order confirmation email (from oscommerce) does not get received. (the paypal email gets to the customer). If anyone can help me out i'd be really greatful - i can post some code if it helps or attach pages to the thread? Not sure where to be looking for this error. I tested the email facility in oscommerce to write a message to myself - and this works. So it is sending mail on the server. But not the order confirmation items. I've had the project open 6 months now, so really want to wrap it up. But there's a few niggly problems.
  14. hi all I recently installed the seo contribution on my test server, and it works a charm. I bought hosting space (same package, same company) and copied all files/database structure across to the new hosting space. (then went into config files and changed the details appropriately, and any references to old site structure in the database). When I view the store on the new hosting space, i get ?osCsid= at the end of each link and a load of numbers. I click through to lots of different pages and it does not disappear, it stays. Which is really annoying. Is there anything I can do - or check, to fix this? the site is: www.classicalfloraldesigns.co.uk/catalog if you click on one of the categories you'll see the session stuck to the end of the link. Then clicking through and going around site, it doesnt disappear. It stays tacked on the end of the url. Any suggestions would be great. I can paste code of .htaccess or any php files - for someone to analyse?
  15. Hi there I have three postage bands available for the consumer but sometimes they just click through to the next stage of the checkout without picking the correct method for their order. (by default the free rate is selected automatically, which doesnt always apply if they pick a Saturday from the date picker, as free delivery is only for week days). Is it possible to have the three shipping methods appear but have none of them checked with a bullet point automatically - so that they then have to make a choice and pick one before clicking next? I hope this makes sense? Thanks David
×