Jump to content

keithwilliams

Members
  • Content count

    95
  • Joined

  • Last visited

Profile Information

  1. keithwilliams

    [Contribution] U HTML Emails

    Hiya Jim, Many thanks for "your thoughts" - they're very much appreciated. I always backup everything before I make any changes - I'm sure my php knowledge is far less than yours! With the paypal_standard.php file in it's original form, the customer receives an order confirmation email & I get a copy, but in plain text (very boring!) I'll go play with your ideas and let you know what happens Kind Regards Keith
  2. keithwilliams

    [Contribution] U HTML Emails

    Hiya Jim, Thanks for getting back to me. What I did was to copy the code from earlier in this thread (on pg2)... // EOF content type fix by AlexStudio// $order variables have been changed from checkout_process to work with the variables from the function query () instead of cart () in the order class//--- Beginning of addition: Ultimate HTML Emails ---//if (EMAIL_USE_HTML == 'true') { require(DIR_WS_MODULES . 'UHtmlEmails/checkout_process_'. ULTIMATE_HTML_EMAIL_LAYOUT .'.php'); $email_order = $html_email;}else{//Send text email//--- End of addition: Ultimate HTML Emails ---// $order = new order($insert_id); ... and inserted it where I think the email generation starts in paypal_standard.php (from RC2a)... //------insert customer choosen option eof ---- $total_weight += ($order->products[$i]['qty'] * $order->products[$i]['weight']); $total_tax += tep_calculate_tax($total_products_price, $products_tax) * $order->products[$i]['qty']; $total_cost += $total_products_price; $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; } // 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"; } $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); } // load the after_process function from the payment modules $this->after_process(); $cart->reset(true); // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); So from line 501 // lets start with the email confirmation to line 539 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); was deleted and replaced with the "Beginning of addition: Ultimate HTML Emails" code at the top. I assumed this would redirect the email generation to Ultimate HTML, but no email was sent and the errors appeared when returning from paypal. I'm not able to write any of my own code or anything more than very basic html, but have a logical approach and am good at copying & pasting other experts code! (and yes - I backup before I do anything!) So, any help & pointers you can give me would be greatly appreciated Kind Regards Keith
  3. keithwilliams

    [Contribution] U HTML Emails

    Just when I thought all was well... Seems I have the same problem as others in this thread where I get plain text emails when paying by PayPal. I'm using the version of PayPal Standard as supplied with osCommerce RC2a Tried the fix posted earlier in this thread: //--- Beginning of addition: Ultimate HTML Emails ---// if (EMAIL_USE_HTML == 'true') { require(DIR_WS_MODULES . 'UHtmlEmails/checkout_process_'. ULTIMATE_HTML_EMAIL_LAYOUT .'.php'); $email_order = $html_email;}else //Send text email //--- End of addition: Ultimate HTML Emails ---// but get errors when returning from Paypal: Warning: paypal_standard::require(includes/modules/UHtmlEmails/checkout_process_Forest Green.php) [function.paypal-standard-require]: failed to open stream: No such file or directory in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504 Warning: paypal_standard::require(includes/modules/UHtmlEmails/checkout_process_Forest Green.php) [function.paypal-standard-require]: failed to open stream: No such file or directory in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504 Fatal error: paypal_standard::require() [function.require]: Failed opening required 'includes/modules/UHtmlEmails/checkout_process_Forest Green.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/xxxx/includes/modules/payment/paypal_standard.php on line 504 The HTML emails look so good I'd really like to use them so i was wondering if anybody has got this working with the PayPal Standard module included with RC2a? If anyone has, please could you let me know how it's done? (be gentle, I'm a coding dummy!) Many Thanks Keith
  4. keithwilliams

    [Contribution] U HTML Emails

    Hiya Anton, Many thanks for your reply. Used your bit of code and it's perfect - just what I wanted! Kind Regards Keith
  5. keithwilliams

    [Contribution] U HTML Emails

    Hiya, Sorry to trouble you with what must be an easy addition for most, but with me being a complete dunce, I just can't quite work it out! What I'd like is to add the customers email address & telephone at the bottom, next to the address details. I've edited the forest green 'checkout_process.php file and managed to add another column with a title, but can't see how to insert the email & telephone details. I've pasted the changes I've made below in the hope you could help me out??? Many thanks, Keith $html_email .='<table style="font-size:14px; font-family:\'times\';" border="0" cellpadding="3" cellspacing="2" bgcolor=white> <tr style="background-color:#87A44C; color:#FFFFFF; font-weight:bold;">'; if ($order->content_type != 'virtual') { $html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_DELIVERY_ADDRESS .'</font></td>'; } $html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_BILLING_ADDRESS .'</font></td>'; $html_email .= '<td width="160"><font face="Times New Roman, Times, serif" style="font-size:14px;">'. UHE_TEXT_EMAIL_TELEPHONE .'</font></td> </tr> <tr style="background-color:#DDDDDD;">'; if ($order->content_type != 'virtual') { $html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $sendto, 0, '', '<br />') .'</font></td>'; } $html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $billto, 0, '', '<br />') .'</font></td>'; $html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $email_subject, 0, '', '<br />') .'</font></td>'; $html_email .= '<td><font face="Times New Roman, Times, serif" style="font-size:14px;">'. tep_address_label($customer_id, $telephone, 0, '', '<br />') .'</font></td> </tr> </table> ';
  6. keithwilliams

    Is PayPal Website Payments Standard Secure?

    Hiya all, I'm using the latest version of osc and the included version of PayPal Website Payments Standard. I've hunted through the forums but can't find the info I'm looking for, so hopefully you guys can help! I've set it up ok and it seems to work fine. However, I'm concerned as to how secure it is? The fields: Your Private Key, Your Public Certificate, PayPals Public Certificate, Your PayPal Public Certificate ID and Working Directory are blank. If I understand correctly, If I've got ssl enabled on my site, then customer details entered will be encrypted, and at Paypal customers will be covered by Paypal's ssl. But what about when the data is sent from my website to paypal? Is this secure? Or do I need to setup the fields that are currently blank to secure the data when sent between my website & paypal? If not, then what are these fields for? Seems strange to have these fields if they're not needed. Also, as a side question, am I correct in saying that the latest version has the functionality of PayPal IPN included? Many thanks for your help, Kind Regards, Keith.
  7. keithwilliams

    Paypal Website Payments Standard Order Total Prob

    PROBLEM SORTED! It was down to 'postage calculations' in my PayPal profile overriding those sent by osCommerce. Works fine now (phew!)
  8. keithwilliams

    Paypal Website Payments Standard Order Total Prob

    Just a quick update - still doesn't add delivery cost if I change shipping method (from zones to flat rate) and if I go a bit further at paypal and enter payment details then continue, it actually show the shipping cost as £0.00 ???
  9. keithwilliams

    Paypal Website Payments Standard Order Total Prob

    Thanks for your reply In admin > modules > order total i've got: Shipping = 2 Sub-Total = 1 Tax = 3 Total = 4 Does that look ok or should they be something else?
  10. Hiya All, Hope you can help. I'm using osCommerce v2.2 RC2a installed on my webspace using Fantastico. I've installed the paypal website payments standard that came with the installation. When I tried it out, clicking 'confirm order' took me to the paypal page to pay/login but the amount to pay didn't include the shipping cost. I've hunted through the settings for the module but can't see anything that might fix it, so i'd be very grateful for any help! Kind Regards Keith
  11. keithwilliams

    Recommended contributions

    Hiya All, I'm a bit of an osCommerce newbie and an feeling a little overwhelmed by the sheer number of contributions available! So, i have a hugely general & subjective question - but here goes. I'm looking to setup my own shop, would like to keep things fairly simple with design, want to make buying easy for visitors, intend to use PayPal for payments and have the example install of osCommerce v2.2 RC2a installed on my webspace using Fantastico. So, with the above in mind, what contributions would YOU use if it were YOUR shop??? Any help or suggestions would be greatly appreciated. Kind Regards, Keith.
  12. keithwilliams

    Official PayPal IPN Support Thread

    Hiya Guys, Hope this is in the right thread... I have just installed Paypal IPN 2.3.3, and my osCommerce version is osCommerce 2.2 rc2a The only other contribution I've installed is Ultimate SEO URLs v2.2.2 (which worked ok). I installed the Paypal IPN contribution and now when clicking any link to an item in my catalog I get a 404 error - page not found. Other links work OK (privacy policy, terms & conditions, reviews), just seems to be the product pages. Any ideas you may have as to how to fix this would be much appreciated. My site is only in it's early stages and I'm a php coding dummy so please be gentle with me! Kind Regards, Keith.
×