News:

Looking for documentation? Take a look on our wiki

Main Menu

Changes in the client fields in order

Started by marcoscoelho, February 03, 2014, 17:07:47 PM

Previous topic - Next topic

marcoscoelho

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.


Thanks
Thanks

Joomla 2.5.17
VirtueMart2.0.26a
VirtueMart_allinone 2.0.26a
Versão PHP    5.3.28

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

marcoscoelho

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
Thanks

Joomla 2.5.17
VirtueMart2.0.26a
VirtueMart_allinone 2.0.26a
Versão PHP    5.3.28