parent
fffc1c772b
commit
72f41440dd
|
@ -70,7 +70,7 @@ foreach ( $items as $item_id => $item ) :
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $show_purchase_note && is_object( $_product ) && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) : ?>
|
if ( $show_purchase_note && is_object( $_product ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" style="text-align:left; vertical-align:middle; border: 1px solid #eee;"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
|
<td colspan="3" style="text-align:left; vertical-align:middle; border: 1px solid #eee;"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -61,7 +61,7 @@ foreach ( $items as $item_id => $item ) :
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note
|
// Note
|
||||||
if ( $show_purchase_note && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) {
|
if ( $show_purchase_note && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
|
||||||
echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) );
|
echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue