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?

Share this post

Link to post
Share on other sites

  • 5 years later...

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.

Share this post

Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More