Like when you select any “shipping method” it fetches some data from another site via webservice. And from that it shows some shipping company and their rates.
I want to update final “Grand total” adding this rates.
So where I get that data and how to add that into grand total?
I had a similar problem. It was about including multiple shipping costs depending on a different delivery time of articles. If someone choose to have shipped all articles only after all articles are ready for shipment regular shipping costs were added. But if someone choose to get each article as soon as is got available for shipping a special caluclation of shipping costs has to be done.
My approach was to add this special shipping costs manually in the template while the articles are stored only in the basket. After the order is finally placed I added this special shipping cost to the field oxtotalordersum and oxdelcost in database table oxorder by extending method _loadFromBasket of class oxorder.
I choose this approach because I found it difficult to directly include this shipping cost calculation in the basket functionality. So purists may sniff at this, but sometimes I prefer to have it “quick and dirty”.
My approach was to add this special shipping costs manually in the template while the articles are stored only in the basket. After the order is finally placed I added this special shipping cost to the field oxtotalordersum and oxdelcost in database table oxorder by extending method _loadFromBasket of class oxorder.