Just might be a thought to disallow purchases from Ubercart (and manual orders) during read-only.

Comments

BarisW’s picture

Status: Active » Fixed

I 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.

pixelsweatshop’s picture

I 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.

pixelsweatshop’s picture

Status: Fixed » Active
nigelw’s picture

+ 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.

joachim’s picture

I wonder whether UC has killswitch for the shop...

If not, feel free to borrow code from http://drupal.org/project/uc_notforsale :)

BarisW’s picture

We'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.

petew’s picture

Status: Active » Fixed

The 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.

pixelsweatshop’s picture

I 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.

petew’s picture

Hi, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.