The concept of shopaccounthandlers

Author Message

Eirik Alfstad Johansen

Saturday 20 November 2004 3:33:52 am

Hi guys,

I'm not sure if I completely understand the concept of shopaccounthandlers. AFAIK, the purpose is to be able to store and retreive custom account information related to an order. However, as far as I can see, the storing of account information seems to be hard coded into shop/userregister.php.

Am I missing something here? Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Bruce Morrison

Saturday 20 November 2004 11:51:04 pm

It is! But it is quite simple to override this with a custom userrigester.php.

settings/shopaccount.ini is a good place to start looking.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Eirik Alfstad Johansen

Sunday 21 November 2004 2:52:59 am

Hi Bruce,

I can't find anything in shopaccount.ini about overriding userregister.php. Could you please help me get started?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Sunday 21 November 2004 3:00:03 am

Never mind, Bruce. I think I've got it. It seems that the way to specify an alternative to userregister is to create a custom shopaccounthandler and specify the alternative in the fetchAccountInformation method of the eZSimpleShopAccountHandler class.

Thanks anyway !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Bruce Morrison

Sunday 21 November 2004 3:47:04 pm

Thats right. Sounds like you have found your way! I aways plan to write these things up but work always seems to get in the way :) It is on the list though!

Let me know if you run into any brick walls and I'll try to be of assistance.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Eirik Alfstad Johansen

Sunday 21 November 2004 10:06:14 pm

Hi Bruce,

Thanks a lot! I started working on a new shopaccounthandler extension yesterday, and no problems as of yet.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

hannes petursson

Sunday 13 August 2006 12:24:36 pm

Hi
I know this is very old thead!!!
But this was the only discussion I found about this shopaccounthandlers.
I was trying to add new shopaccounthalder as an extension. I have made some progress but I havent be able to add my implementation fo the ezshopaccounthandler.php in the extension instead of the kernel folder. Do you know how to do it??
Regards, Hannes

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

Main resources:

Total runtime0.7364 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.0051 587.9219152.6250
Module start 'layout' 0.00510.0039 740.546939.4609
Module start 'content' 0.00890.7257 780.0078620.3672
Module end 'content' 0.73460.0017 1,400.375016.1563
Script end 0.7363  1,416.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4465160.0002
Check MTime0.00130.1820160.0001
Mysql Total
Database connection0.00070.096510.0007
Mysqli_queries0.669990.9750710.0094
Looping result0.00070.0927690.0000
Template Total0.706595.920.3533
Template load0.00190.259820.0010
Template processing0.704695.683320.3523
Template load and register function0.00010.013710.0001
states
state_id_array0.00070.100310.0007
state_identifier_array0.00150.199620.0007
Override
Cache load0.00160.2238380.0000
Sytem overhead
Fetch class attribute can translate value0.00090.124930.0003
Fetch class attribute name0.00130.178390.0001
XML
Image XML parsing0.00120.169530.0004
class_abstraction
Instantiating content class attribute0.00000.0033130.0000
General
dbfile0.00250.3392220.0001
String conversion0.00000.001340.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/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: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs