How can I choose Domain's type of stock? (right question: how to import only stocks qty?)
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ЕвгенияСемихова(ИПСемиховаЕ.А.)
- Posts: 70
- Joined: 11 Jan 2025, 09:45
How can I choose Domain's type of stock? (right question: how to import only stocks qty?)
Try to do my last steps for importing items, but has stopped at final cell of csv file.
What I do:
1) Create csv file with full informations, unclude price, all texts and stock's quantity:

2) At test machine (with SQL DB) - all is working fine (but not select stock from stock's domain).
At ES site - import can't finish:

I remember that you have write about this - ES work with total data (document's type of DB).
3) One new Stock was create, but not at stock's domaine:

---------------
I have read Instruction and how I can understand - by default at Aimeos not open "stock" domain for import/export - right?

Maybe I can add one more parameter at shop.php file for choose right domain type? Like for attribute:
or it is only one way - add stock domain to mshop?
P.S.: Deepseek say that I need to add:

but I don't trust him
What I do:
1) Create csv file with full informations, unclude price, all texts and stock's quantity:

2) At test machine (with SQL DB) - all is working fine (but not select stock from stock's domain).
At ES site - import can't finish:

I remember that you have write about this - ES work with total data (document's type of DB).
3) One new Stock was create, but not at stock's domaine:

---------------
I have read Instruction and how I can understand - by default at Aimeos not open "stock" domain for import/export - right?

Maybe I can add one more parameter at shop.php file for choose right domain type? Like for attribute:
Code: Select all
'attribute' => [
61 => 'attribute.list.type',
62 => 'attribute.code', // 1
63 => 'attribute.label',
64 => 'attribute.code', // 2
65 => 'attribute.label',
66 => 'attribute.code', // 3
67 => 'attribute.label',
68 => 'attribute.code', // 4
69 => 'attribute.label',
70 => 'attribute.code', // 5
71 => 'attribute.label',
],
P.S.: Deepseek say that I need to add:

but I don't trust him

Last edited by ЕвгенияСемихова(ИПСемиховаЕ.А.) on 06 Mar 2025, 22:30, edited 1 time in total.
Debian 12, PHP 8.3, Server 1 = Aimeos 2024.10.13, Server 2 = ES 8.17.1
life is full of many new and interesting things
life is full of many new and interesting things
- ЕвгенияСемихова(ИПСемиховаЕ.А.)
- Posts: 70
- Joined: 11 Jan 2025, 09:45
Re: How can I choose Domain's type of stock?
After add second job of import prices I think I have found problem solution. Will try after some sleep.
Debian 12, PHP 8.3, Server 1 = Aimeos 2024.10.13, Server 2 = ES 8.17.1
life is full of many new and interesting things
life is full of many new and interesting things
Re: How can I choose Domain's type of stock? (right question: how to import only stocks qty?)
Adding stock levels to product CSV doesn't work for ES because there's no generated product ID for the documents until they are stored in ES. Use the separate stock/import/csv job controller instead.ЕвгенияСемихова(ИПСемиховаЕ.А.) wrote: ↑05 Mar 2025, 18:28 1) Create csv file with full informations, unclude price, all texts and stock's quantity:
2) At test machine (with SQL DB) - all is working fine (but not select stock from stock's domain).
At ES site - import can't finish:
I remember that you have write about this - ES work with total data (document's type of DB).
That was a bug fixed now in ai-controller-jobs dev-master and 2024.10.x-dev.ЕвгенияСемихова(ИПСемиховаЕ.А.) wrote: ↑05 Mar 2025, 18:28 3) One new Stock was create, but not at stock's domaine:
It lies when it comes to Aimeos related code like most other AIs :-/ЕвгенияСемихова(ИПСемиховаЕ.А.) wrote: ↑05 Mar 2025, 18:28 P.S.: Deepseek say that I need to add:
but I don't trust him![]()
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
