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

mr.j’s picture

Status: Active » Needs review

Changing status

texas-bronius’s picture

Assigned: Unassigned » texas-bronius

Ok DrupalCon Denver has got me going .. Gonna see what I can do about clearing out the queue before I check out tonight :)

texas-bronius’s picture

Status: Needs review » Closed (fixed)

Thanks @mr.j! I think I committed to v 1.2. Guess we'll see when the magic sweeper sweeps again soon.