I want to overwrite summary block on cart page. I'm fetching dynamic values from an API, based on zip code user have provided. I need to
- fetch input value that user entered in zip code box
- passing this value to the API call
- getting result and displayed near shipping method name using ajax.
Here I'm trying to integrate dynamic value with flat rate shipping method. The possible problem that may appear is that dynamic value will be inserted into core_config_data table if a user tried to add any product to cart. When any other user gets into cart page, shipping method price that displayed will be same price that previous user had, which is fetched from DB (core_config_data). Any solution for this
- To overwrite summary block
- To resolve possible issue.
I followed this method to overwrite flat rate shipping method.