Commit 544f72f1 authored by Mohammad Hawwari's avatar Mohammad Hawwari Committed by Neslee Canil Pinto
Browse files

Issue #3163454 by mhawwari: Error when transitioning between product variations

parent 9c8270cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ function commerce_simple_stock_form_commerce_order_item_add_to_cart_form_alter(&

    if ($stock <= 0) {
      $form['quantity'] = NULL;
      $form['actions'] = NULL;
      $form['actions']['#access'] = FALSE;
      $form['outofstock'] = [
        '#type' => 'textfield',
        '#value' => t('Out of Stock'),