Forums / Setup & design / Checkout Form

Checkout Form

Author Message

john polo

Monday 09 January 2006 11:52:40 am

Hi all,

Those who have shop module on their site would know that there is a form customer has to fill out when they check out.

How can we customize this form. I know it is userregister.tpl BUT i want to customize it so that i can get the information from it as well.

For example i want to put delivery or pickup option in there. I put the form on it to fill but when it comes to collect the information from it after customer sends it out, i dont get the info..

any help on that ?

thanks

john polo

Sunday 15 January 2006 12:42:08 am

any idea on this ?

thanks

Mark Marsiglio

Monday 23 January 2006 1:12:35 am

I could also use some guidance on this issue if anyone has tackled it before...

Does it require modification of the database?

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

john polo

Tuesday 24 January 2006 8:08:11 pm

I believe there are people here that can answer this question. I am sure of this

thanks

Ɓukasz Serwatka

Tuesday 24 January 2006 11:43:33 pm

Hi,

If you want to customize shop user registration page, you will need to add changes to kernel/shop/userregister.php and to template file userregister.tpl as well. You can reuse code from userregister.php. All information are stored as xml format in database.

<shop_account>
  <first-name>Administrator</first-name>
  <last-name>User</last-name>
  <email>nospam@example.com</email>
  <street1></street1>
  <street2></street2>
  .
  .
  .
  <new-element></new-element>
</shop_account>

Hope it will help you.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

john polo

Wednesday 25 January 2006 5:56:50 am

thanks for the answer.

how about kernel\classes\shopaccounthandlers files ? do we have to make any changes on those as well ?

ty

Mark Marsiglio

Sunday 12 February 2006 6:25:59 pm

I had to modify a few more files to complete the information transfer for the new "phone" field that I added.

/kernel/classes/shopaccounthandlers/ezusershopaccounthandler.php (to read info from db after it is written)
/design/admin/templates/shop/accounthandlers/html/ez.tpl (to show new info in the admin order list)
/design/[siteaccess]/templates/shop/accounthandlers/ascii/ez.tpl (to show new info in the order emails)

With that, and the changes the Lukasz recommended, I have successfully added info to the shop account!

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions