[TYPO3-commerce] marker for total amount in ###FINISH### part of checkout.tpl

Ralf Merz ralf.merz at heindl.de
Fri Nov 23 20:05:10 CET 2007


hartmut schrieb:
> You guys really force me to think for myself.
> Thats not fair.
> 
> I found a temporary solution by fearlessly messing with 
> class.tx_commerce_pi3.php.
> 
> I put the line
> 
> $markerArray['###SUM_GROSS###']=$GLOBALS['TSFE']->fe_user->tx_commerce_basket->get_gross_sum(); 
> 
> 
> right after the hook ProcessMarker (line 991).
> 
> So maybe I should create an extension using that hook.
> But I don't know how to do it, and I'm happy for now.
> 
> greets
> hartmut

Don´t cry Hartmut!
You´re on the right way. just use the hooks in the finishIt method an 
fill markers as you like. You can even create new markers and fill them 
with anything you like.
As you have a parentObject, you can call something like 
$this->get_gross_sum(NORMALarticleType) as you mentioned and you got it.

I wouldn´t put it in the pi3-class... because until the next 
beta-release will be in TER you will often update from SVN and always 
have to put your line after 991.

Create a hook!

-- 
--
Greetings
Ralf Merz

Heindl Internet AG
Tübingen , Germany
ralf.merz at heindl.de


More information about the TYPO3-project-commerce mailing list