本文整理汇总了PHP中Commande::setDeliveryAddress方法的典型用法代码示例。如果您正苦于以下问题:PHP Commande::setDeliveryAddress方法的具体用法?PHP Commande::setDeliveryAddress怎么用?PHP Commande::setDeliveryAddress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Commande
的用法示例。
在下文中一共展示了Commande::setDeliveryAddress方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
dol_print_error($db);
}
} else {
if ($action == 'deletecontact' && $user->rights->commande->creer) {
$object->fetch($id);
$result = $object->delete_contact($_GET["lineid"]);
if ($result >= 0) {
header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $object->id);
exit;
} else {
dol_print_error($db);
}
} else {
if ($action == 'setaddress' && $user->rights->commande->creer) {
$object->fetch($id);
$result = $object->setDeliveryAddress($_POST['fk_address']);
if ($result < 0) {
dol_print_error($db, $object->error);
}
}
}
}
}
/*
* View
*/
llxHeader('', $langs->trans('Order'), 'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
$form = new Form($db);
$formcompany = new FormCompany($db);
$formother = new FormOther($db);
$contactstatic = new Contact($db);
示例2: GETPOST
$commande->set_ref_client($user, GETPOST('ref_customer', 'alpha'));
}
if ($action == 'setdatedelivery' && $user->rights->commande->creer) {
//print "x ".$_POST['liv_month'].", ".$_POST['liv_day'].", ".$_POST['liv_year'];
$datelivraison = dol_mktime(0, 0, 0, GETPOST('liv_month', 'int'), GETPOST('liv_day', 'int'), GETPOST('liv_year', 'int'));
$commande = new Commande($db);
$commande->fetch($id);
$result = $commande->set_date_livraison($user, $datelivraison);
if ($result < 0) {
$mesg = '<div class="error">' . $commande->error . '</div>';
}
}
if ($action == 'setdeliveryaddress' && $user->rights->commande->creer) {
$commande = new Commande($db);
$commande->fetch($id);
$commande->setDeliveryAddress(GETPOST('delivery_address_id', 'int'));
}
if ($action == 'setmode' && $user->rights->commande->creer) {
$commande = new Commande($db);
$commande->fetch($id);
$result = $commande->setPaymentMethods(GETPOST('mode_reglement_id', 'int'));
if ($result < 0) {
dol_print_error($db, $commande->error);
}
}
if ($action == 'setconditions' && $user->rights->commande->creer) {
$commande = new Commande($db);
$commande->fetch($id);
$result = $commande->setPaymentTerms(GETPOST('cond_reglement_id', 'int'));
if ($result < 0) {
dol_print_error($db, $commande->error);