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

Virtuemart 2.6 Ask A Question form add fields not work

Started by vega55, March 08, 2015, 19:40:52 PM

Previous topic - Next topic

vega55

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');



GJC Web Design

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


GJC Web Design

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.
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

vega55

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 :(

GJC Web Design

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!
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

vega55

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

Now I updated 2.6.16




Milbo

Regarding your first post, what  exactly is missing? There are no form fields in the email.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

vega55

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