[TYPO3-commerce] shipping free in addiction of the basket amount

Morten Olesen mo at idefa.dk
Tue Oct 21 09:55:55 CEST 2008


Hi Mario,

Your best bet would to look into hooking either;

"$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi2/class.tx_commerce_pi2.php']['postartAddUid']
Call: postartAddUid($this->basket,$this)
Type: Multiple
Result: void
Hook for editing the basket after adding an article to it "


or

"$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi2/class.tx_commerce_pi2.php']['generateBasketMarker']
Call: additionalMarker($basketArray,$this)
Type: Multiple
Result: array() - A new $markerArray
ADD additional markers to the $markerArray and RETURN it. The result of
this hook is used as the new $markerArray. This $markerArray is then
used to substitute the template-code for the basket. "

possibly both


/Morten Olesen

Mario Hinterreiter wrote:
> hi,
> 
> has anyone of you an idea how to make shipping free in dependence of the
> basket amount?
> 
> eg:
> shipping costs when costumer buys below Eur 100,- -> Eur 7,-
> shipping costs when costumer buys more than Eur 100,- -> free
> 
> i would wonder if i'm the first one who needs this.
> 
> thanks and best regards,
> mario hinterreiter


More information about the TYPO3-project-commerce mailing list