Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be useful to unlock pane on checkout page. Sometimes it useful to make possibility to remove it from checkout and show it other way (pop-up window by click on special link). Below is code.
function commerce_userpoints_discount_commerce_checkout_pane_info() {
$checkout_panes['commerce_userpoints_discount'] = array(
'title' => t('!Points discount', userpoints_translation()),
'page' => 'checkout',
- 'locked' => TRUE,
+ 'locked' => FALSE,
'file' => 'includes/commerce_userpoints_discount.checkout_pane.inc',
'base' => 'commerce_userpoints_discount_pane',
'weight' => 10,