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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:28:28
Script start
Timing: Jan 18 2025 19:28:28
Module start 'layout'
Timing: Jan 18 2025 19:28:28
Module start 'content'
Timing: Jan 18 2025 19:28:28
Module end 'content'
Timing: Jan 18 2025 19:28:28
Script end

Main resources:

Total runtime0.8787 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 589.2188152.6094
Module start 'layout' 0.00910.0060 741.828139.4141
Module start 'content' 0.01510.8621 781.2422624.9609
Module end 'content' 0.87720.0014 1,406.203116.1953
Script end 0.8786  1,422.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4518160.0002
Check MTime0.00160.1807160.0001
Mysql Total
Database connection0.00090.104310.0009
Mysqli_queries0.801891.2473710.0113
Looping result0.00090.1031690.0000
Template Total0.830994.620.4155
Template load0.00260.296720.0013
Template processing0.828394.270020.4142
Template load and register function0.00020.025710.0002
states
state_id_array0.00150.169110.0015
state_identifier_array0.00190.214920.0009
Override
Cache load0.00210.2348360.0001
Sytem overhead
Fetch class attribute can translate value0.00120.137630.0004
Fetch class attribute name0.00150.172390.0002
XML
Image XML parsing0.00150.169130.0005
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00120.1324230.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs