Publisher Posted November 3, 2010 Share Posted November 3, 2010 Hallo ZusammenBei der Bestätigungsmail einer Bestellung die der Verkäufer bekommt wird der Mengenrabatt nicht bei Stk. Preis nicht mitgerechnet. Diese mailalerts.php Datei hat keine $customizationQuantity Aber die PaymentModule.php hat eine if schlaufe die den Mengenrabatt aurechnet. Das wird dann beim mail ausgerechnet die der Käufer bekommt.: $customizationQuantity = intval($product['customizationQuantityTotal']); $productsList .= ' '.$product['reference'].' '.$product['name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').' - '.$this->l('Customized').' '.Tools::displayPrice($priceWithTax, $currency, false, false).' '.$customizationQuantity.' '.Tools::displayPrice($customizationQuantity * $priceWithTax, $currency, false, false).' '; } if (!$customizationQuantity OR intval($product['quantity']) > $customizationQuantity) $productsList .= ' '.$product['reference'].' '.$product['name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').' '.Tools::displayPrice($price, $currency, false, false).' '.(intval($product['quantity']) - $customizationQuantity).' '.Tools::displayPrice((intval($product['quantity']) - $customizationQuantity) * $priceWithTax, $currency, false, false).' '; Das hat aber der mailalerts.php nicht. Was kann ich tun ?!? $itemsTable = ''; foreach ($params['cart']->getProducts() AS $key => $product) { $unit_price = Product::getPriceStatic($product['id_product'], true, $product['id_product_attribute']) / 1.076; // mwst umrechnung $price = Product::getPriceStatic($product['id_product'], true, $product['id_product_attribute'], 6, NULL, false, true, $product['quantity']) / 1.076; // mwst umrechnung $itemsTable .= ' '.$product['reference'].' '.$product['name'].(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '').' '.Tools::displayPrice($unit_price, $currency, false, false).' '.intval($product['quantity']).' '.Tools::displayPrice(($price * $product['quantity']), $currency, false, false).' '; } foreach ($params['cart']->getDiscounts() AS $discount) { $itemsTable .= ' '.$this->l('Voucher code:').' '.$discount['name'].' -'.Tools::displayPrice($discount['value_real'], $currency, false, false).' '; Link to comment Share on other sites More sharing options...
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