You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2021. It is now read-only.
$ref = get_user_meta( $user_id, 'billing_company', true );
$individual = 0;
if ( '' === $ref ) {
// We could not find a company, let's get an indivual
// Completamos el nombre completo, no solo el apellido.
// First Change....
$ref = get_user_meta( $user_id, 'billing_first_name', true )." ".get_user_meta( $user_id, 'billing_last_name', true );
$individual = 1;
}
$new_thirdparty = new Dolibarr_Thirdparty();
$new_thirdparty->ref = $ref; // Company name or individual last name
$new_thirdparty->individual = $individual; // Individual
//
// Enviamos Tambien el Nombre completo del cliente
// Second Change
$new_thirdparty->firstname = get_user_meta( $user_id, 'billing_first_name', true )." ".get_user_meta( $user_id, 'billing_last_name', true );
$new_thirdparty->status = '1'; // Active
$new_thirdparty->client = '1'; // Is a client
$new_thirdparty->supplier = '0'; // Is not a supplier
//
// Para la direccion esta el billing_address_1 en las nuevas versiones
// woocommerce 2.6.3
// and last Change
$new_thirdparty->address = get_user_meta( $user_id, 'billing_address_1', true );
$new_thirdparty->zip = get_user_meta( $user_id, 'billing_postcode', true );
$new_thirdparty->town = get_user_meta( $user_id, 'billing_city', true );
$new_thirdparty->country_code = get_user_meta( $user_id, 'billing_country', true );
$new_thirdparty->phone = get_user_meta( $user_id, 'billing_phone', true );
$new_thirdparty->email = get_user_meta( $user_id, 'billing_email', true );
The text was updated successfully, but these errors were encountered:
when he checkout is not still realized the screen was blank and did not follow,
revising create the thirdparty and put the billing_address
He failed because the code had billing_address and was
billing_address_1, change it and it worked well
The rest is just for convenience because it creates thirdparty
with last name and I've put the full name.
Could you guide me what the import of images from the dolibarr.
$ref = get_user_meta( $user_id, 'billing_company', true );
$individual = 0;
if ( '' === $ref ) {
// We could not find a company, let's get an indivual
// Completamos el nombre completo, no solo el apellido.
// First Change....
$ref = get_user_meta( $user_id, 'billing_first_name', true )." ".get_user_meta( $user_id, 'billing_last_name', true );
$individual = 1;
}
The text was updated successfully, but these errors were encountered: