Two companies (vendors) in two countries

  • Posts: 159
  • Thank you received: 2
10 years 6 months ago #156817

-- 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_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

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 6 months ago #156843

Hi,

Multilingual support
It depends of what you want to do. HikaShop uses the Joomla translation system for every text in the views and in his emails.
So you can have a full translated website in two languages without any problem.
For the products and the categories, HikaShop does not allow to translate all using the Joomla translation system.
If we follow the multi-language Joomla way, we have to create two different products for two different languages. But the result will be : two different product id, two different product code.. Two different statistics.
So if you want to translate the product name and description, for the moment the best is to use Joomfish or Falang.

Invoices in different languages
Yes, the mails only contains translated text using the Joomla language system.

Split up for two companies
Using HikaMarket multivendor, you can define two vendors (your two companies) and affect the different products to the wanted company.
When an order will be made by a customer, depending the bought products, HikaMarket will create one or two "sub orders".
A "sub order" only contains products for one single vendor and his visible by his vendor.
It means that the order (which can be seen by the customer and the admin) will be split in two orders. One for each company.
Because the customer just see one order, he will paid just once.
Each vendor will be able to send his products to the customer, each sub order will have his own life.

HikaMarket is installed in our demo website, you're free to login in the front-end and in the back-end to test it and see how it works.
The website is reset every 2 or 3 hours so you can make some modification without any problem.

About the VM import, please open a thread in the HikaShop forum section.
I know that our import system does not work very well when it tried to import a VM2 which has been import from a VM1.
If you can (or maybe it is already the case) do the directly directly from the VM1 instance.
It will be easier to move the data from an HikaShop to another HikaShop (J1.5 => J2.5 / J3.x).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 6 months ago #156933

Hi Jerome,
thanks for your answer.
I played around with the HikaMarket features. Unfortunately the configuration page for the vendors is not accessible. Here are some more questions:

1. I struggled to create two invoices with two different vendors from one order. The invoices for both vendors showed only the main address (ACME Corporation). Will that be part of the configuration?

2. Can I determine an invoice start number for each vendor? Because we are in the middle of my fiscal year and I have to continue with my invoice numbers.

3. For my spanish bookkeeping I would need invoices in Spanish. What happens, if a customer orders on the German part of the shop? Will I be able to create an invoice in Spanish?
I use a merchandise management system for the invoices at the moment and have to import all orders from Virtuemart and then process them to get the right invoices for the two companies. This system works, but I have to edit each order and I can do it only from my computer and not online from everywhere.

Sorry, for all the questions, but changing a shop system is a big step...
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #156996

Hi,

1. It displays the vendor address if the invoice in generated from the front-end. In the backend it will display the "store address" from the HikaShop configuration.

2. Each vendor have his own counter.

3. The emails are in the customer language.
The invoices are in the logged user language.

What do you means with : "The configuration page for the vendors are not accessible" ?

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #157113

Hi Jerome,
thanks for your answer. I spent some time to make myself familiar with Hikashop and it seems to meet all my needs. There is only one more thing that I couldn't figure out on the demo website:

When a vendor opens an order at the front end that was made from a customer in France in french, the vendor can quickly change the invoice to another language. I did this on your demo website. But what didn't change was the product name. Even though the product has descriptions and names in three languages, the invoice doesn't switch the product name. Can that be configuered? If that works I will go for Hikashop and buy the Bussines Verison plus Hika Market Multi Vendor.

Thanks
Roger

P.S.: "What do you means with : "The configuration page for the vendors are not accessible" ?"
In the backend drop down the HikaMarket menu and click 'Configuration'.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #157164

Hi,

When the order is made, the product name is stored in the database (in case when the product change afterwards).
So the product name is no more multi-lingual in the orders.

For the accesses, Please check the ACL in HikaMarket dashboard (the option button).
We added these ACL in the latest build and it is possible that the default values are not good.
I will make some new test with fresh installed, we mostly test in updates.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #157180

Hi,
hm, could you think of a solution for this? All I need is an invoice in Spanish even though the order comes from a German or English client. The Spanish tax department doesn't accept English or German product descriptions.
Would it be possible to add a translation to the invoice? Maybe a custom field for the products, that shows only on invoices. In that case I could have the language of the order and a Spanish translation. That would work for the authorities...
Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #157266

Hi,

Well, you can modify the override (thanks to an override) in order to load the current product name without using the "order_product_name".
You have to check that the "order_product" right have an "product_id" and display the "product_name" of the product.

If the product does not exist anymore, you couldn't display the product name so you should fallback to the order_product_name.

At this moment I think you will have something better for your requirements.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #157384

Thanks Jerome,
I bought Hika Shop Business and the Multi Vendor extension. That will keep me busy for a while to configure everything.
I might need your help with that invoice thing in a couple of days, if everything else is up and running.
Thanks for your help so far
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #157390

Hi,

You're welcome !

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #157591

Hi Jerome,
could you please point me to the right files, where I can do the override?
Mercy
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #157606

Hi,

The view is called "invoice".
You will find "order | invoice" in HikaShop and "ordermarket | invoice" in HikaMarket.
There is also the view "order | show" in the HikaShop front-end.

It depends where you want to put your modifications.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159005

Hi Jerome,
there is much more work involved than I expected!
I set up two vendors and all the products are assigned to one of them.
Here are a view things I couldn't find:

1. Where can I layout the invoice template for each vendor - i.e. different logos and footers with the addresses etc..

2. I'm really struggling to find the right file to change the language for the product names. Is there a chance that somebody can do it for me? Payed job of course!

Thanks
Roger

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #159012

Hi,

1. There is no invoice template per vendor, all invoices uses the same template in HikaMarket.
" frontend - HikaMarket | your_frontend_template | ordermarket | invoice "

You will see some specific content (which is different than the HikaShop invoice views) which display the address of the vendor using his custom fields.
The idea is to use the vendor fields to display the content you want ; so you could display the vendor image, the vendor address, etc.

2. I am sorry but I don't see what you mean exactly.
I will suggest you to post a new thread in the HikaShop section to get more details about your problem.
We also have a "commercial jobs" section in this forum ; but without understand correctly your requirements, I can't recommend you to use it.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159062

Hi Jerome,
thanks for your answer.
I found the invoice template. Well, this will be to hard for me, since my PHP knowledge is very limited.
All I need is a logo picture for each vendor, the shipping date and a footer with some text (bank information, tax number). I don't know which tags I would need and how to place them.
Please help

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159063

Here is how you explained to me how to translate the product name in a vendor invoice:

Well, you can modify the override (thanks to an override) in order to load the current product name without using the "order_product_name".
You have to check that the "order_product" right have an "product_id" and display the "product_name" of the product.

I don't know where to look for the override file and what to do...

Last edit: 10 years 5 months ago by Rokell.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #159234

Hi,

To display the vendor image

<?php
	$vendor_image = null;
	$imageHelper = hikamarket::get('shop.helper.image');
	if(!empty($this->vendor->vendor_image))
		$vendor_image = $imageHelper->getThumbnail($this->vendor->vendor_image, array(100,100), array());
	if(empty($vendor_image) || !$vendor_image->success)
		$vendor_image = $imageHelper->getThumbnail($this->config->get('default_vendor_image', ''), array(100,100), array('default' => true), true);
?>
<img src="<?php echo @$vendor_image->url; ?>" alt=""/>

You can also access to the vendor custom field using the "$this->vendor" object ; like I accessed to the "vendor_image" in the previous code.

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.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159950

Hi Jerome,
thanks for the code. I put it in and it shows the Logos for each vendor now!

I'm still thinking about a possibility to show the product name in a different language in the invoice. I tried to change 'order_product_name' in 'oder_name' as suggested, but it didn't change the name in the invoice. Maybe I put it in the wrong place. I attached a screen shoot to show where I found 'order_product_name' in line 132.

Where are the vendor custom fields? I can't find any. Only in HikaShop, but the vendors are in HikaMarket and the HikaShop custom fields are for all the vendors. I need a footer in each invoice with specific information for each vendor.
Thanks
Roger

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #159956

This invoice thing is a really hard one! I'm trying to adjust the date so it will show in one line:



There is a 'width' in the invoice code. But changing it doesn't have any effect.




In the vendor address the 'state' is shown in a weird format. How can I change this?
Thanks
Roger

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #159963

Hi,

If you have the possibility, when posting several questions in a single thread, to give titles or something like that ; it will help me to not miss a question.
Thanks !

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.

Vendor custom fields
The vendor custom fields are displayed with the other custom fields in HikaShop.
I think it is easier to display all custom fields in the same place ; they have a type so you can find the custom fields you want using the column/filter.
In the invoice, you can display a custom field using
$field = $this->extraFields['vendor']['my_vendor_custom_field'];
$fieldname = $field->field_namekey;
echo $this->fieldsClass->show($field, $this->vendor->$fieldname);

invoice design
Regarding your screenshot, the width for the zone with the date is around the 100px.
So you should increase the value you highlighted in your second screenshot.

Sate/Country custom field problem
Please edit the file "components/com_hikamarket/views/ordermarket/view.html.php" and replace the code
		$vendorFields = null;
		$extraFields = array(
			'vendor' => $fieldsClass->getFields('frontcomp', $vendorFields, 'plg.hikamarket.vendor')
		);
By:
		$vendorFields = $vendor;
		$extraFields = array(
			'vendor' => $fieldsClass->getFields('frontcomp', $vendorFields, 'plg.hikamarket.vendor')
		);
It will fix this problem.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.116 seconds
Powered by Kunena Forum