Shop account users

Author Message

Paul Forsyth

Wednesday 28 May 2003 3:25:07 am

Im currently working with shop accounts and wish to clarify a few things about how the underlying php functions work for shops.

I've changed the ezsimple shop account handler to ezdefault to allow for users to register and login.

It looks like i need to create a special shop user that contains such information as addresses, and alter the values in site.ini/UserSettings to point to that new user. I noticed for the ez.no site that if you are logged in and have bought something then your details/values are automatically displayed when you checkout. This leads me to believe that you have a special shop user also.

Is the creation of such a user the ideal way to proceed with shops? Do you have a single user class to deal with all of the ez.no functionality?

Paul

Paul Forsyth

Thursday 29 May 2003 1:55:27 am

A consequence of using this 'shop user' seems to suggest that there can only be one class of user used per site as the site.ini only has space for the class and group new users should be part of. However, i may be wrong here but i don't know if you can add others...

Is it indeed not sensible to have, say two classes of users on a site, eg one user for shops and one user for forums? If you were a forum user and wanted to buy something then perhaps a single user may be best but maybe the users should be different and information simply shared between them.... but im really not sure at the moment...

Any comments?

Paul

Bård Farstad

Monday 02 June 2003 10:20:42 am

On ez.no we have created a shop account handler ( as we call it ) which enables you to shop without beeing logged in. If you're logged in it will fetch the user information from your account. We've also done a check if you've previously purchased somehting and prefill the values of your account.

This enables people to shop without beeing a registered user. The information like address/company is stored in the order ( serialized xml ). You do not need to create a special user class, but it's possible to solve it that way as well.

I hope this answered your question, a bit late though ;)

--bård

Documentation: http://ez.no/doc

Jerry Jalava

Thursday 12 June 2003 2:34:28 am

Hi Bård,

How could I accomplish something like what yuo have done here on ez.no? What kind of modifications I have to do? Template coding, hard coding/modifications?

P.S. It would be great if you could share somewhere these kind of solutions for others in community to use also. That way all of us could become more and more efficient with eZ and start building more and more complex systems with eZ.

Thanks,
Jerry

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

Main resources:

Total runtime0.7611 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.0084 587.8047152.6094
Module start 'layout' 0.00840.0033 740.414139.4297
Module start 'content' 0.01180.7477 779.8438580.4766
Module end 'content' 0.75950.0016 1,360.320312.1875
Script end 0.7611  1,372.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4532160.0002
Check MTime0.00130.1705160.0001
Mysql Total
Database connection0.00190.246010.0019
Mysqli_queries0.698391.7445620.0113
Looping result0.00070.0902600.0000
Template Total0.725695.320.3628
Template load0.00200.266120.0010
Template processing0.723695.067220.3618
Template load and register function0.00020.032310.0002
states
state_id_array0.00130.174610.0013
state_identifier_array0.00100.130420.0005
Override
Cache load0.00160.2087250.0001
Sytem overhead
Fetch class attribute can translate value0.00090.118430.0003
Fetch class attribute name0.00160.207550.0003
XML
Image XML parsing0.00120.163630.0004
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00100.1332170.0001
String conversion0.00000.001440.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs