VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: escapezone on August 29, 2013, 12:37:25 PM

Title: Template is broken when editing BT address in VM 2.0.22b
Post by: escapezone on August 29, 2013, 12:37:25 PM
Hello!

My Template is broken when editing BT address ( edit_address_userfields.php ) so i tried to find a solution



solution that i used

components/com_virtuemart/views/user/tmpl/edit_address_userfields.php


Line 35-37

Find code

if($closeDelimiter) { ?>

    </table>

</fieldset>


Replace with

if($closeDelimiter) { ?>

   
</fieldset>




I don't know if this is right but it seems to work on my site.

Title: Re: Template is broken when editing BT address in VM 2.0.22b
Post by: Milbo on August 30, 2013, 13:12:19 PM
Please try instead

if($closeDelimiter) { ?>
</table>
</fieldset>
<?php
} else {
?>

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

<?php
$closeDelimiter true;
$openTable true;
}
Title: Re: Template is broken when editing BT address in VM 2.0.22b
Post by: escapezone on August 31, 2013, 00:51:49 AM
Hello Milbo,

Thank you very much for your reply!

I tried your code but it didn't work...

then i tried this code :

if($closeDelimiter) { ?>
<table>
</fieldset>
<?php
} else {
?>

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

<?php
$closeDelimiter true;
$openTable true;
}


I think the problem is the </table>

When i used your code i had the same problem but when i replaced the </table> with <table> the problem dissapeared...
Title: Re: Template is broken when editing BT address in VM 2.0.22b
Post by: rudders360 on September 03, 2013, 21:34:51 PM
I replaced the edit_address_userfields.php with the one from 2.0.20b...

differences show on image...

[attachment cleanup by admin]