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

Georg Schönweger georg.schoenweger at gmail.com
Thu Apr 28 10:43:43 CEST 2011


Hi Siddesh,

this should not happen. After you checked out the basket is normally
deleted.. So next time you do a checkout everything should start from
scratch. At least with the commerce version i'm using.

Do you change the price for delivery article via
$basketObj->changePrices() ?

- Georg

Am 28.04.2011 10:22, schrieb Siddhesh:
> On Thursday 28 April 2011 11:55 AM, Georg Schönweger wrote:
>> 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
> Hello Georg
>     Seems that there is one problem.For the next time i buy the
> product the previous value remains there and get added to delivery cost
>
> _______________________________________________
> 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