VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: drukman2000 on August 03, 2013, 07:42:12 AM

Title: RTL PDF Invoice
Post by: drukman2000 on August 03, 2013, 07:42:12 AM
Just edited the files under /invoice for having all emails sent as RTL.
(yes - template html directory was used).

YET couldn't find which file to edit so the PDF Invoice will be RTL.

Anyone knows which are the EXACT files to edit for that ?

Drukman.

Joomla! 2.5.13
Virtuemart 2.0.22a
Title: Re: RTL PDF Invoice
Post by: Maxim Pishnyak on August 03, 2013, 12:29:21 PM
com_virtuemart.2.0.22\components\com_virtuemart\views\invoice\tmpl\invoice.php
//index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&order_number=xx&order_pass=p_yy
//
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::stylesheet('vmpanels.css', JURI::root() . 'components/com_virtuemart/assets/css/');


Title: Re: RTL PDF Invoice
Post by: drukman2000 on August 03, 2013, 14:03:37 PM
Quote from: Maxim Pishnyak on August 03, 2013, 12:29:21 PM
com_virtuemart.2.0.22\components\com_virtuemart\views\invoice\tmpl\invoice.php
//index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&order_number=xx&order_pass=p_yy
//
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
JHTML::stylesheet('vmpanels.css', JURI::root() . 'components/com_virtuemart/assets/css/');



Are you sure ?
Which lines have you changed ?
I remember looking at this file but thought it wasn't the right one to change.
Drukman.
Title: Re: RTL PDF Invoice
Post by: Maxim Pishnyak on August 03, 2013, 17:55:00 PM
The question was
Quote from: drukman2000 on August 03, 2013, 07:42:12 AM
Anyone knows which are the EXACT files to edit for that ?
Thus it was my answer.

RTL is controlled by css department
JHTML::stylesheet('vmpanels.css', JURI::root() . 'components/com_virtuemart/assets/css/');
Bolded is a file that could be useful for you in customizing css styles.
Title: Re: RTL PDF Invoice
Post by: drukman2000 on August 05, 2013, 04:53:08 AM
Quote from: Maxim Pishnyak on August 03, 2013, 17:55:00 PM
The question was
Quote from: drukman2000 on August 03, 2013, 07:42:12 AM
Anyone knows which are the EXACT files to edit for that ?
Thus it was my answer.

RTL is controlled by css department
JHTML::stylesheet('vmpanels.css', JURI::root() . 'components/com_virtuemart/assets/css/');
Bolded is a file that could be useful for you in customizing css styles.
Isn't the pdf attachment handled by invoice_order.php ?
Title: Re: RTL PDF Invoice
Post by: Maxim Pishnyak on August 05, 2013, 12:04:59 PM
com_virtuemart.2.0.22\components\com_virtuemart\views\invoice\tmpl\invoice.php
<div class='spaceStyle'>
    <?php
    
echo $this->loadTemplate('order');
    
?>

</div>

Title: Re: RTL PDF Invoice
Post by: nicidea on May 16, 2014, 22:27:13 PM
Hello maxim,
please help that where can i edit the "order_item" style in "pdf invoices"?
in this screenshot (attached to the msg) you can see that all of the fields are rtl but "order_item" and header fields are ltr and have not changed. I want to display these fileds from right to left as you can see in the figure below.
thank you so much

[attachment cleanup by admin]