Author Topic: send email notify Users waiting not working  (Read 1077 times)

ptrouw

  • Jr. Member
  • **
  • Posts: 124
send email notify Users waiting not working
« on: June 20, 2017, 11:55:57 am »
Using VM3.2.2.
We have to send emails to a lot of users about new stock arrival. We always used the "send email" to notify Users waiting, but this Send Email button is not working anymore with the product admin.
In browser console I can see these error:
Failed to load resource: the server responded with a status of 500 ()  https://www.xyz.com/administrator/index.php?option=com_virtuemart&view=product&task=ajax_notifyUsers&virtuemart_product_id=524

Is it an ajax problem?
Any ideas to solve this or a work around?

Note: I also have an 3.2.1 installation and this one works fine!

HTML code seems fine:
<div class="button2-left btn-wrapper btn btn-small" data-type="sendmail">
<div class="blank" style="padding:0 6px;cursor: pointer;" title="Send the email to the shoppers">
<span class="vmicon vmicon-16-email"></span>
Send Email
</div>
</div>

<script id="vm.validator_js" type="text/javascript">
<script id="submit_js" type="text/javascript">
<script id="updateChosen_js" type="text/javascript">
<script id="vm.remindTab_js" type="text/javascript">
<script id="vEngine_js" type="text/javascript">
<script id="vm.cookie_js" type="text/javascript">
<script id="datepicker_js" type="text/javascript">
<script id="dynotable_ini_js" type="text/javascript">
<script id="mediahandler.vars_js" type="text/javascript">
<script id="onReadyProduct_js" type="text/javascript"

stAn99

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 73
    • One Page Checkout for Virtuemart 2
Re: send email notify Users waiting not working
« Reply #1 on: June 20, 2017, 16:15:36 pm »
hello, pls install and enable our fatal catcher extension from here:
https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin

- install
- set your own email (or system email will be used)
- enable the plugin in joomla plugins
- repeat the action to receive the error

the plugin should send you an email with:
- file and line that causes your error
- backtrace if available (if xdebug is enabled)

you should provide the plugin's output so that any advise can be done.

best regards, stan, rupostel.com
----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

ptrouw

  • Jr. Member
  • **
  • Posts: 124
Re: send email notify Users waiting not working
« Reply #2 on: June 20, 2017, 16:45:14 pm »
got it.
thanks Stan, mail_html_notify.php script from template was incorrect

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 839
  • VirtueMart Version: VM3 on J3
Re: send email notify Users waiting not working
« Reply #3 on: June 21, 2017, 12:40:49 pm »

ptrouw

  • Jr. Member
  • **
  • Posts: 124
Re: send email notify Users waiting not working
« Reply #4 on: June 21, 2017, 12:46:34 pm »
Hey,
Do you think the waitinglist will include language code in the near future?
Now all waitinglist persons will get the same email message in just 1 languages. We have 4 languages, the work around for us is now 1 email with 4 messages in 4 languages. Not very professional.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1687
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: send email notify Users waiting not working
« Reply #5 on: June 21, 2017, 12:56:49 pm »
Hello

Use language strings and edit the template files to include this for the language specific text:

echo vmText::_('VM_MY_MESSAGE_ETC');

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

ptrouw

  • Jr. Member
  • **
  • Posts: 124
Re: send email notify Users waiting not working
« Reply #6 on: June 21, 2017, 13:09:40 pm »
Will not work, the waitinglist doesn't store the original language of the person leaving behind the email. Therefore the email can never be in 1 specific language or the use of vmText!

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1687
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: send email notify Users waiting not working
« Reply #7 on: June 21, 2017, 13:52:40 pm »
You´re right, have to store language together with mailaddress for waitinglist. I have made some Changes to my waitinglist in order to get a notification to admin when someone puts there name on the waitinglist. Maybe I could add this feature to that. I will see if I get the time for it.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

ptrouw

  • Jr. Member
  • **
  • Posts: 124
Re: send email notify Users waiting not working
« Reply #8 on: June 21, 2017, 14:34:46 pm »
Would be great to store user Front end selected language in waitinglist table. We can then use it in template specific mail_html_notify.php file, but it also needs a language depended mail subject line which is in a VM core file.

vangelisg

  • Beginner
  • *
  • Posts: 8
  • Skype Name: elisg
Re: send email notify Users waiting not working
« Reply #9 on: February 28, 2018, 09:46:06 am »
I am having the exact same problem and I am searching for a sound solution for quite a while now.
So I came with the following workaround.
  • Uninstall VM.
  • Uninstall Joomla.
  • Cancel hosting.
  • Cancel Domain Name Registration.
  • Refund the client.
  • Throw a gallon of hot water on the computer while power is on. (having a Fire extinguisher close by is strongly advised).
  • Join a lumberjack community at the Appalachians in a location without signal.
  • Learn to carve animals on wood.
  • Live happily ever after!
I hope this helps.

PS. Seriously now, if anyone has solved this please post a solution or just point to the right direction. I am too fat and very lazy to be a lumberjack at this age.