Catalog (Category) Import via Script
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Catalog (Category) Import via Script
Hi,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
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!
Re: Catalog (Category) Import via Script
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
https://aimeos.org/docs/Developers#Managers_and_items
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Catalog (Category) Import via Script
Hi,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
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!
Re: Catalog (Category) Import via Script
You should have:
You can add the missing ./Controller/Jobs/ directories yourself. You job is executed by the artisan command, e.g. for
run
Code: Select all
./ext/myext/controller/jobs/src/
Code: Select all
./ext/myext/controller/jobs/src/Product/Import/Myimport/Standard.php
Code: Select all
php artisan aimeos:jobs product/import/myimport
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star