Exemplo n.º 1
0
/**
 * WP eCommerce AJAX and Init functions
 *
 * These are the WPSC AJAX and Init functions
 *
 * @package wp-e-commerce
 * @since 3.7
 */
function wpsc_special_widget()
{
    wpsc_add_to_cart();
}
Exemplo n.º 2
0
function wpsc_special_widget()
{
    global $wpdb;
    wpsc_add_to_cart();
    //exit();
}
function _wpsc_buy_now_callback()
{
    global $wpsc_cart, $user_ID;
    $paypal_url = get_option('paypal_multiple_url');
    $_POST['custom_gateway'] = 'wpsc_merchant_paypal_standard';
    define("WPSC_PAYPAL_BUY_NOW", true);
    wpsc_add_to_cart();
    wpsc_submit_checkout(false);
}