VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vega55 on March 08, 2015, 19:40:52 PM

Title: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 08, 2015, 19:40:52 PM
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');


Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: GJC Web Design on March 08, 2015, 20:13:29 PM
2.6.4  ???

2.6.16 is the current...
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 08, 2015, 21:09:53 PM
Quote from: GJC Web Design on March 08, 2015, 20:13:29 PM
2.6.4  ???

2.6.16 is the current...

What solving??
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: 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.
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 08, 2015, 23:09:42 PM
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 :(
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: 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!
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 08, 2015, 23:41:50 PM
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)
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 12, 2015, 07:54:22 AM
no help?
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: 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.
Title: Re: Virtuemart 2.6 Ask A Question form add fields not work
Post by: vega55 on March 12, 2015, 11:18:48 AM
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