Import csv with supplier

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
tyteck
Posts: 8
Joined: 23 Apr 2020, 19:22

Import csv with supplier

Post by tyteck » 28 Apr 2020, 14:51

Hello and thanks again for aimeos.

OS : Ubuntu 18.04
Laravel : 6
package : "aimeos/aimeos-laravel": "~2019.10",

In french we have a saying "never 2 without 3" so it is my third question (and the last I hope).

I search in your documentation without finding any way to set supplier during csv import.
I tried to add a column supplier.code in the mapping only to get a big red error.

Is there a way to set supplier code for products during csv import ?

Thanks

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Import csv with supplier

Post by aimeos » 29 Apr 2020, 09:32

At the moment it's not supported to import suppliers in the product CSV file (categories are). You can implement a processor for suppliers in exactly the same way than for categories:
https://github.com/aimeos/ai-controller ... andard.php

Simply replace "catalog" by "supplier" and "Catalog" by "Supplier" (case sensitive). Then, your mapping will work.

If you do so, please create a pull request on Github because we would love to get that feature into the core :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

tyteck
Posts: 8
Joined: 23 Apr 2020, 19:22

Re: Import csv with supplier

Post by tyteck » 29 Apr 2020, 12:08

I was not not sure about the process.
Thanks for your reply. :)

tyteck
Posts: 8
Joined: 23 Apr 2020, 19:22

Re: Import csv with supplier

Post by tyteck » 04 May 2020, 08:57

Hello there
I've "finished" the product/import/csv that take care of supplier.
I would like to know how I can submit it to you.
I followed https://aimeos.org/docs/Developers/Git_workflow it but not really sure.
I will submit it as it and let you come back to me.
I'm expecting a reject :)

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Import csv with supplier

Post by aimeos » 07 May 2020, 08:07

Have you already been able to improve your PR?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

OscarMessinaJr
Posts: 1
Joined: 19 May 2020, 12:33

Re: Import csv with supplier

Post by OscarMessinaJr » 19 May 2020, 12:36

Any predictions when we should see this feature? It would be great to import products with supplier

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: Import csv with supplier

Post by Travin » 18 Jun 2020, 06:16

aimeos wrote: 29 Apr 2020, 09:32 https://github.com/aimeos/ai-controller ... andard.php

Simply replace "catalog" by "supplier" and "Catalog" by "Supplier" (case sensitive). Then, your mapping will work.
It seems to me a little bit wrong, because of process method is not fully suitable for Supplier domain. Simple replacing is not working, I've tried now.


Also, as I see, we have to save supplier <-> product relation to table mshop_supplier_list, not at mshop_product_list despite of price <-> product and media <-> product relations, which store at mshop_product_list

Will do that today
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Import csv with supplier

Post by aimeos » 18 Jun 2020, 06:24

Exactly and the catalog importer for product CSV does the same for mshop_catalog_list instead of mshop_supplier_list
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
AndreyFedotov
Posts: 3
Joined: 01 Mar 2021, 10:52

Re: Import csv with supplier

Post by AndreyFedotov » 09 Mar 2021, 09:58

aimeos wrote: 29 Apr 2020, 09:32 At the moment it's not supported to import suppliers in the product CSV file (categories are). You can implement a processor for suppliers in exactly the same way than for categories:
https://github.com/aimeos/ai-controller ... andard.php

Simply replace "catalog" by "supplier" and "Catalog" by "Supplier" (case sensitive). Then, your mapping will work.

If you do so, please create a pull request on Github because we would love to get that feature into the core :-)
Is there any update about this case? I need to import products and associate existed suppliers. There are only two possible values how can I do import?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Import csv with supplier

Post by aimeos » 09 Mar 2021, 18:13

It's implemented and available. Here's the source code:
https://github.com/aimeos/ai-controller ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply