Shopping basket restriction::annoying

Shopping basket restriction::annoying

Wednesday 19 May 2004 10:02:11 am - 4 replies

Modified on Wednesday 19 May 2004 10:11:17 am by Sy Hai Dang

Author Message

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?

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.