Send button on CONTACT CUSTOMER doesn't respond

More
10 years 1 month ago #24453 by suiato
Hi

Problem:
Clicking the "Send" button on the CONTACT CUSTOMER form, which appears after clicking an email icon (Send an email to customer) on VMVENDOR - MY DASHBOARD, doesn't have response. Clicking the "Reset" button, neither. The dialog box remains, and no mail is sent.

Environment:
Other mails (for system, orders) work (via SMTP).
VMVendor 1.3, Joomla 2.4.24, VirtueMart 2.6.10.

I'd like to know what possibly caused this situation. Please help.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #24491 by suiato
I have seen the following warnings, and tried to debug, although they may not be the cause of the non-responsive form in my initial question.

Strict Standards: Declaration of VmvendorController::display() should be compatible with that of JController::display() in /.../components/com_vmvendor/controller.php on line 12

Strict Standards: Only variables should be assigned by reference in /.../components/com_vmvendor/models/dashboard.php on line 22

Strict Standards: Only variables should be assigned by reference in /.../components/com_vmvendor/models/dashboard.php on line 25

Strict Standards: Only variables should be assigned by reference in /.../components/com_vmvendor/models/dashboard.php on line 26

Strict Standards: Only variables should be assigned by reference in /.../components/com_vmvendor/models/dashboard.php on line 135


For the first three, I deleted "&" and the warnings are gone.

How should I modify /.../components/com_vmvendor/models/dashboard.php on line 22
Code:
class VmvendorController extends JController{ public function display() { parent::display(); }
in order to avoid the last warning?
The original definition of JController is
Code:
class JController extends JObject { public function display($cachable = false, $urlparams = false) : :

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #24492 by nordmograph
Hello

I updated the archive to fix the strict standard notices.
But I'm not sure I understand your emailing issue right.
Can you illustrate ?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #24493 by suiato
Hello

nordmograph wrote: Hello

I updated the archive to fix the strict standard notices.

Thanks :)

But I'm not sure I understand your emailing issue right.
Can you illustrate ?


Looking at the HTML source for the CONTACT CUSTOMER dialog box using Firefox Developer tools, I found the form tag ended at an odd place as shown below, and can't figure out why it happened:

<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title">Contact Customer</h4></div> <div class="modal-body">
<form method="POST" onsubmit="return validateForm(this);"><input name="formhref" value="" type="hidden"><table class="table table-striped table-condensed"><tbody><tr><td>Your Name:</td> <td><input name="formname" size="50" value="Yuikobo" style="background-color:#cccccc" class="form-control" readonly="" type="text"></td></tr><tr><td>Your Email:</td><td><input name="formemail" size="50" value="yuikobo@some.net" style="background-color:#cccccc" class="form-control" readonly="" type="text">Subject:Message:
</form></div><div class="modal-footer">
<input value="Send" class="btn btn-lg btn-primary" type="submit"> <input value="Reset" class="btn btn-sm btn-default" type="reset"><input name="emailto" value="info@some.net" type="hidden">
<input name="option" value="com_vmvendor" type="hidden">
<input name="controller" value="mailcustomer" type="hidden"><input name="task" value="mailcustomer" type="hidden"></div></div>
</div>

I've tried to check the corresponding PHP file. If it's /.../components/com_vmvendor/views/mailcustomer/tmpl/default.php, then it looks fine as shown below:

Code:
echo ' <div class="modal-body"> <form method=POST onsubmit="return validateForm(this);" >'; echo '<input type="hidden" name="formhref" value="'.JRequest::getVar('href').'">'; echo '<table class="table table-striped table-condensed">'; echo '<tr><td>'.JText::_('COM_VMVENDOR_ASKVENDOR_YOURNAME').':</td>'; echo ' <td><input type="text" name="formname" size="50" value="'.ucfirst($yourname).'" style="background-color:#cccccc" class="form-control" readonly></td></tr>'; echo '<tr><td>'.JText::_('COM_VMVENDOR_ASKVENDOR_YOURMAIL').':</td>'; echo '<td><input type="text" name="formemail" size="50" value="'.$youremail.'" style="background-color:#cccccc" class="form-control" readonly></td></tr>'; echo '<tr><td>'.JText::_('COM_VMVENDOR_ASKVENDOR_SUBJECT').':</td>'; echo '<td><input type="text" name="formsubject" size="50" value="'.$default_subject.'" class="form-control"></td></tr>'; echo '<tr><td colspan=2>'.JText::_('COM_VMVENDOR_ASKVENDOR_MESSAGE').':<br>'; echo ' <textarea COLS="50" ROWS="6" name="formmessage" class="form-control" >'.$default_message.'</textarea>'; echo '</td></tr>'; echo '</table></div>'; //echo JText::_('COM_VMVENDOR_ASKVENDOR_URLWILLBEADDED'); echo '<div class="modal-footer"> <input type="submit" value="'.JText::_('COM_VMVENDOR_ASKVENDOR_SEND').'" class="btn btn-lg btn-primary" /> '; echo '<input type="reset" value="'.JText::_('COM_VMVENDOR_ASKVENDOR_RESET').'" class="btn btn-sm btn-default" />'; echo '<input type="hidden" name="emailto" value="'.$emailto.'" /> <input type="hidden" name="option" value="com_vmvendor" /> <input type="hidden" name="controller" value="mailcustomer" />'; echo '<input type="hidden" name="task" value="mailcustomer" />'; echo '</div>'; echo '</form>'; echo '</div> </div>';

At this point, I'm puzzled, and will appreciate help.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #24532 by suiato
I found the reason why the form tag end at an odd place:
Code:
echo ' <div class="modal-body"> <form method=POST onsubmit="return validateForm(this);" >';
was not right. It should be
Code:
echo ' <form method=POST onsubmit="return validateForm(this);" > <div class="modal-body">';
Now the form tag ends right, but the mail is still not received by the buyer.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #24550 by nordmograph
I see, Ill have a look.
Is the form submitting? do you have an error message (or sucess) ?
Let me know

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.422 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.