function wp_eStore_load_eStore_cart_class()
{
    $eStore_cart = new WP_eStore_Cart();
    $eStore_items = wp_eStore_load_items_to_eStore_item_class();
    $eStore_cart->AddItems($eStore_items);
    $shipping = round($_SESSION['eStore_cart_postage_cost'], 2);
    $eStore_cart->SetCartShipping($shipping);
    if (get_option('eStore_enable_tax') != '') {
        $eStore_cart->SetCartTaxRate(get_option('eStore_global_tax_rate'));
    }
    $return_url = get_option('cart_return_from_paypal_url');
    $eStore_currency = get_option('cart_payment_currency');
    $eStore_cart->SetCartCurrency($eStore_currency);
    $eStore_cart->SetCartReturnUrl($return_url);
    $custom_field_val = eStore_get_custom_field_value();
    $eStore_cart->SetCustomData($custom_field_val);
    //($_SESSION['eStore_custom_values']);
    if (isset($_SESSION['discount_applied_once'])) {
        $eStore_cart->SetDiscountAppliedFlag($_SESSION['discount_applied_once']);
    }
    if (isset($_SESSION['auto_discount_applied_once'])) {
        $eStore_cart->SetAutoDiscountAppliedFlag($_SESSION['auto_discount_applied_once']);
    }
    return $eStore_cart;
}