Shopping basket restriction::annoying

Author Message

Sy Hai Dang

Wednesday 19 May 2004 10:02:11 am

Hi,

I am trying the eZ publish 3.4 beta 1 release.
An annoying warning "Access denied" shows up whenever we add a product to our basket by clicking the button "Add to basket" while we are not logged into the site.
Please tell me how to allow the anonymous user to add as many products to the basket as possible without any login requirement and the anonymous user is only required to login when he does the checkout.

In the Administration Interface, I have tried to create a new role policy for the anonymous user with various modules and functions but still could not work it out.
The anonymous user is still required to login when he tries to "View all details" of the "Shopping basket". Annoying behaviour of the shopping cart!

bisk

Wednesday 19 May 2004 12:30:38 pm

It works here after adding a new anonymous role policy for the shop.

I've added this policy to anonymous: module->shop, function->buy, limitations->*

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Dominik Pich

Wednesday 19 May 2004 12:41:11 pm

Add PolicyOmitChecking[]=/shop/basket to your site.ini append under RoleSettings]

Sy Hai Dang

Thursday 20 May 2004 6:21:44 am

Thank you bisk and Dominik Pich but I was unsuccessful with your suggestion.

There is a strange thing happened after creating a new anonymous role policy:

Role edit Anonymous
Module: shop
Function: buy
Limitations: *

The strange thing is when I accessed the Role policies list, I could not see the new role that I had created (shop buy *)

Role / Anonymous
Role view
Role policies
Module Function Limitation
--------------------------
user login *
content read Section( Standard section )
content pdf Section( Standard section )

but when I click the Edit button to jump to the "Role edit Anonymous" page I found the role policy which I had created (in the Current policies table):

Role / Anonymous
Role edit Anonymous
Current policies
Module Function Limitations Edit Delete
---------------------------------------
user login *
content read Section( Standard section )
content pdf Section( Standard section )
shop buy *

I tried to clear "All caches" several times in the Cache-admin but the problem still remained.

The result was that after creating the new anonymous role policy and clear all caches the anonymous user was still asked to login each time they added a product item to the shopping cart (click the button 'Add to shopping cart' leads to the page index.php/shop/shop/basket).

I could not find the string "RoleSettings" in all of my site.ini files.
I found in the file doc/changelogs/2.9/CHANGELOG-2.9-6 the following notes:

index.php:
- Policy check omit list was moved to site.ini under RoleSettings and added support
for setting a module/view pair.

But I could not find the RoleSettings in the site.ini of the eZ publish 3.4 beta 1 and beta 2.

Anyone can help?

Sy Hai Dang

Thursday 20 May 2004 6:31:07 pm

Hello bisk
Thank you for your help. Your suggestion of creating a new anonymous role policy worked for me when I restart the server. Might be something wrong with the caching?

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

Main resources:

Total runtime0.6433 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.0703152.6250
Module start 'layout' 0.00470.0032 741.695339.4453
Module start 'content' 0.00790.6339 781.1406567.3281
Module end 'content' 0.64180.0015 1,348.468812.1563
Script end 0.6432  1,360.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4802160.0002
Check MTime0.00130.1966160.0001
Mysql Total
Database connection0.00060.099510.0006
Mysqli_queries0.588591.4825650.0091
Looping result0.00060.0933630.0000
Template Total0.614795.620.3074
Template load0.00180.283220.0009
Template processing0.612995.281120.3065
Template load and register function0.00020.034710.0002
states
state_id_array0.00080.122910.0008
state_identifier_array0.00120.193220.0006
Override
Cache load0.00160.2513520.0000
Sytem overhead
Fetch class attribute can translate value0.00060.087230.0002
Fetch class attribute name0.00100.149750.0002
XML
Image XML parsing0.00040.057830.0001
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00060.1001100.0001
String conversion0.00000.001640.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/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: 5

Time used to render debug report: 0.0001 secs