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.