[TYPO3-shop] Direct Cost as third shown price
Franz Holzinger
franz at fholzinger.com
Mon May 21 09:18:12 CEST 2007
Hello Alex,
> Franz Holzinger пишет:
>> Hello Alexander,
>>
>>>>> I need to do something. I need to show 3 prices of my products. I'm
>>>>> using 3 fields - price, price2 and Direct cost. So, I can modify my
>>>>> template to show price and price2 but Direct cost. How can i made it?
>>>>>
>>
>> For Direct cost you have the marker
>> ###PRODUCT_DIRECTCOST###
>>
>> - Franz
>>
>
> Seems like this marker doesn't work. I tried some variations of this but
> nothing happens.
Unfortunately this is missing in the code.
It should be treated like the price:
Direct cost: ###DIRECTCOST_TAX###
add the following lines to getItemMarkerArray in
tt_products/model/class.tx_ttproducts_article_base.php
$markerArray['###DIRECTCOST_TAX###'] =
$this->pibase->price->printPrice($this->pibase->price->priceFormat($this->pibase->price->getPrice($row['directcost'],1,$row['tax'],$this->conf['TAXincluded'])));
$markerArray['###DIRECTCOST_NO_TAX###'] =
$this->pibase->price->printPrice($this->pibase->price->priceFormat($this->pibase->price->getPrice($row['directcost'],0,$row['tax'],$this->conf['TAXincluded'])));
- Franz
More information about the TYPO3-project-tt-products
mailing list