How can I choose Domain's type of stock? (right question: how to import only stocks qty?)

How to configure and adapt Aimeos based shops as developer
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!
User avatar
ЕвгенияСемихова(ИПСемиховаЕ.А.)
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?)

Post by ЕвгенияСемихова(ИПСемиховаЕ.А.) » 05 Mar 2025, 18:28

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:

Image

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:

Image

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:

Image

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

Image

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',
    ],
or it is only one way - add stock domain to mshop?

P.S.: Deepseek say that I need to add:
Image

but I don't trust him :roll:
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

User avatar
ЕвгенияСемихова(ИПСемиховаЕ.А.)
Posts: 70
Joined: 11 Jan 2025, 09:45

Re: How can I choose Domain's type of stock?

Post by ЕвгенияСемихова(ИПСемиховаЕ.А.) » 06 Mar 2025, 22:28

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

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

Re: How can I choose Domain's type of stock? (right question: how to import only stocks qty?)

Post by aimeos » 07 Mar 2025, 11:39

ЕвгенияСемихова(ИПСемиховаЕ.А.) 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).
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 3) One new Stock was create, but not at stock's domaine:
That was a bug fixed now in ai-controller-jobs dev-master and 2024.10.x-dev.
ЕвгенияСемихова(ИПСемиховаЕ.А.) wrote: 05 Mar 2025, 18:28 P.S.: Deepseek say that I need to add:
but I don't trust him :roll:
It lies when it comes to Aimeos related code like most other AIs :-/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply