How to add a comment field to the checkout in OpenCart

Practice




How to add a comment field to the checkout process in OpenCart

In OpenCart, I believe there's step 6, along with the payment method, that supplements the order with a comment?

Yes, there was, but I simplified the checkout and reduced it to three steps

If you still have the button-payment-method step

but you're skipping it using this method


then moving the comment over isn't that simple, since everything has its own templates, ajax scripts, and controllers for each step, so it will be easier to introduce a helper variable

in the file /catalog/view/theme/default/template/checkout/checkout.tpl


on line 49 we add it and make it global


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)