VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: marcoscoelho on February 03, 2014, 17:07:47 PM

Title: Changes in the client fields in order
Post by: marcoscoelho on February 03, 2014, 17:07:47 PM
Hi. I´d like to change the client fields in the order layout, the pdf when you click on the print icon in the orders menu.

I dont use the "ship to" fields, so i erased them to save space on paper, but its useless unless i move some fields on the "bill to" to the right, as you can see in the image.
If anyone could help me and give some information about how can i do this i will be grateful.

(http://www.milinanda.pt/images/apagar/order.JPG)
Thanks
Title: Re: Changes in the client fields in order
Post by: jenkinhill on February 04, 2014, 15:30:01 PM
Layout is set in backend Shop/Invoice tab in combination with the template file, components/com_virtuemart/views/invoice/tmpl/invoice.php

In you edit invoice.php be sure to use the edited file as a template override.
Title: Re: Changes in the client fields in order
Post by: marcoscoelho on February 05, 2014, 03:09:34 AM
Hi. Thanks for your help, but the changes i need to do cannot be done in backend Shop/Invoice tab nor in the invoice.php

I want to put some of the fields to the right, not all, but in the invoice.php it appears like this:

       <?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_BILL_TO_LBL') ?></strong> <br/>
       <table border="0"><?php
       foreach ($this->userfields['fields'] as $field) {
      if (!empty($field['value'])) {
          echo '<tr><td class="key">' . $field['title'] . '</td>'
          . '<td>' . $field['value'] . '</td></tr>';
      }
       }
       ?></table>
   </td>
   <td valign="top" ><strong>

Where can i "edit" the user fields?

Thanks again