zhmedia Posted April 9, 2016 Share Posted April 9, 2016 In my carrier module, I'm currently changing the delivery delay dynamically based on an API response using the following method: https://www.prestashop.com/forums/topic/219629-changing-carrier-delay-from-within-shipping-module/ This method works well on one-page checkout, but does not work consistently on the 5-step checkout page. The issue I'm running into is that this line: $this->context->smarty->assign('delivery_option_list', $option_list); doesn't correctly override smarty values on the 5-step page. It just reverts back to the default transit/delay time. Does anyone have a better way of accomplishing this? Link to comment Share on other sites More sharing options...
fredecs Posted July 8, 2021 Share Posted July 8, 2021 Hello! Could you made it? I am stuck in that with 1.7 version. Thanks. Link to comment Share on other sites More sharing options...
delete-account-pleas Posted July 9, 2021 Share Posted July 9, 2021 Not sure, but is it working in step 1, and not anymore in step 2, 3, ... If this is the case the variable is changed because of an Ajax call and then you need to create an Ajax call also to fetch your data. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now