Forums / Developer / Shop account users

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

eZ debug

Timing: Jan 18 2025 05:15:11
Script start
Timing: Jan 18 2025 05:15:11
Module start 'content'
Timing: Jan 18 2025 05:15:12
Module end 'content'
Timing: Jan 18 2025 05:15:12
Script end

Main resources:

Total runtime0.9531 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0391180.8438
Module start 'content' 0.00620.8008 769.8828585.5391
Module end 'content' 0.80710.1460 1,355.4219337.3828
Script end 0.9530  1,692.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4237210.0002
Check MTime0.00140.1488210.0001
Mysql Total
Database connection0.00040.040910.0004
Mysqli_queries0.884892.83021990.0044
Looping result0.00200.21391970.0000
Template Total0.918996.420.4594
Template load0.00200.214320.0010
Template processing0.916896.195420.4584
Template load and register function0.00010.014510.0001
states
state_id_array0.00090.095910.0009
state_identifier_array0.00120.130320.0006
Override
Cache load0.00170.1776250.0001
Sytem overhead
Fetch class attribute can translate value0.00110.113440.0003
Fetch class attribute name0.00100.106250.0002
XML
Image XML parsing0.00120.123340.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00340.3600280.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs