Comment link appears under the node shown in extra pane.
This happens in Commerce Kickstart installation but I think it will also happen in any Commerce installation.
The error comes from
commerce_extra_panes_checkout_form.tpl.php where following code is used to hide comment link

hide($elements['links']['comment']);
print render($elements);

But $elements is an array with the following structure:
Array
(
[node] => Array
(
[7] => Array
(
[body] => Array
(
[#theme] => field
[#weight] => 0
[#title] => Body
****

So, the comment link is referenced incorrectly in
hide($elements['links']['comment']);

and from commerce_extra_panes_review.tpl.php where no code to hide comment link found.

Comments

Anonymous’s picture

same issue

iub98’s picture

Same issue. Any idea on how to fix? Scratching my head. I've tried css but can quite get it.

VSZ’s picture

I modified commerce_extra_panes_checkout_form.tpl.php and it looks like this

<?php

/**
 * @file
 * Custom tpl that displays the entity in the checkout form phase.
 */
?>
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <?php
    if(isset($elements['node'])){
    foreach($elements['node'] as $n => $node){ 
       if(is_int($n)) hide($elements['node'][$n]['links']['comment']);
    };       
    };
    print render($elements);
  ?>
</div>

And commerce_extra_panes_review.tpl.php

<?php

/**
 * @file
 * Custom tpl that displays the entity in the review phase.
 */
?>
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <?php
    if(isset($entity->rendered['node'])){
    foreach($entity->rendered['node'] as $n => $node){ 
       if(is_int($n)) hide($entity->rendered['node'][$n]['links']['comment']);
    };       
    };
    print render($entity->rendered);
  ?>
</div>
iub98’s picture

That works perfectly. Thank you so much VSZ!

pcambra’s picture

@VSZ would you consider to post a patch for that change?