Forums / Developer / Register or Customer? Why not both?

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/

eZ debug

Timing: Jan 21 2025 15:55:01
Script start
Timing: Jan 21 2025 15:55:01
Module start 'content'
Timing: Jan 21 2025 15:55:01
Module end 'content'
Timing: Jan 21 2025 15:55:01
Script end

Main resources:

Total runtime0.2193 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.0055 587.7344180.8281
Module start 'content' 0.00560.0086 768.562597.8828
Module end 'content' 0.01410.2051 866.4453526.2969
Script end 0.2192  1,392.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.8207200.0002
Check MTime0.00160.7163200.0001
Mysql Total
Database connection0.00070.326910.0007
Mysqli_queries0.155770.99681410.0011
Looping result0.00150.69131390.0000
Template Total0.204693.310.2046
Template load0.00110.492910.0011
Template processing0.203592.801110.2035
Override
Cache load0.00080.359310.0008
Sytem overhead
Fetch class attribute can translate value0.00100.437310.0010
XML
Image XML parsing0.00030.126810.0003
General
dbfile0.01456.5944200.0007
String conversion0.00000.003730.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