As the title say's please add div so we can easily theme and position the wishlist link in the form. I've added a git patch.

Thanks

CommentFileSizeAuthor
allow_theming_wishlist_link.patch1.47 KBdanreb

Comments

danreb’s picture

Status: Active » Needs review
danreb’s picture

The above attach patch is much better than themer overrides the form using hook_form_alter() function like this:

  if ($form_id == strpos($form_id, "commerce_cart_add_to_cart_form", 0)) {
    if (isset($form['add_to_wishlist'])) {
      $form['add_to_wishlist']['#prefix'] = '<div class="wishlist-link-wrapper">';
      $form['add_to_wishlist']['#suffix'] = '</div>';
    }   
  }

so I think it is much better that the code is already included in the module.

Thanks

Scott Robertson’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

The link itself is now themeable, and both the link and button can have their positions changed using the weight setting. Any additional markup needed could be handled with a custom hook_form_alter implementation.