[TYPO3-commerce] Problems with delivery cost calculation

Franz Koch typo.removeformessage at fx-graefix.de
Wed Sep 5 21:44:46 CEST 2007


Hi Tobias,
> I considered to use the hook ( 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['getListing'] 
> ) but I couldn't get the delivery address.  It seems to me that the 
> address is not stored in the session. Where is the address stored at 
> that point and how can I get it?

Have a look at $this->MYSESSION['billing'] and 
$this->MYSESSION['delivery'], but notice that the later is only filled 
if the user decided to choose a different delivery address then the 
billing address. So check if the delivery address is set and if not use 
the billing address.

--
Kind regards,
Franz Koch


More information about the TYPO3-project-commerce mailing list