Author Topic: Customer user fields styling and translation gone after update to 2.0.22c  (Read 576 times)

ronaldotto

  • Beginner
  • *
  • Posts: 25
From b to c

At checkout, when a user edits his innvoice addres the layout of the userfileds is gone.
In edit_address_userfields.php in views > user > tmpl on line 38 is an else loop added wich breaks it.
Copying the version of b fixes it.

Code: [Select]
// Output: Userfields
foreach($this->userFields['fields'] as $field) {

if($field['type'] == 'delimiter') {

// For Every New Delimiter
// We need to close the previous
// table and delimiter
if($closeDelimiter) { ?>
</table>
</fieldset>
<?php
?>


<fieldset>
<span class="userfields_info"><?php echo $field['title'?></span>

<?php
$closeDelimiter true;
$openTable true;

Has become:
Code: [Select]
// Output: Userfields
foreach($this->userFields['fields'] as $field) {

if($field['type'] == 'delimiter') {

// For Every New Delimiter
// We need to close the previous
// table and delimiter
if($closeDelimiter) { ?>
</table>
</fieldset>
<?php
} else {
?>

<fieldset>
<span class="userfields_info"><?php echo $field['title'?></span>

<?php
$closeDelimiter true;
$openTable true;
}
and breaks it.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Customer user fields styling and translation gone after update to 2.0.22c
« Reply #1 on: September 26, 2013, 15:22:50 pm »
Please use E, yepp sry that was a small error and only visible in some templates.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/