VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: mrtechguy on October 07, 2013, 16:28:18 PM

Title: [SOLVED] "Bill to" showing when clicked on Edit Shipping Information
Post by: mrtechguy on October 07, 2013, 16:28:18 PM
Hi All,
I have found a bug where when in the cart you click on Add Edit Shipping information the header on the page actually displays "Bill To" (see attachment).

Just wondering whether this is a known bug, as it is quite confusing for people who are placing orders as they believe they are modifying the wrong details.

Thanks
mtg

[attachment cleanup by admin]
Title: Re: "Bill to" showing when clicked on Edit Shipping Information
Post by: mrtechguy on October 14, 2013, 18:55:01 PM
I have narrowed the bug down to the variable $field['title'] in the edit_address_userfields.php file. I cannot seem to find where this array is filled from. Could anyone please point me in the right direction. It seems to fill all other fields correctly apart from the Ship To one.

Thanks,
mtg
Title: Re: "Bill to" showing when clicked on Edit Shipping Information
Post by: PRO on October 14, 2013, 19:46:03 PM
edit_address.php

this should should the right info. is it not working?

   <h2><?php
      if ($this->address_type == 'BT') {
         echo JText::_ ('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL');
      }
      else {
         echo JText::_ ('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL');
      }
      ?>
   </h2>
Title: Re: "Bill to" showing when clicked on Edit Shipping Information
Post by: mrtechguy on October 15, 2013, 14:37:19 PM
Hi Pro,
The lines you are referring to modify the first header (highlighted in red) as opposed to the issue header (which is highlighted in green).
(http://msmith.com.au/billto.jpg)

Thanks,
mtg

Title: Re: "Bill to" showing when clicked on Edit Shipping Information
Post by: PRO on October 15, 2013, 16:52:25 PM
look in user fields, and look at the "delimeters" to make sure its not assigned to shipping page
Title: Re: [SOLVED]"Bill to" showing when clicked on Edit Shipping Information
Post by: mrtechguy on October 16, 2013, 17:21:16 PM
Hi PRO,
Thanks, this has fixed the issue.

Regards,
mtg