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

#   Two companies (vendors) in two countries

##

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

Less More

- Posts: 159
- Thank you received: 2
-
-

12 years 5 months ago -  12 years 5 months ago [\#159970](#159970) by [Rokell](/forum/user/32710-rokell "View Rokell's Profile")  Replied by *[Rokell](/forum/user/32710-rokell "View Rokell's Profile")* on topic *[Two companies (vendors) in two countries](/forum/19-hikamarket/868385-two-companies-vendors-in-two-countries?start=20#159970 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.20 -- PHP version -- : 5.3 -- Browser(s) name and version -- : FF -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I'm using Virtuemart for some years with Joomla 1.5. Because I have so many extras on my Joomla 1.5 I waited until now to upgrade to Joomla 2.5 and VM 2. In the process I wasn't really impressed with VM 2. Basically because there is no on board function for downloadable products. So I came across Hikashop and found some features which would probably fix some of my needs. Because we have two companies in two countries I worked with some custom fixes to create invoices in two different languages etc. Before I jump on the paied version of Hika, I need to know the following things, that I couldn't find in the documentations:  1. Multilingual support - would that work without Joomfish? 2. Can I have invoices in different languages? I.e. a customer from Germany orders on the German part of the shop. But for my bookkeeping I would need an invoice Spanish. 3. Can I have one order from a customer with products that have to be split up for the two companies? I.e. all downloadable products are invoiced by the Spanisch vendor while all physical products we be invoiced by the German company. If a customer orders physical and downloadable products in the same order, I need to split this order up. The customer receives two shipments - one virtuell and one with a parcel service, but he pays everything at once.  What do I need to accomplish this? I installed the free Hika shop version and it looks really promising. Only the import from VM didn't work so far. I was able to import my customers and the categories but no products are shown in the backend. Even though some of the products are shown in the MySQL table of Hika.  Anyway, I hope I could get a quick answer to go ahead... Thanks and best regards Roger")*

Thanks Jerome,
I was able to create a custom field for the vendor. I named the table column 'footer'. I have no PHP knowledge. Could you please tell me where to place 'footer' in the code you gave me? Code:

$field = $this-&gt;extraFields['vendor']['footer']; $fieldname = $field-&gt;field_namekey; echo $this-&gt;fieldsClass-&gt;show($field, $this-&gt;vendor-&gt;$fieldname);

Thanks
Roger

Last edit: 12 years 5 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !!

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

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

Less More

- Posts: 159
- Thank you received: 2
-
-

12 years 5 months ago [\#159977](#159977) by [Rokell](/forum/user/32710-rokell "View Rokell's Profile")  Replied by *[Rokell](/forum/user/32710-rokell "View Rokell's Profile")* on topic *[Two companies (vendors) in two countries](/forum/19-hikamarket/868385-two-companies-vendors-in-two-countries?start=20#159977 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.20 -- PHP version -- : 5.3 -- Browser(s) name and version -- : FF -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I'm using Virtuemart for some years with Joomla 1.5. Because I have so many extras on my Joomla 1.5 I waited until now to upgrade to Joomla 2.5 and VM 2. In the process I wasn't really impressed with VM 2. Basically because there is no on board function for downloadable products. So I came across Hikashop and found some features which would probably fix some of my needs. Because we have two companies in two countries I worked with some custom fixes to create invoices in two different languages etc. Before I jump on the paied version of Hika, I need to know the following things, that I couldn't find in the documentations:  1. Multilingual support - would that work without Joomfish? 2. Can I have invoices in different languages? I.e. a customer from Germany orders on the German part of the shop. But for my bookkeeping I would need an invoice Spanish. 3. Can I have one order from a customer with products that have to be split up for the two companies? I.e. all downloadable products are invoiced by the Spanisch vendor while all physical products we be invoiced by the German company. If a customer orders physical and downloadable products in the same order, I need to split this order up. The customer receives two shipments - one virtuell and one with a parcel service, but he pays everything at once.  What do I need to accomplish this? I installed the free Hika shop version and it looks really promising. Only the import from VM didn't work so far. I was able to import my customers and the categories but no products are shown in the backend. Even though some of the products are shown in the MySQL table of Hika.  Anyway, I hope I could get a quick answer to go ahead... Thanks and best regards Roger")*

> product name in invoices
> About the translation of the order product names, it's not possible like that ; the names are stored in the database to keep the product name when the order has been made ; so if the product change, the order not (It's an obligation for invoices).
> I will suggest you to read other topics in the HikaShop forum (in the HikaShop section). It is HikaShop related and I won't be able to help you here for that problem.
> Like I said, it won't be possible.
> You have to load the product from the database using the product\_id, it is the single and only solution to do that.

OK, but what code do I have to put in the invoice to get the product_id?

Best
Roger

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY4Mzg1LXR3by1jb21wYW5pZXMtdmVuZG9ycy1pbi10d28tY291bnRyaWVzP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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 5 months ago [\#159981](#159981) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Two companies (vendors) in two countries](/forum/19-hikamarket/868385-two-companies-vendors-in-two-countries?start=20#159981 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.20 -- PHP version -- : 5.3 -- Browser(s) name and version -- : FF -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I'm using Virtuemart for some years with Joomla 1.5. Because I have so many extras on my Joomla 1.5 I waited until now to upgrade to Joomla 2.5 and VM 2. In the process I wasn't really impressed with VM 2. Basically because there is no on board function for downloadable products. So I came across Hikashop and found some features which would probably fix some of my needs. Because we have two companies in two countries I worked with some custom fixes to create invoices in two different languages etc. Before I jump on the paied version of Hika, I need to know the following things, that I couldn't find in the documentations:  1. Multilingual support - would that work without Joomfish? 2. Can I have invoices in different languages? I.e. a customer from Germany orders on the German part of the shop. But for my bookkeeping I would need an invoice Spanish. 3. Can I have one order from a customer with products that have to be split up for the two companies? I.e. all downloadable products are invoiced by the Spanisch vendor while all physical products we be invoiced by the German company. If a customer orders physical and downloadable products in the same order, I need to split this order up. The customer receives two shipments - one virtuell and one with a parcel service, but he pays everything at once.  What do I need to accomplish this? I installed the free Hika shop version and it looks really promising. Only the import from VM didn't work so far. I was able to import my customers and the categories but no products are shown in the backend. Even though some of the products are shown in the MySQL table of Hika.  Anyway, I hope I could get a quick answer to go ahead... Thanks and best regards Roger")*

Hi,

I edited your post to fix code (and added the code tags to see correctly the brackets).

To load a product, you have to use the HikaShop product class and use the function "get" to get a product.
You will find other threads in this forum which talk about it (but it is HikaShop related, not HikaMarket).

Regards,

---

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

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

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

Less More

- Posts: 159
- Thank you received: 2
-
-

12 years 5 months ago [\#160080](#160080) by [Rokell](/forum/user/32710-rokell "View Rokell's Profile")  Replied by *[Rokell](/forum/user/32710-rokell "View Rokell's Profile")* on topic *[Two companies (vendors) in two countries](/forum/19-hikamarket/868385-two-companies-vendors-in-two-countries?start=20#160080 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 2.5.20 -- PHP version -- : 5.3 -- Browser(s) name and version -- : FF -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, I'm using Virtuemart for some years with Joomla 1.5. Because I have so many extras on my Joomla 1.5 I waited until now to upgrade to Joomla 2.5 and VM 2. In the process I wasn't really impressed with VM 2. Basically because there is no on board function for downloadable products. So I came across Hikashop and found some features which would probably fix some of my needs. Because we have two companies in two countries I worked with some custom fixes to create invoices in two different languages etc. Before I jump on the paied version of Hika, I need to know the following things, that I couldn't find in the documentations:  1. Multilingual support - would that work without Joomfish? 2. Can I have invoices in different languages? I.e. a customer from Germany orders on the German part of the shop. But for my bookkeeping I would need an invoice Spanish. 3. Can I have one order from a customer with products that have to be split up for the two companies? I.e. all downloadable products are invoiced by the Spanisch vendor while all physical products we be invoiced by the German company. If a customer orders physical and downloadable products in the same order, I need to split this order up. The customer receives two shipments - one virtuell and one with a parcel service, but he pays everything at once.  What do I need to accomplish this? I installed the free Hika shop version and it looks really promising. Only the import from VM didn't work so far. I was able to import my customers and the categories but no products are shown in the backend. Even though some of the products are shown in the MySQL table of Hika.  Anyway, I hope I could get a quick answer to go ahead... Thanks and best regards Roger")*

Hi Jerome,
thanks, the code does work now!
I'll check the product stuff as you suggested in the HikaShop section.
Regards
Roger

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

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