Register or Customer? Why not both?

Author Message

Jason Diehl

Tuesday 03 July 2007 7:04:15 am

Trying to set up an eCommerce website.

If I set the Handler in the shopaccount.ini to ezuser, then on checkout a customer is created, but it uses the Anonymous User account is used. If I change it to ezdefault, then it forces them to login or register, but then creates an anonymous customer.

Why can't the system do both, create a customer and require a user account to be created in the checkout process? It doesn't entirely make sense how this would be achieved. Everything the store will be selling is subscription based, so I really need both to be a requirement.

Heath

Thursday 05 July 2007 3:07:38 am

With some additional extensions you can!

You would need the following
1) Custom shopaccount handler
2) Custom user content class
3) Custom shop module extension (for the custom user/register view)

There are some examples scattered around the community now of these dependencies.

eZ Authorize (svn trunk branch) has some supporting examples which are dependent on these custom features and provides an example custom shop account handler as a reference (re: #1).

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Thursday 05 July 2007 3:19:25 am

Well ...

eZ Authorize's example shopaccount handler (re: #1) is a start but ...

At some point it would be more useful however to have an example implementation / project available which we could point to as direct example this is true.

Still these are fairly simple to create (re: #2 / #3) with the right application of determination and programing.

Perhaps in the future we will have an opportunity to use http://projects.ez.no to offer these dependencies as ready to use out of the box extensions? Your support is most welcome ;)

<i>//kracker

Theme : Hanger 18 : Definitive Swim : Think Big ...
Theme : D12/Eminem : Devils Night : Pimp Like Me</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Thursday 05 July 2007 3:44:42 am

Hey Jason,

Did you see the recent release of the recurringorders extension! http://projects.ez.no/recurringorders

This might be useful to provide for the requirements you mention.

<i>//kracker

Limp Bizkit : Just One Of Those Days ...</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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 21:13:17
Script start
Timing: Jan 18 2025 21:13:17
Module start 'layout'
Timing: Jan 18 2025 21:13:17
Module start 'content'
Timing: Jan 18 2025 21:13:18
Module end 'content'
Timing: Jan 18 2025 21:13:18
Script end

Main resources:

Total runtime1.1182 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9219152.6250
Module start 'layout' 0.00520.0026 740.546939.4609
Module start 'content' 0.00771.1089 780.0078594.7969
Module end 'content' 1.11670.0015 1,374.804712.1563
Script end 1.1182  1,386.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2756160.0002
Check MTime0.00130.1189160.0001
Mysql Total
Database connection0.00070.065410.0007
Mysqli_queries1.060294.8129620.0171
Looping result0.00090.0848600.0000
Template Total1.089097.420.5445
Template load0.00220.194320.0011
Template processing1.086897.190720.5434
Template load and register function0.00020.021710.0002
states
state_id_array0.00110.097510.0011
state_identifier_array0.00170.153120.0009
Override
Cache load0.00170.1538340.0001
Sytem overhead
Fetch class attribute can translate value0.00050.048930.0002
Fetch class attribute name0.00120.108060.0002
XML
Image XML parsing0.00150.136830.0005
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00100.0891250.0000
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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
3content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs