I could not get this to work with in a views block. Noting happens when I click the reorder button.
But it works fine if I make af views page of the same view.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DigitalFrontiersMedia’s picture

Status: Active » Needs review
FileSize
780 bytes

Add the following just before the end of the function at line 74 of /commerce_reorder/includes/views/handlers/commerce_reorder_handler_field_commerce_reorder_button.inc:

    // Submit to the current page if not a page display.
    if ($this->view->display_handler->plugin_name != 'page') {
      $form['#action'] = '/' . current_path();
    }