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

Shopper field title and tip swapped?

Started by Frankp, January 18, 2015, 00:08:06 AM

Previous topic - Next topic

Frankp

VM3.0.2, J3.3

When looking at My account. The field tip and the field title are swapped. If I interchange this in the shopper field then all shows as it must, but that is a work around. Every template I tried gives the same result. Is this a bug?

PRO

do you have a link and better description?

GJC Web Design

yep - can confirm this in 3.0.3/J3.3.6 - they display the wrong way around

the code should be in components\com_virtuemart\views\user\tmpl\edit_address_userfields.php ~ line 69

$descr = empty($field['description'])? $field['title']:strip_tags($field['description']);
// Output: Userfields
?>
<tr>
<td class="key" title="<?php echo $descr  ?>" >
<label class="<?php echo $field['name'?>" for="<?php echo $field['name'?>_field">
<?php echo $field['title'] . ($field['required'] ? ' *' ''?>
</label>
</td>
<td>
<?php echo $field['formcode'?>
</td>
</tr>


not

$descr = empty($field['description'])? $field['title']:$field['description'];
// Output: Userfields
?>
<tr>
<td class="key" title="<?php echo $field['title']  ?>" >
<label class="<?php echo $field['name'?>" for="<?php echo $field['name'?>_field">
<?php echo $descr . ($field['required'] ? ' *' ''?>
</label>
</td>
<td>
<?php echo $field['formcode'?>
</td>
</tr>
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