Statistics: Posted by colinp386 — December 15th, 2011, 9:04 pm
I think you mean "First/Last Name". Yes, this is a known issue. We are working to improve this for a future release. The Billing First/Last Name will go into the Customer's profile for WordPress. While it's possible for a Customer to change this after logging in the the first time, ideally we would give the Customer a chance to use separate billing details during checkout.
In addition (perhaps a new topic) The billing forms don't give the option to have a different User Name to Billing Name. This is going to cause an issue for our Corporate clients who often use a colleagues Corp. Credit Card to bill our services.
Statistics: Posted by Jason Caldwell — December 15th, 2011, 8:26 pm
Statistics: Posted by colinp386 — December 13th, 2011, 5:52 pm
Statistics: Posted by Eduan — December 13th, 2011, 4:26 pm
Statistics: Posted by colinp386 — December 13th, 2011, 4:15 pm
update_user_option ($street, "customer_street", $customer_street);
update_user_option ($city, "customer_city", $customer_city);
update_user_option ($state, "customer_state", $customer_state);
update_user_option ($zip, "customer_zip", $customer_zip);
Statistics: Posted by bethperkins — November 27th, 2011, 10:07 pm
<?php
add_action ("ws_plugin__s2member_during_configure_user_registration_front_side_paid", "my_s2_pro_form_processor");
function my_s2_pro_form_processor ($vars = array ())
{
$user_id = /* Grab User's new ID in WordPress®. */ $vars["user_id"];
/**/
if (isset /* PayPal Checkout. */ ($_POST["s2member_pro_paypal_checkout"]))
$s2_co_vars = $_POST["s2member_pro_paypal_checkout"];
/**/
else if /* Or, this for Authorize.Net. */ (isset ($_POST["s2member_pro_authnet_checkout"]))
$s2_co_vars = $_POST["s2member_pro_authnet_checkout"];
/**/
if (isset ($s2_co_vars) && is_array ($s2_co_vars) && ($s2_co_vars = c_ws_plugin__s2member_utils_strings::trim_deep (stripslashes_deep ($s2_co_vars))))
{
/* Original Shortcode Attributes for the Pro Form. Might be useful in some cases. */
$s2_sc_attrs = unserialize (c_ws_plugin__s2member_utils_encryption::decrypt ($s2_co_vars["attr"]));
/**/
$email = $s2_co_vars["email"];
$username = $s2_co_vars["username"];
$first_name = $s2_co_vars["first_name"];
$last_name = $s2_co_vars["last_name"];
/**/
$custom_fields = /* Array of all Custom Fields. */ $s2_co_vars["custom_fields"];
/**/
$customer_age = /* Now, a specific Custom Field. */ $custom_fields["customer_age"];
/* Use the Unique ID you gave a Custom Registration Field ( ex: `customer_age` ). */
/**/
$card_type = $s2_co_vars["card_type"];
$card_number = $s2_co_vars["card_number"];
$card_expiration = $s2_co_vars["card_expiration"];
$card_verification = $s2_co_vars["card_verification"];
$card_start_date_issue_number = $s2_co_vars["card_start_date_issue_number"];
/**/
$street = $s2_co_vars["street"];
$city = $s2_co_vars["city"];
$state = $s2_co_vars["state"];
$country = $s2_co_vars["country"];
$zip = $s2_co_vars["zip"];
/**/
/* Now you might store information of your own. */
/* http://codex.wordpress.org/Function_Reference/update_user_option */
update_user_option ($user_id, "customer_age", $customer_age);
/**/
/* You might retrieve this in the future with this function. */
/* http://codex.wordpress.org/Function_Reference/get_user_option */
$customer_age = get_user_option ("customer_age", $user_id);
}
}
?>
Statistics: Posted by Jason Caldwell — November 16th, 2011, 10:54 pm
<?php
if (!empty ($_POST['s2member_pro_authnet_checkout[street]']))
{
//Will catch values on the submission of the Pro form ( only for Authorize.net )
$billingvalue = $_POST['s2member_pro_authnet_checkout[street]'] . "\r\n" . $POST['s2member_pro_authnet_checkout[city]'] . ', ' . $_POST['s2member_pro_authnet_checkout[state]'] . ' ' . $_POST['s2member_pro_authnet_checkout[zip]'];
//Set a cookie for after checkout
setcookie('custom_billing_address_value', $billingvalue);
}
?>
<?php
function billing_user_meta ($id)
{
add_user_meta ($id, 's2member_billing_address', $_COOKIE['custom_billing_address_value']);
}
add_action ('user_register', 'billing_user_meta');
?>
Statistics: Posted by Bruce C — November 16th, 2011, 9:35 pm
Statistics: Posted by bethperkins — November 14th, 2011, 12:13 pm