Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Restricted area on add to cart
PostPosted: Tue Jun 14, 2011 11:38 pm 
Offline
CRE Newbie

Joined: Sat May 07, 2011 6:34 pm
Posts: 11
Hi,

When a guest user clicks on add to basket on a product, the resulting page says: THe page you are trying to view is restricted.

Not sure where this is coming from, all the products are set to allow guest, retail and wholesale users.

anyone have any ideas?

Thanks


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Wed Jun 15, 2011 1:26 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
So you're using 6.2 B2B right (which patch - hopefully the latest) and both the category and product Access Group boxes are ticked for Guest? If you're using the cre seo url mod switch it off and try it again. Do all groups mentioned show in Admin >> Customers/Orders >> Customer Groups.

If it is old code then have a look at /catalog/index.php for this:
Code:
$customer_group_id = CUSTOMER_GROUP_ID;

and change it to this:
Code:
defined('CUSTOMER_GROUP_ID') && CUSTOMER_GROUP_ID != ) ? CUSTOMER_GROUP_ID : 'G';
   if (!isset($customer_group_id))


Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Wed Jun 15, 2011 10:18 pm 
Offline
CRE Newbie

Joined: Sat May 07, 2011 6:34 pm
Posts: 11
actually my mistake, I'm actually using 6.4.1 b2b and the cre seo is turned off.


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Thu Jun 16, 2011 12:24 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Right, so checked in /debug and on server error logs for reoccurring errors related to customer groups?
The logic for the 'restricted' page showing basically involves checking if the product has the 'G' customer group in the products_group_access column of the products table or not. In your case, it appears not to - ie the category itself hasn't got guest group access pushed to it and its subcategories.

#1 - check admin >> catalog/product >> categories concerned - do they have ticks in the Guest access boxes and have these been pushed through the subs as well?

#2 - check dbase - if there's are missing entries in the products table for products_group_access (in particular the letter G in this column) and products_nav_access column; customer groups table (ie no G mentioned anywhere)

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Thu Jun 16, 2011 7:41 am 
Offline
CRE Newbie

Joined: Sat May 07, 2011 6:34 pm
Posts: 11
Hi,

No both fields are correct in the database, and just to be sure I ran
UPDATE categories SET products_group_access = "G,0"
and
UPDATE categories SET products_nav_access = "G,0"

to no avail


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Thu Jun 16, 2011 1:45 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Right, but that's just the categories table ... checked the products table? Customer groups table?
Several tie in on this customer groups access thing, not just the categories.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Fri Jun 17, 2011 6:36 am 
Offline
CRE Newbie

Joined: Sat May 07, 2011 6:34 pm
Posts: 11
your right, that should be products....


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Fri Jun 17, 2011 2:55 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
I'm bailing on this - cart version change, change of actual table. Not sure if you're up on what you're doing there. This issue could be solved by someone with experience in probably 10 minutes looking at your database - not solvable when info keeps changing in posts.

Good luck!
Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Fri Jun 17, 2011 9:44 pm 
Offline
CRE Newbie

Joined: Sat May 07, 2011 6:34 pm
Posts: 11
When info keeps changing.... seriously....

I'll admit I made a mistake with the original version of cre I was dealing with, but I'm just trying to say both the products and categories tables are both set to G,0 on all items on those fields.

I resent your post and I'm sure a cre loaded expert could fix it in seconds.... why do you think I'm posting here! I'm a more then capable php developer, but I'm being forced to integrate a CRE system that the client decided on and basically just trying to get in and out with as little damage as possible.


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Fri Jun 17, 2011 10:06 pm 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
rbezemer wrote:
When info keeps changing.... seriously....

I'll admit I made a mistake with the original version of cre I was dealing with, but I'm just trying to say both the products and categories tables are both set to G,0 on all items on those fields.

I resent your post and I'm sure a cre loaded expert could fix it in seconds.... why do you think I'm posting here! I'm a more then capable php developer, but I'm being forced to integrate a CRE system that the client decided on and basically just trying to get in and out with as little damage as possible.

Resent all you like - it's all free. Makes it difficult to assist with little info or background - who knows if the cart has other mods to it? Perhaps the dbase has been corrupted? There are many bugs in Cre, but this isn't generally one of them - if you check the /catalog/product_info.php file you'll see the conditional.

If you're a developer then you've probably tried adding a new category and seen if you can reproduce the error as a guest. There's not a lot in your posts that indicates any results of steps you've taken yourself.

Good luck!

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Restricted area on add to cart
PostPosted: Tue Jun 28, 2011 2:58 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
In restricted area on add to cart ONLY (ie, product is correctly visible before adding to cart, but not visible afterwards) look for something changing the customers group access or session data during execution of the add.

This would generally be located in application_top.php. A check of the code against stock code may turn this up pretty quickly.

Generally, this type of problem affects more than just add to cart, and can be fixed by getting the data lined up correctly, as Simon mentioned. In doing this, make sure the group the customer belongs to exists, and has valid entries in the product table, and in each relevant category table entry as well.

David

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 8:28 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy