/**
 * Implements hook_commerce_line_item_summary_link_info().
 */
function commerce_cba_commerce_line_item_summary_link_info() {
  $cba_widget_settings = variable_get('cba_widget_settings', array());
  $checkout_button = commerce_cba_amazoninlinewidget('checkout', $cba_widget_settings);

  return array(
    'checkout_cba' => array(
      'title' => drupal_render($checkout_button),
      'attributes' => array('rel' => 'nofollow'),
      'weight' => 5,
      'html' => TRUE,
      'access' => user_access('access checkout') && user_access('access checkout by amazon'),
    ),
  );
}
CommentFileSizeAuthor
Shopping cart block.png50.48 KBdema501
Views_settings.png235.85 KBdema501

Comments

  • vasike committed 351f607 on 7.x-1.x authored by dema501
    Issue #2267599 by dema501, vasike: Checkout by Amazon button in Shopping...
vasike’s picture

Category: Feature request » Task
Status: Active » Fixed

indeed, it was not there.

@dema501 : thank you
and Congratulations for the first commit on drupal.org.

p.s. please try next time to provide a patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.