1

I have latest Ubercart 7.x-3.6 on Drupal 7.31 installation. I want to add a form on cart/checkout/complete page. which api can I use to add a form on checkout complete page.

EDIT:

Ubercart's core cart checkout complete page contain an order submit message and created order link, right? Now I want to add a form bellowed to the contents of checkout complete page. I think its enough detail.

1

Create a custom module and use hook_form to create your form.

Then I would do as suggested in this post to add your custom form to the ubercart page you wish to edit, only instead of rendering items, call your new function. Does that make sense?

  • is it work on checkout complete page? – Sanjay Sep 8 '14 at 6:58
  • Yes, it should. By creating a copy of the template file for the checkout complete page you will be able to insert your new form by calling your new function that uses hook_form. – Darvanen Sep 8 '14 at 7:01
  • Okay, I'm trying. – Sanjay Sep 8 '14 at 7:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.