Closed (fixed)
Project:
Ubercart Disable Store
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Mar 2011 at 22:53 UTC
Updated:
23 Mar 2012 at 07:32 UTC
The buy it now button in the Ubercart products view has a different form id.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -25,7 +25,7 @@
*/
function uc_disable_form_alter(&$form, &$form_state, $form_id) {
// disarm add_to_cart form
- if (strstr($form_id, 'uc_product_add_to_cart_form_')) {
+ if (strstr($form_id, 'uc_product_add_to_cart_form_') || strstr($form_id, 'uc_catalog_buy_it_now_form_')) {
if (!user_access('enable store checkout')) {
$form['#access'] = false;
}
Comments
Comment #1
mr.j commentedChanging status
Comment #2
texas-bronius commentedOk DrupalCon Denver has got me going .. Gonna see what I can do about clearing out the queue before I check out tonight :)
Comment #3
texas-bronius commentedThanks @mr.j! I think I committed to v 1.2. Guess we'll see when the magic sweeper sweeps again soon.