Jump to content

How can i add an order-step ?


Marexion

Recommended Posts

Hi,

I want to remove and add some order steps to the order-steps tpl. but i'm having trouble figuring out where to edit. i edited in order-steps.tpl and orderController.php but it won't work properly with the "step_to_do" "step_done" , etc stuff. it doesn't show the right icon (you know the line with the circle in it)

do i need to add the name of the step in some file or something?

Thanks in advance

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...

I changed my mind and squeezed everything in the shipping step :/

 

I didn't try it, but I believe that you need to add the new step's title in order-steps.tpl, where you test the value of the variable $current_step to hightlight the right step title, add a new switch case for $step in order.php that's where the call to your template (the new step) will be done

 

It's a bit complicated when the new step is after payment because it's done by the modules, I only looked at cashondelivery, where payment is followed by order-confirmation.php, so I guess that line should be replaced by another redirection, I'm not sure really, I chose to squeeze everything in an existing step instead

 

It would be better if prestashop's development team tries to allow customization on these steps, that's just a thought

  • Like 1
Link to comment
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...