[TYPO3-commerce] delivery costs based on total costs

Jeroen Visser jeroen at roquin.nl
Thu Nov 8 17:23:25 CET 2007


It seems that there is a extra calculation:

0
0
item_goss_sum 750
item_net_sum 750
item_goss_sum 750
item_goss_sum 0
item_net_sum 0
item_goss_sum 0
item_goss_sum 750
item_net_sum 750
item_goss_sum 750

These are some echo's in calculate_gross_sum() and calculate_net_sum().

The 750 is the price for a total below 300. And my price at the moment 
is above 300 so it should be 0

The first two 0's are from my function. After that the calculate 
function are called 6 times more. But where and when?

Hope some one know's

Greetings,
Jeroen


Jeroen Visser wrote:
> Hi,
> For my test product/article I have set the Net and Gross price the same. 
> There is a BTW value added but deleting this doesn't have any affect. In 
> the function I did experienced some with these prices hoping to find out 
> what went wrong. It should work also for PAYMENTArticleType or not?
> 
> Greetings,
> Jeroen
> 
> Franz Koch wrote:
>> Hi,
>>
>>> Some time ago Franz helpt with a function recalculate the basket sum 
>>> when changing the delivery costs. I did update begin this week whit 
>>> the latest svn. The function gets the correct amount based on the 
>>> total price. Only the function recalculate_item_sums() don't seem to 
>>> do his job. One thing I have changed is DELIVERYArticleType to 
>>> PAYMENTArticleType. Does anyone has an idea about this?
>>
>> I haven't had a look at the latest SVN version yet - maybe they 
>> changed the function. Just a guess - do you use net prices - and net 
>> prices only?
>>
>> -- 
>> Greetings,
>> Franz
>>
> 
> 
> 




More information about the TYPO3-project-commerce mailing list