Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Posts posted by npn2531

  1. In looking at the instructions for installing SEO header tags reloaded http://addons.oscommerce.com/info/8864 I see that the reader is instructed to  'Upload or Merge' files. Having spent a significant portion of my youth cutting and pasting snippets of code into my OSCommerce site installing add-on, this caught my attention.


    What does 'Merge' mean? Is that something other than manually cutting and pasting snippets of code into a file? Is there a program or something that will merge two OSCommerce files full of html, php, javascript and misc stuff? I have been unable to find a good answer googling or searching this site, and thank you in advance for direction on this. 

  2.  if (file_exists(DIR_FS_CATALOG_MODULES.'mail_manager/order_confirm.php')){
    		tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    It sounds like you are saying the issue is that the tep_mail command above initiates. Your code looks fine, the only thing I can see that would go wrong is that order_confirm.php is not being located.  I don't have this set up, but try something like this and see what happens:

     if (file_exists(DIR_FS_CATALOG_MODULES.'mail_manager/order_confirm.php')){
    		  echo 'order_confirm found';
                      // include(DIR_FS_CATALOG_MODULES.'mail_manager/order_confirm.php'); 
    		echo 'order_confirm not found';
                      //tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    I know this is a  bit simple, but I am not a professional and this is what I know to do. 

  3. In the example templates that are included in the mail manager, you will find that an unsubscribe link is included that when the recipient of that email clicks on it, it will send an email to you with the word 'unsubscribe' in subject line. You will then have to manually remove that subscriber from your mailing list. 


    The code for this is basic html, just be sure in the email you send out you have something like this:

    <p style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 16px; color: #999999; margin: 10px;"> To be removed from this mailing list click <a href="mailto:unsubscribe@[member=yourwebsite].com?subject=Unsubscribe&body=Please%20remove%20my%20email%20from%20your%20list" ><u>here</u></a></p>

    In this example, you would need to make sure that 'unsubscribe@@yourwebsite.com' is a valid email account you receive. It could be anything such as

    'removeme@myemail.com' as long as it is a valid email you have set up.

  4. If you ran the follow sale letter once or twice a week, you would be sending out to all your sales and it only takes about three clicks. I am not familiar with how to setup cron job, but it is going to involve setting up something on your web server outside the php script itself. 



    It only sends to the customer once per order, because it sends only to the email in a customer orders whose status is 'paid'. Once it sends the email it changes the status of that order to 'thank you' . You can see the programming and change what the status is changed to by going to:

    I mean 'shipped' not paid. 

  6. You manually send it. Go to mail manager>bulk mail> and then select the installed thank you letter. It is one of the bulk mail letters. It is  written to send to any customer whose order has been changed to a status of 'shipped' more  than about 10 days, but no older than about 3 weeks. Thus if you wait three weeks without manually sending the letter you start skipping customers. I simply send it every time I go to process orders each day. It will run in the background. It will also not resend the letter to the order twice. It sends to the email in the customers order, per order.


    It only sends to the customer once per order, because it sends only to the email in a customer orders whose status is 'paid'. Once it sends the email it changes the status of that order to 'thank you' . You can see the programming and change what the status is changed to by going to:


    admin>includes>modules>mail manager>sale_followup.php


    and making the appropriate programming changes.

  7. Mail Manager for OSCommerce v2.3 is now available in the add-ons.

    Mail Manager is designed to:


    1) Send all emails in html with a text alternative. With Mail Manager all emails can be created in html complete with images, links, logos, etc. This includes order confirmation, create account, password forgotten, status update, newsletters and tell-a-friend emails

    2) Allow editing all of emails from the Admin, and for creating html templates that can be applied to all emails for a consistent and professional look.

    3) Adds a special post sales follow-up email to send to customers who have recently made a purchase complete with images, descriptions, links of purchased products, links to leave product reviews, and if the Xsell module  is installed, images, descriptions and links to recommended products. 

    4) Mail Manager adds product images to the customer initiated tell_a_friend email.

    5) A search feature is added to the admin email that makes it simple to locate a customer and send them note, etc on a templated html email.

    6) Control the rate, or speed, that emails are sent. This allows shops on shared web-hosting account to send large mailings without exceeding band-width limitations.

    7) Target for newsletters and mailings any group of customers or mailing list entries that can be identified by php queries. For example you could create a mailing to customers who have purchased a certain product and who live in a single postal code. 


    Download includes fully functional and editable example newsletters and templates.

  8. I am willing to bet you have a couple of typos somewhere in the html. The html in the text is kinda of the typical thing you see when a < or > has been left out. The errors are being rendered, or read just a bit differently in the different programs that ar reading your preview and the mail. In other words, the preview screen is less sensitive to the typos than your mail program.

  9. It should work fine on 2.2ms2. 


    You find it easier to upgrade a 2.2ms2 than to start anew and reinstall your contributions, esp if you have the design you like. The important security functions can certainly be upgrade. The detailed instructions to do this are on this site. Perhaps someone else, who knows where it is can post the link. 

  10. In your browser, click the option to 'view source' or 'view html'. Look at the menu, see if the <a>, <li> or <ul> in the menu links that are offset have styles applied, or not applied, that the menu links that are properly positioned do have. Then it is a process of figuring out why, usually a process of tedious trial and error. Remember that it is not hard to end up with style in a stylesheet high up in the stylesheet to be overridden by a style lower down the page.

  11. If you can see the page you are on in the address bar when looking at the blank screen you can use echo statements to find the error. Just open up the page that is blank and then starting from just below the opening <?php mark, type in several places down the page something like:


    echo 'line 2'; or echo 'line 50';


    As long as you haven't placed them within a 'if then' statement, then the echo statements you add above the error will print on the screen and the echo statements below the error will not print, and you can narrow down exactly where the error is.

  12. You would probably get erratic results to run it in more than one window. The best thing to do would be to rewrite the module. If you understand the basics of writing a 'php while loop' to access multiple records in a database you can accomplish this rewrite without too much difficulty.


    Open admin/mm_bulkmail.php Find

     } elseif ($action == 'confirm_send') { 

    about line 361 under the 'confirm send' case. Find the simple query, '$newsletter_query', and work in a 'while' statement. You will have to run through the entire case and make other misc changes, such as deleting the refresh rate, etc.


    Note you only have to rewrite the 'confirm send' case, but that case runs about 200 lines.

  13. Yes, 20,000 customers would take quite a while, even if you set the refresh rate to 1. However, that is the point of the program, to allow you to slow down the rate of a mailing so that you don't exceed bandwidth limitations shared web hosting providers impose. In other words the program is designed for people, like me, who have their website on a $5-$10/month site from providers like Bluehost and Godaddy.


    The refresh aspect of the program is how the throttling is accomplished, by putting in a waiting period between emails. Plus instead of executing one server command that sends 20,000 emails you execute 20,000 quick server commands that send one email each. (the refresh command takes place on your computer, the actual mailing command takes place on the web server - in other words, the OSCommerce program on the web server receives and completes the command to select and email a customer 20,000 times). This means that if the program, computer or internet crash during the mailing, you simply restart the mailing and it will pick back up right where it stopped, even if you restart on a different computer or from a different location.


    It will also run in a separate window of the same computer you are using for anything else.

  14. The 'flag=sent' is not something that is part of mail manager, I don't know what that is. In mail manager you can send the same newsletter over and over. You can also use existing newsletters created in other applications. Just open the bulk mail panel and click 'new newsletter' and then paste the html into the window. The process is identical to creating a newsletter in the standard oscommerce install.

  15. In mail manager there is a working sample newsletter called the 'sale followup' email that is date sensitive, but not a weekly newsletter. This sale followup has two variables

    $wait_until = date('Y-m-d g:i:s', strtotime("-10 days"));
    $ignore_before = date('Y-m-d g:i:s', strtotime("-30 days"));

    That allow it to select recent orders and prepare a mailing with info from those orders, and the customers who placed those orders.


    Also note that mail manager selects customers to mail to based on the value in a new field in the customers table called mmstatus. In each mailing, after it mails a customer it updates the value in this field from '0' to '9'. Once it completes a mailing, all the customers that were selected for mailing have a mmstatus of '9'. It then resets or changes this value in mmstatus back to '0' for all the customers it has mailed to.


    If the value in mmstatus does not get reset back to '0', then the next time you run that mailing, it will mail 0 customers and say 0 sent. My guess is that somebody has changed something in the original programming and this value is not being reset. Check your customer list after a mailing and see if you have any customer records with a mmstatus value of '9'. If you do then something is amiss.


    Also note that mail manager does not use the values 'true' or 'false' in any of it's programming. It does use php terminology == and != however.

  16. EMAIL_PASSWORD_REMINDER_SUBJECT and EMAIL_PASSWORD_REMINDER_BODY are defined in catalog/includes/languages/english (or your language)/password_forgotten.php. Make sure you have the code below working in catalog/password_forgotten.php.


    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PASSWORD_FORGOTTEN);