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

eZ debug

Timing: Jan 18 2025 16:21:16
Script start
Timing: Jan 18 2025 16:21:16
Module start 'content'
Timing: Jan 18 2025 16:21:16
Module end 'content'
Timing: Jan 18 2025 16:21:16
Script end

Main resources:

Total runtime0.1332 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.7031180.8516
Module start 'content' 0.00570.0045 769.554797.9453
Module end 'content' 0.01020.1229 867.5000526.1016
Script end 0.1331  1,393.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.2940200.0002
Check MTime0.00130.9909200.0001
Mysql Total
Database connection0.00080.589610.0008
Mysqli_queries0.095771.90161410.0007
Looping result0.00110.85331390.0000
Template Total0.122692.110.1226
Template load0.00060.435410.0006
Template processing0.122091.651310.1220
Override
Cache load0.00040.307210.0004
Sytem overhead
Fetch class attribute can translate value0.00050.354510.0005
XML
Image XML parsing0.00030.193710.0003
General
dbfile0.00221.6820200.0001
String conversion0.00000.003030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs