i am working on Oxid eshop custom module for shipping. i want to Change price for shipping methods on the fly. Is there any way i can get any hooks or method so is can get the interrupt for shipping methods selection? i have also came to know For running server side php code you need to extend OXID's functions, e.g. render() function for the pages you want to track. For the product page it would be "details" -> applications/controllers/details.php category page is "alist.php" and basket is basket.php
oxBasket->_calcDeliveryCost()
seems to be the function you are looking for, it calculates delivery costs based on configured delivery sets.
https://github.com/OXID-eSales/oxideshop_ce/blob/b-5.3-ce/source/application/models/oxbasket.php#L903-L948
this function is called by calculateBasket() here: https://github.com/OXID-eSales/oxideshop_ce/blob/b-5.3-ce/source/application/models/oxbasket.php#L1487 which is also called, when you change shipping methods