tweaks and fixes and theming
This commit is contained in:
parent
c62c20e0ee
commit
80e52bb79f
@ -1 +0,0 @@
|
|||||||
<?php /* fulcrm-shoppingcart-cart.tpl.php */
|
|
@ -49,16 +49,15 @@ function fulcrm_shoppingcart_menu() {
|
|||||||
|
|
||||||
function fulcrm_shoppingcart_theme( $existing, $type, $theme, $path ) {
|
function fulcrm_shoppingcart_theme( $existing, $type, $theme, $path ) {
|
||||||
return array( 'fulcrm_shoppingcart_cart' => array( 'variables' => array( 'shoppingcart' => null ), // data returned from fulcrm API
|
return array( 'fulcrm_shoppingcart_cart' => array( 'variables' => array( 'shoppingcart' => null ), // data returned from fulcrm API
|
||||||
'template' => 'fulcrm-shoppingcart-cart',
|
'template' => 'fulcrm_shoppingcart_cart',
|
||||||
),
|
),
|
||||||
'fulcrm_shoppingcart_cart_items' => array( 'variables' => array( 'shoppingitems' => null ), // data returned from fulcrm API
|
'fulcrm_shoppingcart_cart_items' => array( 'variables' => array( 'shoppingitems' => null ), // data returned from fulcrm API
|
||||||
'template' => 'fulcrm-shoppingcart-cart-items',
|
'template' => 'fulcrm_shoppingcart_cart_items',
|
||||||
),
|
),
|
||||||
'fulcrm_shoppingcart_cart_item' => array( 'variables' => array( 'shoppingitem' => null ), // data returned from fulcrm API
|
'fulcrm_shoppingcart_cart_item' => array( 'variables' => array( 'shoppingitem' => null ), // data returned from fulcrm API
|
||||||
'template' => 'fulcrm-shoppingcart-cart-item',
|
'template' => 'fulcrm_shoppingcart_cart_item',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fulcrm_shoppingcart_get_session_cart( $create = true ) {
|
function fulcrm_shoppingcart_get_session_cart( $create = true ) {
|
||||||
@ -104,7 +103,7 @@ function fulcrm_shoppingcart_buy( $product_id ) {
|
|||||||
|
|
||||||
function fulcrm_shoppingcart_cart() {
|
function fulcrm_shoppingcart_cart() {
|
||||||
$cart = fulcrm_shoppingcart_get_session_cart( false );
|
$cart = fulcrm_shoppingcart_get_session_cart( false );
|
||||||
return print_r( $cart, 1 );
|
return theme( 'fulcrm_shopping_cart', array( 'cart' => $cart ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
function fulcrm_shoppingcart_checkout() {
|
function fulcrm_shoppingcart_checkout() {
|
||||||
|
1
fulcrm_shoppingcart_cart.tpl.php
Normal file
1
fulcrm_shoppingcart_cart.tpl.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
fulcrm_shoppingcart_cart.tpl.php
|
Loading…
x
Reference in New Issue
Block a user