Showing taxes on pdf invoice
11 years 6 months ago #201587
by Urbinati
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Showing taxes on pdf invoice was created by Urbinati
-- url of the page with the problem -- :
www.dreamlordpress.it
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Hi,
I'd like to show the TAX category beside the product name, in the pdf invoice generated, like:
Product name | Unit price | product quantity | price | tax category
How to do that?
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
Hi,
I'd like to show the TAX category beside the product name, in the pdf invoice generated, like:
Product name | Unit price | product quantity | price | tax category
How to do that?
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Please Log in or Create an account to join the conversation.
11 years 6 months ago #201607
by Urbinati
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Replied by Urbinati on topic Showing taxes on pdf invoice
It would be enough for me to access the Tax_category data inside the invoice.
Is there an easy way to get access to it?
Is there an easy way to get access to it?
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Please Log in or Create an account to join the conversation.
11 years 6 months ago - 11 years 6 months ago #201591
by nicolas
Replied by nicolas on topic Showing taxes on pdf invoice
Hi,
You'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php in order to modify the PHP code there to add that extra line. It will require some MySQL query to load the tax category from the product_id of each product.
You'll have to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php in order to modify the PHP code there to add that extra line. It will require some MySQL query to load the tax category from the product_id of each product.
Last edit: 11 years 6 months ago by Xavier.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #202097
by Urbinati
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Replied by Urbinati on topic Showing taxes on pdf invoice
Perfectly solved, thank you.
Dreamlord Press
www.dreamlordpress.it
Roleplaying Games in the new era
Please Log in or Create an account to join the conversation.
11 years 5 months ago #205557
by simonev
Replied by simonev on topic Showing taxes on pdf invoice
Hi,
could you please tell me the query and where should I have to add it to show tax category as you said?
Regards,
could you please tell me the query and where should I have to add it to show tax category as you said?
Regards,
Please Log in or Create an account to join the conversation.
11 years 5 months ago #205569
by nicolas
Replied by nicolas on topic Showing taxes on pdf invoice
The query itself is easy but won't be enough to show the tax category. You will need the code to run the query, process the result, do the display...
The query should be:
SELECT * FROM #__hikashop_order_product WHERE product_id=XXX;
where XXX should be your product_id.
If you're not a developer, I would recommend to find one to help you do it.
The query should be:
SELECT * FROM #__hikashop_order_product WHERE product_id=XXX;
where XXX should be your product_id.
If you're not a developer, I would recommend to find one to help you do it.
Please Log in or Create an account to join the conversation.
11 years 5 months ago #205610
by simonev
Replied by simonev on topic Showing taxes on pdf invoice
Ok thanks for support, I solved with another method. I created a "tax" custom field in table product which is showed in PDF invoice. Is not so "elegant solution" but it works!
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds