VirtueMart 2.6.4 does not work add form fields
please help me
VirtueMart 2.0.26d version works
but
Does not work in VirtueMart version 2.6.4
VirtueMart 2.0.26d version works
fom.php
<label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_NAME') ?> : <input type="text" class="validate[required,minSize[4],maxSize[64]]" value="<?php echo $this->user->name ?>" name="name" id="name" size="30" validation="required name"/></label>
<br />
<label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_EMAIL') ?> : <input type="text" class="validate[required,custom[email]]" value="<?php echo $this->user->email ?>" name="email" id="email" size="30" validation="required email"/></label>
<br/>
<label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_PHONE') ?> : <input type="text" class="validate[required,minSize[4],maxSize[64]]" value="<?php echo $this->user->phone ?>" name="phone" id="phone" size="30" validation="required phone"/></label>
<br />
<label>
mail_html_question.php
<td valign="top" width="100%">
<?php
echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user['name'], $this->user['email']) . "<br />";
echo $this->phone. "<br />";
echo $this->comment. "<br />";
?>
</td>
mail_raw_question.php
echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user->name, $this->user->email) . "\n";
echo $this->phone. "\n";
echo $this->comment. "\n";
view.html.php
function renderMailLayout() {
$this->setLayout('mail_html_question');
$this->comment = JRequest::getString('comment');
$this->phone = JRequest::getString('phone');
Does not work in VirtueMart version 2.6
fom.php
<tr>
<td><label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_NAME') ?> : </label></td>
<td><input type="text" class="validate[required,minSize[3],maxSize[64]]" value="<?php echo $this->user->name ? $this->user->name : $askQuestionData['name'] ?>" name="name" id="name" size="30" validation="required name"/></td>
</tr>
<tr>
<td><label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_EMAIL') ?> : </label></td>
<td><input type="text" class="validate[required,custom[email]]" value="<?php echo $this->user->email ? $this->user->email : $askQuestionData['email'] ?>" name="email" id="email" size="30" validation="required email"/></td>
</tr>
<tr>
<td><label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_PHONE') ?> : </label></td>
<td><input type="text" class="validate[required,custom[phone]]" value="<?php echo $this->user->phone ?>" name="phone" id="phone" size="30" validation="required phone"/></td>
mail_html_question.php
<tr>
<td align="center" style="border-bottom : 1px solid #dad8d8;">
<span style="font-size: 14px; font-weight: bold"><?php echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user['name'], $this->user['email']); ?></span>
<br /><br /><?php echo $this->phone. ?><br /><br />
<br /><br /><?php echo $this->comment; ?><br /><br />
</td>
</tr>
mail_raw_question.php
echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user->name, $this->user->email) . "\n";
echo $this->phone. "\n";
echo $this->comment. "\n";
view.html.php
function renderMailLayout() {
$this->setLayout('mail_html_question');
$this->comment = JRequest::getString('comment');
$this->phone = JRequest::getString('phone');
2.6.4 ???
2.6.16 is the current...
so your asking to investigate a bug in a version that is perhaps 30+ versions out of date.....?
Why do you think VM gets updated? Bug fixes perhaps?
So it is sensible to install the latest current .. then if your bug is still there - then maybe someone will look at it.
Quote from: GJC Web Design on March 08, 2015, 22:47:24 PM
so your asking to investigate a bug in a version that is perhaps 30+ versions out of date.....?
Why do you think VM gets updated? Bug fixes perhaps?
So it is sensible to install the latest current .. then if your bug is still there - then maybe someone will look at it.
With old site joomla 1.7
VM 2.0.26d old site
old site the module does not work
ask questions add fileds code works
new site joomla 2.5
VM 2.6.4 new site
new site module works
ask questions add fileds code does not work
and I just needed a new site
please help :(
I don't know how else to put this!
VM 2.6.4 is not current!!! the latest is 2.6.16
no one is going to help u trace bugs in old software!
Quote from: GJC Web Design on March 08, 2015, 23:17:45 PM
I don't know how else to put this!
VM 2.6.4 is not current!!! the latest is 2.6.16
no one is going to help u trace bugs in old software!
VirtueMart 2.6.4
(http://i57.tinypic.com/2a7blsn.jpg)
Now I updated 2.6.16
(http://i61.tinypic.com/34nk00m.jpg)
no help?
Regarding your first post, what exactly is missing? There are no form fields in the email.
Quote from: Milbo on March 12, 2015, 10:33:50 AM
Regarding your first post, what exactly is missing? There are no form fields in the email.
my site: joomla 2.5
VirtueMart 2.6.16
the form does not work :-[
error
Notice: Undefined property: JUser::$phone in D:\wamp\www\ekosite\components\com_virtuemart\views\askquestion\tmpl\form.php on line 79 Call Stack #TimeMemoryFunctionLocation 10.0005653848{main}( )..\index.php:0