[TYPO3-commerce] Stock handling
Pascal Cramer
pascal at NOSPAMroguesheep.nl
Thu May 29 14:36:01 CEST 2008
From the manual:
---
the same you have to check in the method “load_articles” of the class
“lib/class.tx_commerce_product.php”
---
so I changed the load_articles function the part
----
$this->articles[$article_uid]=new
tx_commerce_article($article_uid,$this->lang_uid);
$this->articles[$article_uid]->load_data();
----
into
----
$this->articles[$article_uid]=t3lib_div::makeInstance('tx_commerce_article');
$this->articles[$article_uid]->init($article_uid,$this->lang_uid);
$this->articles[$article_uid]->load_data();
----
If the Commerce team is reading this little thread: is this orignal code a
possible bug and should this be reported and changed?
Regards,
Pascal
Karsten wrote:
> Pascal Cramer skrev:
>> After a good sleep this weekend I took a second look and discovered
>> I'd forgotten to make one of the required changes in Commerce
>> libraries as described in the Commerce_ext manual.
>> With that second change the stock handling seems to work as far as I
>> have tested it.
>>
>> Pascal
>
>
> And this is.........?
>
> Karsten
>
>
>>
>>
>> Pascal Cramer wrote:
>>> Hi Karsten,
>>>
>>> it seems to me Commerce_ext does not cooperate with Commerce 0.9.4,
>>> under 0.9.2 it work oke (as far as I have tested it).
>>> Today I have send an email to one of the developers asking for the
>>> status of Commerce_ext and what we can expect.
>>> Hopefully he can shed some light on the choice?
>>>
>>> Pascal
>>>
>>> Karsten wrote:
>>>> Hi list
>>>>
>>>> If i install commerce_ext to get the stock handling and the pdf
>>>> invoice, and set plugin.tx_commerce_lib.useStockHandling = 1
>>>> all my article in FE shows the <!-- ###ARTICLE_VIEW_NOSTOCK### -->
>>>> part of the template.
>>>>
>>>> If i then install com_defaultstock, it shows correct the articles
>>>> that are in stock <!-- ###ARTICLE_VIEW### --> and the articles not
>>>> in stock <!-- ###ARTICLE_VIEW_NOSTOCK### -->, but the I have 2
>>>> fields with name stock.
>>>> and the countdown of the stock dont work.
>>>>
>>>> What shall i do...?
>>>>
>>>> Karsten
More information about the TYPO3-project-commerce
mailing list