if ((int)$id_product = $this->context->cart->checkProductsAccess()) {
$this->step = 0;
$this->errors[] = sprintf(Tools::displayError('An item in your cart is no longer available (%1s). You cannot proceed with your order.'), Product::getProductName((int)$id_product));
}
// If some products have disappear
if (is_array($product)) {
$this->step = 0;
$this->errors[] = sprintf(Tools::displayError('An item (%1s) in your cart is no longer available in this quantity. You cannot proceed with your order until the quantity is adjusted.'), $product['name']);
if (count($address_without_carriers) && !$this->context->cart->isVirtualCart()) {
$flag_error_message = false;
foreach ($errors as $error) {
if ($error == Carrier::SHIPPING_WEIGHT_EXCEPTION && !$flag_error_message) {
$this->errors[] = sprintf(Tools::displayError('The product selection cannot be delivered by the available carrier(s): it is too heavy. Please amend your cart to lower its weight.', !Tools::getValue('ajax')));
$this->errors[] = sprintf(Tools::displayError('The product selection cannot be delivered by the available carrier(s). Please amend your cart.', !Tools::getValue('ajax')));
$this->errors[] = sprintf(Tools::displayError('The product selection cannot be delivered by the available carrier(s): its size does not fit. Please amend your cart to reduce its size.', !Tools::getValue('ajax')));
$flag_error_message = true;
}
}
if (count($address_without_carriers) > 1 && !$flag_error_message) {
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to some addresses you selected.', !Tools::getValue('ajax')));
Question
tomo99999
Witam,
Mam taki problem chce aby zamówienie było wysyłane do mnie na adres e-mail bez wyboru dostawy i metody płatności.
Zmodyfikowałem plik OrderController ale zamówienie nie dociera na e-mail i jest cały czas w koszyku.
Proszę o podpowiedź jak to zrobić aby działało.
OrderController.php
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now