Catalog (Category) Import via Script

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!
mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

Re: Catalog (Category) Import via Script

Post by mohal_04 » 06 Jul 2018, 11:03

aimeos wrote:Like said, create a job controller that uses the managers to import an arbitrary format directly:
- https://aimeos.org/docs/Developers/Cont ... controller
- https://aimeos.org/api/latest/namespace ... MShop.html
Hi,

I know you are trying your best to help me but the links you sent me are little bit advanced for me. Can you send few others links that help me understand basics first? I shall look into these links to understand how to implement managers.

Thanks!

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

Re: Catalog (Category) Import via Script

Post by aimeos » 09 Jul 2018, 07:40

Here you can read how to work with managers to search and save items like products, attributes, texts, prices, etc. first:
https://aimeos.org/docs/Developers#Managers_and_items
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

Re: Catalog (Category) Import via Script

Post by mohal_04 » 10 Jul 2018, 10:21

aimeos wrote:Here you can read how to work with managers to search and save items like products, attributes, texts, prices, etc. first:
https://aimeos.org/docs/Developers#Managers_and_items
Hi,

I have another small question related to this same issue. Currently, all jobs are inside "ai-controller-jobs" extension that comes with Aimeos. So, I need to create my own job to import product then where should I add that in my extension? Because I don't have following kind of directory structure in my extension:

./ext/ai-controller-jobs/controller/jobs/src/Controller/Jobs

Plus, where would I configure my job to be run?

Please, reply!

Thanks!

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

Re: Catalog (Category) Import via Script

Post by aimeos » 10 Jul 2018, 21:51

You should have:

Code: Select all

./ext/myext/controller/jobs/src/
You can add the missing ./Controller/Jobs/ directories yourself. You job is executed by the artisan command, e.g. for

Code: Select all

./ext/myext/controller/jobs/src/Product/Import/Myimport/Standard.php
run

Code: Select all

php artisan aimeos:jobs product/import/myimport
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply