Stock Import // Timeframe

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kai_lf
Posts: 7
Joined: 26 Mar 2021, 21:47

Stock Import // Timeframe

Post by kai_lf » 28 Mar 2023, 13:39

Is it possible to import the timeframe (stock.timeframe) with stocks.csv?
Or is it possible to import it via the product xml importer?

Any advice is welcome :-)

TYPO 11.5.25 // aimeos 22.10.7

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

Re: Stock Import // Timeframe

Post by aimeos » 29 Mar 2023, 07:28

You can import it in the stock.csv file. The format is:

Code: Select all

product code,stocklevel,type,timeframe
The timeframe must be in ISO date/time format, e.g. "2023-03-29 00:00:00"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

kai_lf
Posts: 7
Joined: 26 Mar 2021, 21:47

Re: Stock Import // Timeframe

Post by kai_lf » 30 Mar 2023, 06:49

Ok. Cool. That works perfect.
Is it also possible to import the "delivery within" Field?

My CSV looks like:
4004293127181,666,default,2023-04-05 12:34:56,7

The "delivery within" ( in this case -> 7 ) is ignored :-(

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

Re: Stock Import // Timeframe

Post by aimeos » 30 Mar 2023, 07:37

Not at the moment but if you can create a PR which adds the field here, we will merge and backport it to 2022.10:
https://github.com/aimeos/ai-controller ... #L452-L454
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply