Closed (fixed)
Project:
Read only mode
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 17:47 UTC
Updated:
1 Mar 2013 at 11:30 UTC
Just might be a thought to disallow purchases from Ubercart (and manual orders) during read-only.
Comments
Comment #1
BarisW commentedI believe it already does so. All node form have been disabled, also product node forms.
Please let me know if this is not the case.
Comment #2
pixelsweatshop commentedI was thinking of disabling ubercart purchases, not ubercart product creations. Ideally disabling node edit/creation, user edit/creation and ubercart purchases. A great combo to allow a site to be viewable while we finish updating a dev updates etc...This way a bunch of data doesn't have to be migrated when the dev version gets further away from the live version.
Comment #3
pixelsweatshop commentedComment #4
nigelw commented+ 1 for this killer feature to an already awesome module. It would be great to be able to override the "Add to Cart" button to say "Read Only" or ""Disabled" or something like that so people will know what's going on.
Comment #5
joachim commentedI wonder whether UC has killswitch for the shop...
If not, feel free to borrow code from http://drupal.org/project/uc_notforsale :)
Comment #6
BarisW commentedWe've changed the way the module works in #1882296: White-list approach on form checks. This is D7 only right now, might be backported to D6 though.
Comment #7
petew commentedThe backport to D6 is now available in the 6.x-1.x-dev release. If possible please try it out and let us know whether this addresses your issue.
Comment #8
pixelsweatshop commentedI am the OP that requested this feature a couple of years back. I think this is great addition, however I am no longer using Ubercart (now using commerce) and moved onto D7 a long time ago. So, I will leave the testing to others that may be following this issue. I have also started using the similarly named Mode module http://drupal.org/project/mode to meet my needs to making my site read only. There are too many contib modules to be chasing them one by one with Read Only Mode module to ensure that they aren't allowing any writes to the db. Using the Mode module, one can switch between modes for different sets of permissions. Thanks for the follow up. Good luck.
Comment #9
petew commentedHi, thanks for the prompt followup. And thanks for the info about the Mode module, that's also an interesting approach to having a site in read-only mode. Glad you've found a suitable solution.
For any one else who might find this comment, just to clarify and avoid confusion, since implementation of feature #1882296: White-list approach on form checks the Read-Only Mode module now works using a white-list approach. You no longer have to specify forms one-by-one. Instead, all forms are blocked unless added to the view or edit white-lists.