News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

send email notify Users waiting not working

Started by ptrouw, June 20, 2017, 11:55:57 AM

Previous topic - Next topic

ptrouw

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

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

got it.
thanks Stan, mail_html_notify.php script from template was incorrect


ptrouw

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

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.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ptrouw

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

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.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ptrouw

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

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.

tramber91

Hi all

I come back in this old topic
I have exactly same issue with latest version of VM

I can see Customer E-mail on products
But no way to send a notify
Error message in Chrome console
Failed to load resource: the server responded with a status of 500 () at
/administrator/index.php?option=com_virtuemart&view=product&task=ajax_notifyUsers&virtuemart_product_id=590


It should be solved ? or it remains an issue ?

Thanks for your support

Bertrand

Jommla 3.9.25
VM 3.8.8
joomla 3.9.25 -    php 7.3 - VirtueMart 3.8.8

Jörgen

Read through the thread again and correct the error in your custom template.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

tramber91

Thanks for your quick answer

I have installed fatal catcher and error message is

2 strtoupper() expects parameter 1 to be string, object given in file: /home/etlbertrand/sitetest/jouarre/libraries/src/Language/Language.php line: 314
2 strpos() expects parameter 1 to be string, object given in file: /home/etlbertrand/sitetest/jouarre/libraries/src/Language/Language.php line: 361


Correspond to joomla core line
if (strpos($string, '\\') !== false)
{
// Interpret \n and \t characters
$string = str_replace(array('\\\\', '\t', '\n'), array("\\", "\t", "\n"), $string);
}


We are in VM administration, cannot be issue from template override ?

take care

Bertrand
joomla 3.9.25 -    php 7.3 - VirtueMart 3.8.8

Jörgen

What back end admin template do you use ?
Do You have any plugins or extensions that could interfere ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

you need to backtrace why $string is an object  .. not the expected string
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation