neater templating

master
Marek Isalski 8 years ago
parent 988f047622
commit 16df753efd

@ -1,5 +1,5 @@
<tr>
<td><?php print check_plain( $item[ 'product' ][ 'name' ] ); ?></td>
<td><?php if ( array_key_exists( 'name', $item[ 'd' ] ) ) print nl2br( check_plain( $item[ 'd' ][ 'name' ] ) ); else print check_plain( $item[ 'product' ][ 'name' ] ); ?></td>
<td><?php print check_plain( $item[ 'product' ][ '_price' ][ 'format_total_net' ] ); ?></td>
<td><?php print check_plain( $item[ 'quantity' ] ); ?></td>
</tr>

@ -1,5 +1,3 @@
<?php print_r( $items ); ?>
<?php foreach ( $items as $item ): ?>
<?php print theme( 'fulcrm_shoppingcart_cart_item', array( 'item' => $item ) ); ?>
<?php endforeach; ?>

Loading…
Cancel
Save