fetch lineitems; it's a cart not a basket

master
Marek Isalski 9 years ago
parent ae6ecd8f39
commit 633676c3fc

@ -331,7 +331,7 @@ function fulcrm_shoppingcart_buy_eventbookingtype_form( $form, &$form_state, $pe
$form[ 'actions' ] = array( '#type' => 'actions' );
$form[ 'actions' ][ 'save' ] = array( '#type' => 'submit',
'#value' => t('Add to Basket'),
'#value' => t('Add to Cart'),
'#submit' => array( 'fulcrm_shoppingcart_buy_eventbookingtype_form_submit' ),
);
@ -391,7 +391,7 @@ function fulcrm_shoppingcart_buy( $product_id, $hmac ) {
return 'ok!';
} else {
return 'error adding item to shopping basket';
return 'error adding item to shopping cart';
}
} else {
drupal_not_found();
@ -469,6 +469,7 @@ function fulcrm_shoppingcart_checkout() {
$transaction_data2 = fulcrm_apiv2_PATCH( $transaction_data[ 'data' ][ 'url' ],
$transaction_push, $query = array( 'expand' => implode( ',', array( 'd',
'lineitems',
) ) ) );
if ( $transaction_data2[ 'success' ] ) {
return theme( 'fulcrm_shoppingcart_transaction_checkout', array( 'transaction' => $transaction_data2[ 'data' ] ) );

@ -1,5 +1,5 @@
<tr>
<td><!-- <span class="pull-right"><a class="btn btn-xs btn-danger" title="Remove from cart" href="<?php /* print fulcrm_shoppingcart_remove_url( $item[ 'id' ] ); */ ?>"><span class="glyphicon glyphicon-trash"></span></a></span>--> <?php print nl2br( check_plain( $item[ 'name' ] ) ); ?></td>
<td><?php print nl2br( check_plain( $item[ 'name' ] ) ); ?></td>
<td class="text-right"><?php print check_plain( $item[ '_price' ][ 'format_item_net' ] ); ?></td>
<td class="text-right"><?php print check_plain( $item[ 'quantity' ] ); ?></td>
<td class="text-right"><?php print check_plain( $item[ '_price' ][ 'format_total' ] ); ?></td>

Loading…
Cancel
Save