Customizing the checkout steps

Author Message

Sandeep Patel

Thursday 03 February 2011 4:25:24 am

Hi,

I am working on an ecommerce site and want to customize all the 3 default EZ checkout steps (Shopping Basket, Account Information and Confirm Order) to match my custom need, something similar as done here: https://www.restava.com/shoppingcart.php?id=ABVLTM

I am done with the shopping cart page and it is working rightly, now i want to customize the next checkout step (Account Information). I want to collect 2 addresses from the buyer i.e billing address and shipping address.

But the default module allows for only 1 address and also i want few additional details from the buyer such as the phone number and email address (because anonymous user can also buy the products).

So anyone can help me in this customization? I want the admin section to work as it is working now (default working).

Thanks,

Peter Keung

Thursday 03 February 2011 7:10:44 am

A custom shop account handler might be a good start: http://ezpedia.org/ez/shop_account_handler

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Sandeep Patel

Sunday 06 February 2011 9:48:46 pm

Hi Peter,

Thanks for the help.

I tried to follow the steps shown on your passed link but was not able to implement it successfully.

Every time i click on the checkout button on shop/basket page, it asks me to login (eventhough i have given the "buy" policy to the anonymous user) and once i login it don't ask me any details(shipping and billing details) and do the checkout directly.

Can you help me with the changes that i may need to do, to make it work mainly in the .php file.

And also i don't see any of the new template eg. "example_com/design/standard/templates/shop/accounthandlers/html/ez.tpl" in effect on any of the checkout pages(i have my debugging mode on).

"example_com" in this url is the name of the ez installation folder, am i right?

Any other reference on this topic will really be helpful.

Thanks

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 02:03:56
Script start
Timing: Jan 18 2025 02:03:56
Module start 'layout'
Timing: Jan 18 2025 02:03:56
Module start 'content'
Timing: Jan 18 2025 02:03:57
Module end 'content'
Timing: Jan 18 2025 02:03:57
Script end

Main resources:

Total runtime1.0706 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9141152.6250
Module start 'layout' 0.00690.0040 740.539139.4531
Module start 'content' 0.01091.0581 779.9922535.2266
Module end 'content' 1.06910.0015 1,315.218812.1641
Script end 1.0706  1,327.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3546160.0002
Check MTime0.00140.1331160.0001
Mysql Total
Database connection0.00130.118710.0013
Mysqli_queries1.014394.7380580.0175
Looping result0.00070.0617560.0000
Template Total1.022295.520.5111
Template load0.00260.242920.0013
Template processing1.019695.234520.5098
Template load and register function0.00030.023610.0003
states
state_id_array0.00150.143510.0015
state_identifier_array0.00190.179220.0010
Override
Cache load0.00220.2056230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.052320.0003
Fetch class attribute name0.00120.107740.0003
XML
Image XML parsing0.00070.061020.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.1013170.0001
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs