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

#   how do i get vendor on invoice

##

- **[888](/forum/user/32855-888 "View 888's Profile")**
- [![888's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32855-888 "View 888's Profile") Topic Author
- [ Offline](/forum/user/32855-888)

Less More

- Posts: 57
- Thank you received: 1
-
-

12 years 3 weeks ago [\#176534](#176534) by [888](/forum/user/32855-888 "View 888's Profile")  *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#176534 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")* was created by *[888](/forum/user/32855-888 "View 888's Profile")*

-- HikaShop version -- : 2.3.4
-- HikaMarket version -- : 1.4.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1

Hi
how do i get vendor name and address on invoice instead of shop name

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#176539](#176539) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#176539 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hi,

About which invoice are you talking about exactly ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[888](/forum/user/32855-888 "View 888's Profile")**
- [![888's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32855-888 "View 888's Profile") Topic Author
- [ Offline](/forum/user/32855-888)

Less More

- Posts: 57
- Thank you received: 1
-
-

12 years 3 weeks ago [\#176552](#176552) by [888](/forum/user/32855-888 "View 888's Profile")  Replied by *[888](/forum/user/32855-888 "View 888's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#176552 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

hi
in [ demo.hikashop.com/index.php?option=com\_h...51&amp;Itemid=96&amp;lang=en](http://demo.hikashop.com/index.php?option=com_hikashop&ctrl=order&task=show&cid=51&Itemid=96&lang=en)
and in PDF invoice plugin

Vendor info instead webshop info see pic

- [ ![hika.jpg](/forum/attachment/20283) ](/forum/attachment/20283 "hika.jpg") [ ](/forum/attachment/20283?download=1 "hika.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#176622](#176622) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#176622 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hi,

The order that the customer is seeing is the store order ; it contains all products of his order and it is the order that is affiliate to your main vendor.
The vendor have a special "sub sale" order containing only his products. But the customer does not have a direct access to this order/invoice.

If you want to customize the order display in the front end you have to be sure that the customer could not have several vendors (your main vendor included).
Displaying the vendor information in the invoice means that there is only this vendor and this vendor is making the transaction (the customer is paying directly the vendor).

In the order view (or in the PDF invoice plugin) you will have to load the sub-sale of the current "sale" order and then, load the vendor details.
You can see the code in the view "ordermarket &#124; invoice" which display the vendor address instead of the store address.
It uses the vendor custom fields to do that Code:

$vendorClass = hikamarket::get('class.vendor'); $vendor = $vendorClass-&gt;get($vendor_id); // $vendor_id value required. $this-&gt;assignRef('vendor', $vendor); $fieldsClass = hikamarket::get('shop.class.field'); $this-&gt;assignRef('fieldsClass', $fieldsClass); $vendorFields = null; $extraFields = array( 'vendor' =&gt; $fieldsClass-&gt;getFields('frontcomp', $vendorFields, 'plg.hikamarket.vendor') ); $this-&gt;assignRef('extraFields', $extraFields);

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 12 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")**
- [![marremp2's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35420-marremp2 "View marremp2's Profile")
- [ Offline](/forum/user/35420-marremp2)

Less More

- Posts: 71
- Thank you received: 3
-
-

8 years 3 weeks ago [\#299209](#299209) by [marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")  Replied by *[marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#299209 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hello,

I have the same need.

As we have only one vendor per order, the vendor name and adress is displayed in the order and invoice.

I would like now to add some specific mentions on the invoice (siret number, « TVA non applicable, art. 293 B du CGI »), which would be different per vendor, and depends on values given by the vendor in custom fields (e.g Professionnel status).
Ideally, I would like to display also the vendor image.

I looked at the code you are mentioning here, but can't figure out how to use it to display information I want...

Many thanks for your help

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 3 weeks ago [\#299243](#299243) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#299243 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hello,

Since you want to customize the HikaShop invoice, you will need to perform a view override within HikaShop.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

The previous code allow to load details regarding the vendor custom fields.
Now if your fields are mostly "text" or you have specific rules for the display, you might not need to load the fields configuration (it would be require if you use the custom field system to perform the display).

When HikaMarket override the "store address", it also push the vendor object to the view.
So, in your "invoice", you can use Code:

$this-&gt;vendor

to access to the vendor object.
It would give you access to the "vendor_id" but also all vendor fields (including the custom fields).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [marremp2](/forum/user/35420-marremp2 "View marremp2's Profile")

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

- **[seitenspieler](/forum/user/48087-seitenspieler "View seitenspieler's Profile")**
- [![seitenspieler's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48087-seitenspieler "View seitenspieler's Profile")
- [ Offline](/forum/user/48087-seitenspieler)

Less More

- Posts: 64
- Thank you received: 3
-
-

7 years 11 months ago [\#300661](#300661) by [seitenspieler](/forum/user/48087-seitenspieler "View seitenspieler's Profile")  Replied by *[seitenspieler](/forum/user/48087-seitenspieler "View seitenspieler's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#300661 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hello Jerome,

so i did the next steps to reach what i want:
- the restriction of "one vendor per cart" is set
- i createt a custom field in the vendor table called "vendor_address_invoice_logo"
- i changed the general settings in HIKASHOP configuration to get Logo and VAT Number in the invoice
[ ![Bildschirmfoto2018-11-18um17.23.03.png](/forum/attachment/45436) ](/forum/attachment/45436 "...um17.23.03.png")

With these settings i get the VAT Number in the invoice, but not the image. (btw. i work on aa other website called one2.one and there it works)
[ ![Bildschirmfoto2018-11-18um18.06.40.png](/forum/attachment/45437) ](/forum/attachment/45437 "...um18.06.40.png")

To get good looking invoices, i purchased the invoice PDF plugin. And here we have the main store in the header again.
[ ![Bildschirmfoto2018-10-26um13.46.23.png](/forum/attachment/45438) ](/forum/attachment/45438 "...um13.46.23.png")

So i have to do some changes in the .../attachinvoice/invoice.php file to reach something like that:
[ ![Invoice&#95;G1F43&#95;modified.png](/forum/attachment/45439) ](/forum/attachment/45439 "...3&#95;modified.png")

Can you please give me a little more info about that? ("$this-&gt;vendor" is a little less information for a non-programer)
greetings
Peter

- [ ![Bildschirmfoto2018-11-18um17.23.03.png](/forum/attachment/45436) ](/forum/attachment/45436 "...um17.23.03.png") [ ](/forum/attachment/45436?download=1 "...um17.23.03.png")
- [ ![Bildschirmfoto2018-11-18um18.06.40.png](/forum/attachment/45437) ](/forum/attachment/45437 "...um18.06.40.png") [ ](/forum/attachment/45437?download=1 "...um18.06.40.png")
- [ ![Bildschirmfoto2018-10-26um13.46.23.png](/forum/attachment/45438) ](/forum/attachment/45438 "...um13.46.23.png") [ ](/forum/attachment/45438?download=1 "...um13.46.23.png")
- [ ![Invoice&#95;G1F43&#95;modified.png](/forum/attachment/45439) ](/forum/attachment/45439 "...3&#95;modified.png") [ ](/forum/attachment/45439?download=1 "...3&#95;modified.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

7 years 11 months ago [\#300704](#300704) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how do i get vendor on invoice](/forum/23-market-how-to/872509-how-do-i-get-vendor-on-invoice#300704 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  Hi how do i get vendor name and address on invoice instead of shop name")*

Hello,

As I wrote 4 years ago, if you want to display the vendor details into the PDF Invoice, you need to perform some customization.
HikaMarket can override the store address in the HikaShop invoice view, but it cannot interact with the PDF Invoice plugin ; that's why it requires some customization/development.

> In the order view (or in the PDF invoice plugin) you will have to load the sub-sale of the current "sale" order and then, load the vendor details.
> You can see the code in the view "ordermarket \| invoice" which display the vendor address instead of the store address.
> It uses the vendor custom fields to do that

I don't know what you store into the vendor_address_invoice_logo but I'm not sure it would work as you want since it would require to enter some HTML content if you want to force the display of an image.
The solution you choose is not what I would recommend since it will affect also the rest of your HikaShop store.
The usage of a view override and some PHP code would be better ; but I admit that it requires some PHP knowledge.

I invite you to check some other thread in our forum which talk about the same subject.
Thread about the PDF Invoice : [ www.hikashop.com/forum/orders-management...202-pdf-invoice.html](https://www.hikashop.com/forum/orders-management/890202-pdf-invoice.html)
One customization of the PDF Invoice : [ www.hikashop.com/forum/23-market-how-to/...-in-pdf-invoice.html](https://www.hikashop.com/forum/23-market-how-to/887772-vendor-name-in-pdf-invoice.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcyNTA5LWhvdy1kby1pLWdldC12ZW5kb3Itb24taW52b2ljZT90bXBsPW1hcmtkb3du) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.077 seconds

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