Login on checkout

Author Message

Espen Pedersen

Friday 03 June 2005 2:47:22 pm

I want anonymous users to be able tho add products in their basket and view it's contents. <b>But when they choose checkout they should be forced to register a user to continue the process.</b>

I'm unable to get this working in 3.6, is it possible?

Thanks in advance :)

-Espen

Martin Ulrich

Saturday 04 June 2005 7:21:50 am

have you tried user accounts, roles and policies
set:

shop all functions No limitations

for anonymous users?

Sepp

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Espen Pedersen

Saturday 04 June 2005 8:57:58 am

Thanks for your reply :)

This seems to produce the same result as having the policy, shop -> buy on Anonymous role. This works but it still does not force the user to register.

<i>What I really want to happen when the user checkout is a redirection to /user/login.</i>

Me best guess is that this can be done with policies but I'm unable to find the correct combination.

Espen Pedersen

Saturday 04 June 2005 9:10:34 am

I think I got a little to hung up in policies. I think the solution is to use a different </i>shopaccounthandler</i>. (This setting is found in the shopaccount.ini file)

<b>I've tried using ezdefault, but then I'm no longer able to add items to the basket and/or view it.</b> Even though I give anonymous user no limits in the shop module

<i>Do I have to roll my own shopaccounthandler?</i>

Espen Pedersen

Saturday 04 June 2005 9:54:51 am

<b>No new handler is needed ezdefault seems to do the trick</b>, what I experienced was as follows (and I must say it behaves a bit strange):

- Add products
- View basket
- Checkout

on checkout /user/register is shown, if you ignore it and contine to add products in your basket your are no longer able to view it's contents .....

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 19 2025 00:10:06
Script start
Timing: Jan 19 2025 00:10:06
Module start 'layout'
Timing: Jan 19 2025 00:10:06
Module start 'content'
Timing: Jan 19 2025 00:10:07
Module end 'content'
Timing: Jan 19 2025 00:10:07
Script end

Main resources:

Total runtime0.7468 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8125152.6094
Module start 'layout' 0.00600.0024 740.421939.4141
Module start 'content' 0.00840.7365 779.8359554.1953
Module end 'content' 0.74490.0019 1,334.031312.1875
Script end 0.7467  1,346.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4614160.0002
Check MTime0.00140.1818160.0001
Mysql Total
Database connection0.00090.114210.0009
Mysqli_queries0.678590.8580630.0108
Looping result0.00060.0770610.0000
Template Total0.711695.320.3558
Template load0.00210.280920.0010
Template processing0.709594.999820.3547
Template load and register function0.00020.021210.0002
states
state_id_array0.00090.122710.0009
state_identifier_array0.00140.190420.0007
Override
Cache load0.00170.2338320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068820.0003
Fetch class attribute name0.00090.126660.0002
XML
Image XML parsing0.00260.348720.0013
class_abstraction
Instantiating content class attribute0.00000.002890.0000
General
dbfile0.00390.5213160.0002
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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.0002 secs