Example #1
0
function create_cart_sh_output($cart_shortcodes_in_use)
{
    $cart_sh_output = array();
    if ($cart_shortcodes_in_use[0] == '1') {
        $cart_sh_output[0] = eStore_shopping_cart_multiple_gateway();
        //call the classic cart function
    } else {
        $cart_sh_output[0] = "";
    }
    if ($cart_shortcodes_in_use[1] == '1') {
        $cart_sh_output[1] = eStore_shopping_cart_fancy1();
        //call the fancy cart1 function
    } else {
        $cart_sh_output[1] = "";
    }
    if ($cart_shortcodes_in_use[2] == '1') {
        $cart_sh_output[2] = eStore_shopping_cart_fancy2();
        //call the fancy cart2 function
    } else {
        $cart_sh_output[2] = "";
    }
    if ($cart_shortcodes_in_use[3] == '1') {
        $cart_sh_output[3] = show_wp_eStore_cart_with_thumbnail();
        //call the classic cart with thumb function
    } else {
        $cart_sh_output[3] = "";
    }
    if ($cart_shortcodes_in_use[4] == '1') {
        $cart_sh_output[4] = eStore_display_compact_cart();
        //call the compact cart function
    } else {
        $cart_sh_output[4] = "";
    }
    if ($cart_shortcodes_in_use[5] == '1') {
        $cart_sh_output[5] = eStore_display_compact_cart2();
        //call the compact cart2 function
    } else {
        $cart_sh_output[5] = "";
    }
    if ($cart_shortcodes_in_use[6] == '1') {
        $cart_sh_output[6] = eStore_display_compact_cart3();
        //call the compact cart3 function
    } else {
        $cart_sh_output[6] = "";
    }
    if ($cart_shortcodes_in_use[7] == '1') {
        $cart_sh_output[7] = eStore_display_compact_cart4();
        //call the compact cart4 function
    } else {
        $cart_sh_output[7] = "";
    }
    return $cart_sh_output;
}
Example #2
0
function eStore_shopping_cart_fancy1_when_not_empty()
{
    $output = "";
    if (digi_cart_not_empty()) {
        $output = eStore_shopping_cart_fancy1();
    } else {
        $output = '<div class="estore-cart-wrapper-1"></div>';
    }
    return $output;
}