[TYPO3-commerce] How to reset the order-numbers?
Franz Koch
typo.removeformessage at fx-graefix.de
Sun Oct 7 12:23:56 CEST 2007
Hi Ingo,
> because the
>> extension stores the count-value in a file named
>> 'YOUR_DB_NAME.tx_com_ordernumber_orderhooks.counter' located in /tmp
>> (which is not a good idea in my eyes).
>
> do you know a way to have the absolut path to your typo3temp directory
> as variable? If We find a solution, we could easily change this and make
> it also windows compatible.
t3lib_div::writeFileToTypo3tempDir($filepath,$content) or
PATH_site.'typo3temp/' or
t3lib_div::getFileAbsFileName('typo3temp/myfile.txt')?
Last option is what I'm using in my ordernumber-function. It'll also be
a good idea to make the path configurable with TS, so the user can
decide where to store the file if he doesn't like the default storage
location. I f.e. store it in the fileadmin/ directory so that it doesn't
get deleted in any way.
--
Kind regards,
Franz Koch
More information about the TYPO3-project-commerce
mailing list