VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: erica23 on October 09, 2013, 07:19:36 AM

Title: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on October 09, 2013, 07:19:36 AM
I am using Joomla 2.5.9 and Virtuemart 2.0.20a

My site was working fine and bother vendor and shopper were receiving both confirmation emails
1. from the site when the order was confirmed on site
2. from paypal once order was finalized and payment was complete

Everything was working great and then all of the sudden overnight the vendor nor the shopper are receiving these confirmation emails, just the paypal confirmation email.  The problem is that the paypal confirmation email does not have order details, just order number and shopper info, so the vendor cannot complete an order and the shopper cannot see what exactly they purchased.

I have been working on this for over a week now and cannot figure out what the issue could be.  I have tried many, many different things, along with researching this only and read all of the forums, but nothing has worked yet.

PLEASE HELP ASAP....THIS IS URGENT, as this is a clients site and they need to see the orders (instead of me entering backend and making of pdf of each order to email them...)

Thanks,
Erica
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: jenkinhill on October 09, 2013, 11:28:21 AM
I don't know if this is the problem, but Paypal have made changes just recently - the current VM version has an updated PayPal plugin.

In any case you are strongly advised to update. Both your Joomla and VirtueMart versions are old and have known critical security issues which have already been exploited by hackers. Current versions are J2.5.14 and VM2.0.24  - test the update on a backup copy of the live site first.

See the note in the security update announcement about template overrides (if you use them):  http://virtuemart.net/news/latest-news/446-important-security-release-vm-team-at-joomladay-germany
And see http://forum.virtuemart.net/index.php?topic=118683
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on October 10, 2013, 21:14:40 PM
Thank you for your response! I have tried updating joomla and virtuemart many times on my test site and the order confirmations still don't come through.
I did this again, but with the versions that you suggested and still nothing...and now I get blank white pages throughout the site instead of the template that I have, here is an example of what I'm referring to: http://190.107.154.119/ec/gentlet/index.php?Itemid=148

I am very worried about this issue, do you have any other ideas of things I could try to get this working?  This is a client's site and I have to send them every order separately, the big problem is when I have days that I am unable to get online or check the backend.

Please advise, thanks for your assistance!
-Erica
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Maxim Pishnyak on October 10, 2013, 22:10:59 PM
Your numeric domain shows that you are using not professional web hosting. You could test your web shop in real web hosting environment.
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: jenkinhill on October 10, 2013, 23:52:30 PM
Template errors on update to 2.0.24 is usually due to incorrect configuration - see  http://forum.virtuemart.net/index.php?topic=118946.msg404053#msg404053
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on October 11, 2013, 00:09:08 AM
Thanks.  The link I posted above is only the sample site where I am testing things.  It is an exact copy of the site I have live at www.gentlet.com.  I will read the forum you suggested and let you know if anything there works.  Thank you both very much for your input!

-Erica
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on October 11, 2013, 00:15:09 AM
Just tested your suggestion and it is already set to "use joomla default".  Any other suggestions? Hmm....I have tried so many different things and just can't figure this one out.

Thanks again for your help!
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Maxim Pishnyak on October 11, 2013, 09:42:58 AM
URL with issue on your www.gentlet.com?
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on October 11, 2013, 21:53:27 PM
I am assuming you are asking for the url to where the error is on the live site?
Since it is an internal error: the shopper, vendor nor admin are receiving the order confirmation emails, only the paypal confirmation that includes just tee order number, not order details, but because of this being an internal error, I don't have an exact link to send you.

Have you heard of this problem before?

I've been reading and testing many things, but it seems others have had similar issues, but not exactly the same and the have found fixes.  I have tried what worked for them, but nothing is fixed yet.

Please help, thanks!!
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Maxim Pishnyak on October 12, 2013, 08:42:58 AM
Listen me, please.
Quote from: erica23 on October 10, 2013, 21:14:40 PM
http://190.107.154.119/ec/gentlet/index.php?Itemid=148
Quote from: Maxim Pishnyak on October 11, 2013, 09:42:58 AM
URL with issue on your www.gentlet.com?
And
Quote from: erica23 on October 11, 2013, 21:53:27 PM
I've been reading and testing many things, but it seems others have had similar issues, but not exactly the same and the have found fixes.  I have tried what worked for them, but nothing is fixed yet.
What did you try? Be more specific.
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: knapperture on October 13, 2013, 23:34:45 PM
I am having the same type of issue.
Joomla! 2.5.11 VM 2.0.24

The site had been sending confirmation emails to the store admin and shopper. Then the emails stopped going to the store admin. I belive the client may have changed their contact info and user name. I have ben back into the backend and added a new vendor, but there are still no confirmation emails to that vendor. I checked the PHP my admin and confirmed the user is set up as a vendor.
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: swilkerson on October 16, 2013, 17:52:26 PM
We have had the same issues since upgrading two days ago - no order email confirmations to shopper or admin. 

Joomla 2.5.6
VM 2.0.24

We have been scouring for fixes, have not found any reason this should not be working.
All emails for store admin (gmail email)  match joomla user and global email config.
Super Admin in Joomla is Vendor and Storekeeper of VM, and info matches.

Not sure if this has anything to do with the problem, but we used the VM 2 Migrator Extension to migrate from VM 1.1.9. Just after migration, we noticed the SHOP Configuration info was showing an error for a missing user and would not load the vendor details correctly. It was asking for a random id number "342" whereas the previous storekeeper id was 1988. So we changed the storekeeper id from 1988 to 342, edited usergroup_map in database to 8 & 2 and voila!  The SHOP in config was showing the vendor info.

However, still  no-go on the emails. Could we try anything else? This seems to a wide-spread issue with no resolve unless I've missed the solution somewhere along the way.
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: markito on October 20, 2013, 09:18:05 AM
Same issue here, no order email confirmations since upgrading to VM 2.0.24

Joomla 2.5.14
VM 2.0.24

Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: johnlanglois on October 23, 2013, 20:47:17 PM
We are having the same issue on VM 2.0.24 and Joomla 2.5.14 and PHP 5.3
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Carlos-Venegas on October 24, 2013, 09:11:35 AM
SOMETIMES YOU NEED SOME SUNSHINE AND HACKING - LUCKY FOR ME I KNOW PATRICK AKA "PMALKMES" ;)

Check out the solution on Page 2: http://forum.virtuemart.net/index.php?topic=119395.15
Title: SOLVED: Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: pmalkmes on October 24, 2013, 09:12:43 AM
So I was able to hack it by putting an email in the paypal plugin php file to temporarily get emails going to my client!
Please feel free to adjust as necessary!

if you need help contact me patrick@pmxli.com to help solve this issue with you
PMX 4EVA
pmxcomputing.com

********************************************
/plugins/vmpayment/paypal/paypal.php file at line 263
********************************************

//begin PMX MODZ below
   $mailer = JFactory::getMailer();
   $config = JFactory::getConfig();
        $sender = array(
        $config->getValue( 'config.mailfrom' ),
        $config->getValue( 'config.fromname' ) );

$mailer->setSender($sender);
$recipient = 'your@email.com'; //for admins  & store owner

$mailer->addRecipient($recipient);
$body ='
<table style="border: 1px solid lightgrey; margin: 5px; padding: 5px; width:
100%;" align="center" border="0" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td>
<p><table width="100%" align="center" border="0" cellspacing="0"
cellpadding="10">
  <tr valign="top">
    <td align="left" class="Stil1">Your Website title</td>
   
    <td align="right"><img border="0"
src="http://www.yourwbsite.com/logo.png"></td>
   
  </tr>   
</table></p>
<p>&nbsp;</p>
<table style="width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr class="sectiontableheader" bgcolor="#cccccc">
<td class="Stil2" colspan="2"><strong>Order Information</strong></td>
</tr>
<tr class="Stil1">
<td>Order Number:</td>
<td>'.$post_variables['order_number'].'</td>
</tr>
<tr class="Stil1">
<td>Order Date:</td>
<td>'.date('m-d-Y').'</td>
</tr>
<tr class="Stil1">
<td>Order Status:</td>
<td>Pending</td>
</tr>
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr class="sectiontableheader" bgcolor="#cccccc">
<td colspan="2"><strong class="Stil2">Customer Information</strong></td>
</tr>
<tr>
<td colspan="2">
<table class="html-email" cellspacing="0" cellpadding="0" border="0"
width="100%"> 
   <tr>
      <th width="50%">
          Bill To Information      </th>
      <th width="50%" >
            </th>
    </tr>
    <tr>
   <td valign="top" width="50%">
       <span>'.$post_variables['email'].'</span><br><span></span><br><span></span><br><span>'.$post_variables['first_name'].'</span> <span>'.$post_variables['last_name'].'</span><br><span>'.$post_variables['address1'].'</span><br><span>'.$post_variables['city'].'</span>, <span>'.$post_variables['state'].'</span> <br><span>'.$post_variables['zip'].'</span><br><br><span>Phone: '.$post_variables['night_phone_b'].'</span>
   </td>
   <td valign="top" width="50%">Shipping address will be on the follwoing invoice when the status is changed to confirmed.
   </td>
    </tr>
</table></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr class="Stil2" bgcolor="#cccccc">
<td colspan="2"><strong>Order Items</strong></td>
</tr>
<tr>
<td colspan="2"><table  cellspacing="0" cellpadding="0" border="0"
width="100%" style="">
    <tr align="left" >
          <th style="">&nbsp;</th>
            <th style="" align="left" ></th>
            <th style="" align="left" ></th>
            <th style="" align="left" ></th>
            <th style="" align="right" ></th>
             <th style="" align="right" ></th>
            <th style="" align="right" ></th>
            <th style="" align="right" >Total Amount Due</th>
       </tr>
            <tr valign="top">
        <td><a
href=""></a></td>          <td align="left" >
                   </td>
                 <td align="left" >
                   </td>
              <td align="left" >
       

         <div><div class="vm-customfield-cart"> <span
class="product-field-type-V"></span><br /></div></div>   
   </td>
                <td align="right" >
                   </td>
                <td align="right"><span></span></td>
                <td align="right" >
                   </td>
               <td align="right" >
         '.$post_variables['amount'].'       </td>
              </tr>
         <tr>
      <td colspan="8"><hr style=" border-top: 1px; height:1px; color:#444"></td>
   </tr>
         <tr>
         <td colspan="5" align="right"></td>

                        <td align="right"><span ></span></td>
                     <td align="right"><span></span></td>
                  <td align="right"></td>
               </tr>
   
    <tr>
      <td align="right" colspan="5"></td>
                <td align="right"></td>
            <td align="right"> </td>
            <td align="right"></td>
          </tr>
    <tr>
      <td align="right" colspan="5"></td>
                <td align="right"></td>
            <td align="right"> </td>
            <td align="right"></td>
          </tr>
        <tr>
      <td align="right" colspan="5"><strong></strong></td>
   
                <td align="right"><span ></span></td>
            <td align="right"> </td>
            <td align="right"><strong></strong></td>
          </tr>
</table>
</td>
</tr>
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr class="sectiontableheader" bgcolor="#cccccc">
<td colspan="2"><strong class="Stil2"></strong></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr class="sectiontableheader">
<td colspan="2">&nbsp;</td>
</tr>
<tr class="sectiontableheader" bgcolor="#cccccc">
<td><strong class="Stil2"></strong></td>
<td><strong class="Stil2"></strong></td>
</tr>
<tr>
<td><span class="vmpayment_name">Paypal</span></td>
<td><span class="vmshipment_name">UPS</span></td>
</tr>
</tbody>
</table>
<p></p>
<p>Sincerely,</p>
<p>Slant/Fin | High Efficiency Boilers and Baseboard</p>
<p>http://www.slantfin.com/</p>
<p>orders@slantfin.com</p>
</td>
</tr>
</tbody>
</table>


';
$mailer->setSubject('New website order');
$mailer->isHTML(true);
$mailer->Encoding = 'base64';
$mailer->setBody($body);
$send = $mailer->Send();
if ( $send !== true ) {
    echo 'Error sending email: ' . $send->message;
} else {
    echo 'Mail sent';
}
//endPMX Modz
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Milbo on October 24, 2013, 11:27:54 AM
Strange hack, should not be needed.

Please check which configuration you are using for "useVendorEmail" in the vm config tab "shop". We have this code:


if(!empty($view->vendorEmail) and VmConfig::get( 'useVendorEmail', 0 )) {
$sender[0] = $view->vendorEmail;
$sender[1] = $view->vendor->vendor_name;
} else {
// use default joomla's mail sender
$app = JFactory::getApplication();
$sender[0] = $app->getCfg( 'mailfrom' );
$sender[1] = $app->getCfg( 'fromname' );
}


Maybe we just need to add a fallback with

$config = JFactory::getConfig();
        $sender = array(
        $config->getValue( 'config.mailfrom' ),
        $config->getValue( 'config.fromname' ) );


Maybe the reason is the joomla version? Maybe we use here a deprecated function which is not working anylonger for the latest j2.5? And maybe we just do not notice it, because we use the option "use vendor email"?
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: jjk on October 24, 2013, 13:36:28 PM
Maybe this helps one or the other user encountering this problem. Below I've attached two screenshots showing the settings which do work on my Joomla 2.5.14/VirtueMart 2.0.24 website. In case you updated from VM 2.0.20 or earlier, you have to configure the new options in the Configuration > Checkout tab and click on 'Save'.

[attachment cleanup by admin]
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: pmalkmes on October 27, 2013, 12:15:05 PM
I Had set the VM up the same way and still no emails I was under some pressure from the powers that be so I just found a good spot to inject code and did.

I changed my settings to the same as yours and still diddnt work I assume there is a function that is getting locked up somehwere along the way in the order email generation process.

Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: Milbo on October 28, 2013, 15:18:46 PM
Hmm and how works this?


// set proper sender
$sender = array();
if(!empty($view->vendorEmail) and VmConfig::get( 'useVendorEmail', 0 )) {
$sender[0] = $view->vendorEmail;
$sender[1] = $view->vendor->vendor_name;
} else {
// use default joomla's mail sender
$app = JFactory::getApplication();
$sender[0] = $app->getCfg( 'mailfrom' );
$sender[1] = $app->getCfg( 'fromname' );
if(empty($sender[0])){
$config = JFactory::getConfig();
$sender = array( $config->getValue( 'config.mailfrom' ), $config->getValue( 'config.fromname' ) );
}
}


in shopfunctionsf.php around line 346 function sendVmMail
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on November 05, 2013, 23:35:47 PM
Thank you all for your input and help! I have tried all of your suggestions and nothing is working.  Now, on top of all the order confirmation email issues, my contact us page is not sending messages through to my email.  I can use the contact us page and it does not give me any errors, but I do not receive any emails to confirm I have been contacted or to send me the contact page information.

Can you please help me more with this issue?  Both of these issues are super important!!! My client wants this done by Friday at the latest and I need help PLEASE!!

I have tried different versions of virtuemart, joomla, your suggestions from above, etc. and nothing is working.

I still have joomla 2.5.9 (as every other version gives this site many other and MORE problems) and virtuemart 2.0.20a (this also gives me issues in all the other versions I have tried.  At this point, using these versions together give me the least problems overall.  PLEASE ASSIST ME ASAP!

Thank you!
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on November 07, 2013, 00:44:01 AM
Hi Everyone,

All of the sudden recently, I began having problems with the contact us page on my site.  It was saying messages were going through, but I was not receiving the email confirmation or information.  Just in case this has happened to any of you who are using Fox Contact too, I figured I'd let you know how I fixed it.  I went into extensions > manage > uninstall fox contact component and module > then I reinstalled the fox contact package >reset all of the information I wanted for fox contact and it worked!!

Still in MAJOR NEED of HELP with the order confirmation emails that I am still not receiving...please help! Thanks!

-Erica
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: erica23 on November 18, 2013, 20:10:23 PM
Hi,

I have fixed the contact us page on my site....but still having major problems with NOT receiving the confirmation email for orders, I have tried every version of virtuemart and joomla possible, I have tried on test sites, on the live site, etc and NOTHING is working as far as receiving the confirmation emails.  I feel like this should not be this difficult.  It was working fine when the day before this issue started and within 24 hours without me touching or changing anything, it stopped working.  I have tried everyone's suggestions on this forum, please help asap!!  I am even recreating my site from scratch on a different test url and the emails aren't working either....

Thanks,
Erica
Title: Re: HELP! Order confirmation emails not arriving to vendor, admin or shopper!!!
Post by: vitaly-zdanevich on February 21, 2014, 12:20:48 PM
I have this problem too.