Closed (won't fix)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Cart
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2012 at 11:47 UTC
Updated:
23 Apr 2020 at 01:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pounardHere is a simple patch that works for me, but I may forgot some details.
Comment #2
pounardWarning: this is a SVN patch.
Comment #4
rszrama commentedYeah, I'd be hard pressed to say why I went with "access content" here... doesn't make much sense to me, and a specific permission would seem to do the job better. I'll ask around to see if there's a way we can add the permission with an update path.
Comment #5
pjcdawkins commented+1.
I'd suggest a permission, e.g. "Use cart", which restricts access to the menu item "cart" and to the "Add to cart" button.
Comment #6
maxilein commentedI second that! I special "allow cart" would really make sence. At least in some of my use cases:
Why should the machine waste lots (!) of cycles (e.g. dynamic prices are being calculated upon putting things to the cart) for users who are not allowed to buy anyway?!
Comment #7
jgullstr commentedRe-roll for latest dev (8441d69). Missing tests and upgrade path ("access content" --> "use commerce cart" permission)
Comment #8
jgullstr commentedReroll for c8cd6b4
Comment #9
rszrama commentedI appreciate you rerolling this patch, but I'm going to close this as won't fix. There are far too many sites with far too many role configurations to make this sort of change reasonable at this point in time. No harm in using the patch as is on your own sites / new projects, but we aren't making such invasive changes in the Commerce 1.x branch any more.