Author Topic: Review notification email  (Read 9993 times)

Luciffere

  • Jr. Member
  • **
  • Posts: 66
  • Web Design de Calitate
    • Web Design de Calitate
Review notification email
« on: March 01, 2011, 13:09:51 pm »
How can enable the notification  email for new review?
Gift based on total order
Web design, logo, branding, joomla, virtuemart, flash. Portofoliu web design: http://www.luciffere.ro/portofoliu.html

moonleaf

  • Beginner
  • *
  • Posts: 3
Re: Review notification email
« Reply #1 on: May 27, 2011, 20:33:47 pm »
Couldn't find an answer anywhere so I figured out a way to do it myself.  It's a little bit crude but here goes.

In VM 1.1.8, in the file ROOT/administrator/components/com_virtuemart/classes/ps_reviews.php

At line 300, change from:

Code: [Select]
$this->process_vote( $d );
$vmLogger->info($VM_LANG->_('PHPSHOP_REVIEW_THANKYOU',false));
}

to:

Code: [Select]
$this->process_vote( $d );
$vmLogger->info($VM_LANG->_('PHPSHOP_REVIEW_THANKYOU',false));
vmMail('from@email.com', 'From Name', 'to@email.com', 'Subject', 'Body' );
}

Basically, when the review form gets processed, it calls the emailing function to send out an email with all the variables provided.  It doesn't tell you which product or user, etc., but it beats getting nothing!


Reggaeshop

  • Jr. Member
  • **
  • Posts: 53
    • Trenchtown Music :: www.reggaeshop.cz
Re: Review notification email
« Reply #3 on: August 07, 2011, 13:08:39 pm »
For me this works as well, when receiving an email I go to the list of customer comments and check the recent one(s) - to keep or to delete.

It would be great if someone invented a way to have the link to the post in the notification email :-)

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • Puma-IT.ie
Re: Review notification email
« Reply #4 on: March 30, 2012, 17:00:21 pm »
Still works well in 1.1.9, thanks moonleaf!
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • Puma-IT.ie
Re: Review notification email
« Reply #5 on: March 30, 2012, 18:22:12 pm »
It would be great if someone invented a way to have the link to the post in the notification email :-)
There you go Trenchtown:

Line 249, add:
Code: [Select]
global $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_sitename, $mosConfig_live_site; // For vmMail
Line 302, where moonleaf said to add a line, add all this:
Code: [Select]
// XXX Adding a email notification for any product review
$mail_subject = "Product Review Notification";
$mail_body = "A customer just posted a review on one product. Go to " .$mosConfig_sitename. " > Components > VirtueMart > Produits > Customer Reviews / Avis des Clients to edit it or to moderate it,\n";
$mail_body .= "or if you are already logged in the back end, you can read it here: \n";
$mail_body .= $mosConfig_live_site. "/administrator/index.php?pshop_mode=admin&page=product.review_list&option=com_virtuemart";
$mail_body = vmHtmlEntityDecode( $mail_body );
// TODO We can add the user review from the variables above.
vmMail($mosConfig_mailfrom, $mosConfig_fromname, 'admin@example.com', $mail_subject, $mail_body); // Type the recipient here, instead of admin@example.com
// TODO Specify to send to Super Admin / Shop Admin
$vmLogger->debug("Message sent from Email <" .$mosConfig_mailfrom. "> Name " .$mosConfig_fromname. ", to <admin@example.com> \n Subject: " .$mail_subject. "\n Body:\n" .$mail_body); // Type the recipient here, instead of admin@example.com


Hope it helps!  8)
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

Jabber

  • Beginner
  • *
  • Posts: 2
Re: Review notification email
« Reply #6 on: July 25, 2012, 12:56:28 pm »
oh! Thank you, you are a wizard !

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • Puma-IT.ie
Re: Review notification email
« Reply #7 on: August 01, 2012, 03:20:18 am »
You are more than welcome!!  8)
And that's not me, but the VM Community that is an amazing wizard  ;)
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

Reggaeshop

  • Jr. Member
  • **
  • Posts: 53
    • Trenchtown Music :: www.reggaeshop.cz
Re: Review notification email
« Reply #8 on: October 08, 2012, 21:41:55 pm »
Thanks a lot

I did not get to this topic for a long while, but have tested it, and it works: I receive the email, click on the link and you get to the list of reviews in the back-end, with the latest review listed on top. Fantastic!

tpospichal

  • Beginner
  • *
  • Posts: 3
Re: Review notification email
« Reply #9 on: September 16, 2013, 10:51:09 am »
Hi is there any sollution for this problem in VM 2.0?

Thank you.

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • Puma-IT.ie
Re: Review notification email
« Reply #10 on: September 16, 2013, 12:36:29 pm »
Hi,
I found this but I have not tested it yet.
http://forum.virtuemart.net/index.php?topic=104609.0

Good luck!
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

tpospichal

  • Beginner
  • *
  • Posts: 3
Re: Review notification email
« Reply #11 on: September 19, 2013, 16:30:53 pm »
Hi,
I found this but I have not tested it yet.
http://forum.virtuemart.net/index.php?topic=104609.0

Good luck!

It is working! Thank you

rvbgnu

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 137
    • Puma-IT.ie
Re: Review notification email
« Reply #12 on: September 20, 2013, 13:00:35 pm »
Glad to hear that! You are welcome!
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart