[TYPO3-commerce] Basket Sum gross not reflected back in paypal

Georg Schönweger georg.schoenweger at gmail.com
Thu Apr 28 08:25:07 CEST 2011


Hi,

u can use the hook
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['main'][]
--> preSwitch
then you can use something like this;

$delArtUid =
current($basketObj->get_articles_by_article_type_uid_asUidlist(DELIVERYArticleType));
$basketObj->changePrices($delArtUid,$deliveryPriceGross,$deliveryPriceNet);
// for example change the price of delivery article depending on weight...
$basketObj->store_data();
$basketObj->recalculate_sums();

- Georg

Am 28.04.2011 07:59, schrieb Siddhesh:
> Hello List,
>  Let me first explain my problem.I have to calculate the sum gross
> with some additional cost calculated depending on weight on the
> checkout page.
> So what i did was
> 1)$sum_gross=$baskoj->get_gross_sum(true);
>
> //I have used the hook
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/lib/class.tx_commerce_pibase.php']['makeBasketInformation'][]='EXT:commerce_basket/pi1/class.tx_commercebasket_pi1.php:&tx_commercebasket_pi1';
>
> 2)$sum_gross=$sum_gross+$firstclassprice;
> 3)$markerArray['###SUM_GROSS###']=$sum_gross;
>
> Now after checkout it goes to paypal.But on paypal i get the old
> amount not the new one.
>
> Can u one help me out whivh hook shoul i use.
>
> Thanks in Advance
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce


More information about the TYPO3-project-commerce mailing list