Jump to content

New way to dynamically change carrier delay?


Recommended Posts

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

  • 5 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...