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

Mario Hinterreiter mrng at gmx.net
Mon Oct 27 10:01:42 CET 2008


I also found a wiki article about this which worked great for me.

If someone needs this too have a look at this:
http://wiki.typo3.org/Commerce/Tutorial/VariableDeliveryCost/

cheers, mario


Morten Olesen schrieb:
> 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
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-commerce
> 


More information about the TYPO3-project-commerce mailing list