neater templating

This commit is contained in:
Marek Isalski 2016-03-26 13:52:28 +00:00
parent 988f047622
commit 16df753efd
2 changed files with 1 additions and 3 deletions

View File

@ -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>

View File

@ -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; ?>