[Skip to main content](#vessel-content)

#   edit invoice and shipping invoice.

##

- **[scharfet](/forum/user/3989-scharfet "View scharfet's Profile")**
- [![scharfet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3989.jpg)](/forum/user/3989-scharfet "View scharfet's Profile") Topic Author
- [ Offline](/forum/user/3989-scharfet)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 9 months ago -  13 years 9 months ago [\#86611](#86611) by [scharfet](/forum/user/3989-scharfet "View scharfet's Profile")  *[edit invoice and shipping invoice.](/forum/4-how-to/77665-edit-invoice-and-shipping-invoice#86611 "Hello,  I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.  1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)  the invoice should be:  - add new column, &quot;vat-percentage&quot; to every product - shipping cost before vat (is not added to the image above!) - subtotal for every vat-category - sum of different vat  2.) the shipping invoice: The client fills in the billing address. Which is normally also the shipping address. Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.  At the moment the billing address is not displayed when billing adress and shipping adress are the same. Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.  Thank you for your indications.")* was created by *[scharfet](/forum/user/3989-scharfet "View scharfet's Profile")*

Hello,

I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.

**1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)**
image missing http://www.estudiohr.com/zzz/invoice-now.png

**the invoice should be:**
image missing http://www.estudiohr.com/zzz/invoice.png

- add new column, "vat-percentage" to every product
- shipping cost before vat (is not added to the image above!)
- subtotal for every vat-category
- sum of different vat

**2.) the shipping invoice:**
The client fills in the billing address. Which is normally also the shipping address.
Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.

At the moment the billing address is not displayed when billing adress and shipping adress are the same.
Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.

Thank you for your indications.

Last edit: 13 years 9 months ago by [scharfet](/forum/user/3989-scharfet "View scharfet's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjY1LWVkaXQtaW52b2ljZS1hbmQtc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 9 months ago [\#86692](#86692) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[edit invoice and shipping invoice.](/forum/4-how-to/77665-edit-invoice-and-shipping-invoice#86692 "Hello,  I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.  1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)  the invoice should be:  - add new column, &quot;vat-percentage&quot; to every product - shipping cost before vat (is not added to the image above!) - subtotal for every vat-category - sum of different vat  2.) the shipping invoice: The client fills in the billing address. Which is normally also the shipping address. Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.  At the moment the billing address is not displayed when billing adress and shipping adress are the same. Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.  Thank you for your indications.")*

Hi,

You can edit the view "order / invoice" (backend template) in HikaShop &gt; Display &gt; Views.
In this view, change all the elements as desired, this view is for invoice and shipping invoice.

You should find all the needed elements in the object "$this-&gt;element", it require some PHP knowledge.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjY1LWVkaXQtaW52b2ljZS1hbmQtc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")**
- [![lanzanet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7823.png)](/forum/user/7823-lanzanet "View lanzanet's Profile")
- [ Offline](/forum/user/7823-lanzanet)

Less More

- Posts: 107
- Thank you received: 3
-
-

13 years 8 months ago [\#93125](#93125) by [lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")  Replied by *[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")* on topic *[edit invoice and shipping invoice.](/forum/4-how-to/77665-edit-invoice-and-shipping-invoice#93125 "Hello,  I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.  1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)  the invoice should be:  - add new column, &quot;vat-percentage&quot; to every product - shipping cost before vat (is not added to the image above!) - subtotal for every vat-category - sum of different vat  2.) the shipping invoice: The client fills in the billing address. Which is normally also the shipping address. Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.  At the moment the billing address is not displayed when billing adress and shipping adress are the same. Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.  Thank you for your indications.")*

Hi.

I've got the attachinvoice plugin and I want to modify the file invoice.php to get a new column and show the product tax by each line (percentage). I've modified the code and now the column appears in the invoice, but I don't know the code to extract the tax percentage from the database. Please can you help me? I know where to put it but not the code.

Please help!

Thanks.

PD: I attach an image of my invoice layout.

[ ![TaxColumn.PNG](/forum/attachment/8931) ](/forum/attachment/8931 "TaxColumn.PNG")

- [ ![TaxColumn.PNG](/forum/attachment/8931) ](/forum/attachment/8931 "TaxColumn.PNG") [ ](/forum/attachment/8931?download=1 "TaxColumn.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjY1LWVkaXQtaW52b2ljZS1hbmQtc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#93204](#93204) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[edit invoice and shipping invoice.](/forum/4-how-to/77665-edit-invoice-and-shipping-invoice#93204 "Hello,  I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.  1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)  the invoice should be:  - add new column, &quot;vat-percentage&quot; to every product - shipping cost before vat (is not added to the image above!) - subtotal for every vat-category - sum of different vat  2.) the shipping invoice: The client fills in the billing address. Which is normally also the shipping address. Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.  At the moment the billing address is not displayed when billing adress and shipping adress are the same. Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.  Thank you for your indications.")*

Hi,

The tax price is in the variable "$product-&gt;order_product_tax".
You can find the variable "$product-&gt;order_product_price" too, so if you make a little calculation you should find the % of the tax without a sql request.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjY1LWVkaXQtaW52b2ljZS1hbmQtc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")**
- [![lanzanet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7823.png)](/forum/user/7823-lanzanet "View lanzanet's Profile")
- [ Offline](/forum/user/7823-lanzanet)

Less More

- Posts: 107
- Thank you received: 3
-
-

13 years 8 months ago [\#93271](#93271) by [lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")  Replied by *[lanzanet](/forum/user/7823-lanzanet "View lanzanet's Profile")* on topic *[edit invoice and shipping invoice.](/forum/4-how-to/77665-edit-invoice-and-shipping-invoice#93271 "Hello,  I'd like to aks how to change some things in invoices and shipping invoices. I hope all these change are possilbe.  1.) the invoice now is like this: (please do not be confused, the two images are in two different laguages.)  the invoice should be:  - add new column, &quot;vat-percentage&quot; to every product - shipping cost before vat (is not added to the image above!) - subtotal for every vat-category - sum of different vat  2.) the shipping invoice: The client fills in the billing address. Which is normally also the shipping address. Only when the client has a different shppping adress, he/she fills in the shipping-adress-form.  At the moment the billing address is not displayed when billing adress and shipping adress are the same. Would it be possible to display the billing address as shipping address when shipping adddress is empty (not filled in)? I hope to explain myself.  Thank you for your indications.")*

Ok. I think it means that these data aren't stored in the database.

To someone who need it, I've made the calculation:

round(($product-&gt;order_product_tax)*100/($product-&gt;order_product_price),0);

and now is working fine. This code calculates the tax percentage. I've rounded it to 0 decimals but you can round it to your desired decimals.

Thanks.

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile"), [anoma3](/forum/user/57799-anoma3 "View anoma3's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3NjY1LWVkaXQtaW52b2ljZS1hbmQtc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.108 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
