Code: Select all
/* Manufacturer Mod */
$product_total = 0;
foreach ($this->cart->getProducts() as $product_2) {
$product_total = 0;
if ($product_2['manufacturer_id'] != $product['manufacturer_id'] && $this->request->get['route'] != 'checkout/cart') {
if (($product_2['manufacturer_id'] != 0) && ($product['manufacturer_id'] != 0)) {
//$this->redirect($this->url->link('checkout/cart'));
$json['error']['manufacturer'] = $this->language->get('error_manufacturer');
} elseif (isset($product['manufacturer_id']) || isset($product_2['manufacturer_id'])) { }
}
}
/* Manufacturer Mod */
Code: Select all
if (json['error']['manufacturer']) {
$('#notification').html('<div class="error" style="display: none;">' + json['error']['manufacturer'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
$('.error').fadeIn('slow');
}