Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jorgemirat

Archived
  • Posts

    43
  • Joined

  • Last visited

Profile Information

  • Real Name
    Jorge Mirat

jorgemirat's Achievements

  1. Regarding the spaces, please check the posts above. It is a known issue but there is a workaround. Regarding the image, you need to put the fully qualified URL, that is, the URL that you will put in a browser to display your logo. Take into account that when the logo is displayed in the email it needs to access your site from outside your server.
  2. I think that all what you need to do is to create the files to generate the actual emails to send. There are some examples in the contribution and an explanation of how to do it. For example one of the files that you are missing is the one mentioned on the error message: /home/inmy/public_html/admin//includes/languages/english/inprocess.php That is the file to generate the email in english when an order is changed to status "In Process"... you get the idea? Jorge.
  3. If what you ask is how to use the variable $products_ordered in inprocess.php so its content is displayed on the email, then the only thing that you have to do is to add wherever you want the content of the variable to appear the following code within inprocess.php : <?php echo $products_ordered ?> That's all (if that was your question).
  4. Yes, the blanks is an issue in my contry. I have to get to solve it... my problem is time, as always. In the mean time, may be a temporal solution for you is to edit the html so that the whole html code is in a single line (no line feeds, which I think is the culprit the problem). Actually, for your convenience, I have done it for the sample code. <html><head><title>Vstopnice.com - Naroc(ilo ?t. {$oID} </title></head><body bgcolor=#C0C0C0><table border=1 width=100% bgcolor=#FFFFFF><tr><td><table border=0 width=100%><tr><td bgcolor=#C0C0C0><font face=Verdana size=2><b>Spo?tovani {$check_status['customers_name']}</b></font></td> </tr> <tr> <td bgcolor=#C0C0C0><font face=Verdana size=2>Obve?c(amo Vas, da je Va?e naroc(ilo ?t. {#oID}, ki ste ga opravili dne {$check_status['date_purchased']}, uspe?no obdelano, ter je v dostavi!<i> {$orders_status_array[$status]}</i></font></td> </tr> <tr> <td bgcolor=#C0C0C0><font face=verdana size=2>Podatki o Va?em naroc(ilu:</font></td> </tr> <tr> <td bgcolor=#C0C0C0>slikica in opis<font face=Verdana size=2><i> {$notify_comments}</i></font></td> </tr> <tr> <td bgcolor=#C0C0C0><font face=verdana size=2>Va?e naroc(ilo je obdelal-a {$merchant}... podroben rac(un pa si lahko ogledate <a href={$str_order_view_url}>TUKAJ</a>.</td> </tr> <tr> <td bgcolor=#C0C0C0>Obenem Vas vabimo, da sodelujete tudi v na?em SMS kvizu in si priborite vstopnico</td> </tr> <tr> <td bgcolor=#C0C0C0><font face=Verdana size=2><b>Uredni?tvo {$str_shop}</b></font></td> </tr></table> </td> </tr></table></body></html> If you copy paste I think it will work (no time to test it).
  5. I was too bussy with my own business so I couldn't help you earlier. You will understand that my contribution here is totally altruist and that I'm giving away here some of my precious spare time...
  6. I'm not sure if I understand well your answer, but from what I understand, the comment field can be used in the mail format file (actually is used in the sample file included in the contri) and you can add any predefined text to that file also. Is this what you need?
  7. Michael, does it have to be with this contribution?
  8. Not yet sorry, I have not had time to address it. As I said, a turn around is to do "replace all" the "<br>" in your html editor, replacing it wiht "nothing" (i.e. remove). It's quick and easy although a bit annoying.
  9. This error typically appears when there is a syntax error in a preceeding line. So the error could be either in your format mail file, or in the modifications that have been introduced... or on both. Try first to use a very simple format mail file, like: $email="hello world"; If you still get the error then it should be in the modifications. Please review trying to find any syntax error. If you don't find it send me the file and when (and if) I have time I'll have a look to it, but please first try to solve it yourself, I don't have much spare time. Good luck
  10. As the code gets quite uggly here I'll add to the contribution site a file for you to test. Let me know if it works and I'll make it an option for the contri. Jorge.
  11. Hi, I understand a bit more the issue now. Apparently the only difference between the pwa email on the standard OSC email is that the pwa email adds the following information: EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . I don't know well the pwa contribution but it seems that it adds to the body of the mail an URL to retrieve the invoice. In that case, I think that the best option you have is to use my contribution to both orders without account and orders with accounts. Store the invoice url in a variable that you can use on the mail format file. That way, if a user buys with account that variable will be empty and the invoice url will not be shown, but if the user doesn't have an account his invocie url will be shown. That is in the case that you have a mail format file defined for the status in question, if there is none then you need to keep using the original code with the two options pwa and non-pwa. I'll put some code with how I think it should be: //JORGE 20050819 (ORDERSTATUSMAIL) If we have a notification mail file use it, otherwise send standard mail if ( tep_not_null($orders_notification_email_array[$status]) ) { $languages = tep_get_languages(); $language_directory = ''; for ($i=0, $n=sizeof($languages); $i<$n; $i++) { if ((int)$languages[$i]['id']==(int)$languages_id){ $language_directory = $languages[$i]['directory']; } } $filename = DIR_FS_ADMIN .'/'.DIR_WS_LANGUAGES . $language_directory .'/'. $orders_notification_email_array[$status]; //JORGE 20050819 Prepare this 'complex' info into a single variable so it is easier to use in the email formating $str_order_view_url = tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, "order_id=" . $oID, "SSL"); //JORGE 20050819 Apparently constants need to be stored first into a variable so it can be used in the email formatting $str_shop = STORE_NAME; //JORGE 20051231:Mods to adapt it to the pwa for mr_absinthe $invoice_url = ''; if ($pwa_check['purchased_without_account'] != '1'){ //Store the invoice url generated when pwa so it can be shown in the email. $invoice_url = EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n"; //JORGE 20051231: END } //JORGE 20050819 If you need more information in the email just use available variables on current scope // or prepare here new ones from function calls, db queries, etc... $payment = MODULE_PAYMENT_MONEYORDER_PAYTO; include ($filename); } else { // start pwa changes + changes for email subject + html link in email $pwa_check_query= tep_db_query("select purchased_without_account from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'"); $pwa_check= tep_db_fetch_array($pwa_check_query); if ($pwa_check['purchased_without_account'] != '1'){ $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . "<a HREF='" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "'>" . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "</a>\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); I think that should be all! I TIP to do changes on a live shop: What I do is to create a _test.php file, for example, if I want to modify orders.php I create a copy called orders_test.php. This some times involves also renaming references to the original file inside the file (FILENAME_ORDERS) to the new test file (orders_test.php). Then I do the changes and tests on that file. When everything works fine I rename the references inside the file from orders_test.php to FILENAME_ORDERS (or whatever file is), I backup the old orders.php and rename the orders_test.php to orders.php. This way you changed the live shop without disrupting your users (well, may be a couple of seconds whilst backingup the old file and renaming the new file).
  12. Can you tell me where you are stuck at exactly? To understand the problem I'll need to see the full file and pwa contry, but I don't have the time. By the way, why do you need the pwa contry? I implemented a solution in my shop so that customers register themselves without knowing! When they click on checkout, if they are not logged in yet, they are asked for their personal details to complete the order (but in fact is to get registered), then I send an email with their user name (email) and a randomly generated password to them. If they had purchased already in the shop they also have a link to log in. If works perfectly for me. An additional benefit is that I get email addresses of potential customers that don't complete the purchase which I can use to send them bulletins (if they have clicked on that option). Isn't there a similar contry already? If there isn't one may be I can package it as a new one (if I have time!) Cheers, Jorge.
  13. Then just use this line: tep_mail($check_status['customers_name'], $check_status['customers_email_address'], $email_subject, $email.';'.STORE_OWNER_EMAIL_ADDRESS, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Again I'm not sure if the separator between emails should be ";" or ",". Try it.
  14. I had that checked already when I found the issue, but it seems ok to me. I attach the extract of the code from my own modified login.php (the same is in creat_account.php) tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); // restore cart contents $cart->restore_contents(); //JORGE 20051229: WISHLIST 3.5 // restore wishlist to sesssion $wishList->restore_wishlist(); //JORGE 20051229: END if (sizeof($navigation->snapshot) > 0) { What else could it be?
  15. Sorry, I have a headache from trying to find the problem with wishList. I read my post and I couldn't understand it myself! This is what I do: - I'm a guest in my shop - I put some products on the wishlist - I log in as a registered customer (I already had the account, but I guess it doesn't matter if it is a new one) - Check my wish list... there is nothing! :-( - I check in the DB and the products are NOT there... :huh: - If I logout and log in again, the wish list is still empty (i.e. no difference) :-( What could be the problem? What can I try? You can test it your self if you want on www.AporVino.com (although it is in spanish it should be easy to follow).
×
×
  • Create New...