Special Price With Date End.xml v1.5.1.1 1.0 2.1.5 LeorLindel pour fichier xml (Code initial = eric02) data['text_price'] = $this->language->get('text_price'); ]]> data['text_special_end'] = $this->language->get('text_special_end'); ]]> data['special'] = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax'))); ]]> model_catalog_product->getSpecialPriceDates($product_id); if ($special_info) { $this->data['special_date_end'] = date($this->language->get('date_format_short'), strtotime($special_info['date_end'])); } else { $this->date['special_date_end'] = false; } // +++ END NEW CODE ]]> ]]> customer->isLogged()) { $customer_group_id = $this->customer->getCustomerGroupId(); } else { $customer_group_id = $this->config->get('config_customer_group_id'); } $query = $this->db->query("SELECT price, date_start, date_end FROM " . DB_PREFIX . "product_special WHERE product_id = '" . (int)$product_id . "' AND customer_group_id = '" . (int)$customer_group_id . "' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end = '0000-00-00' OR date_end > NOW())) ORDER BY priority ASC, price ASC LIMIT 1"); if ($query->num_rows) { return array( 'special' => $query->row['price'], 'date_start' => $query->row['date_start'], 'date_end' => $query->row['date_end'], ); } else { return false; } } ]]> ]]> =0) { ?>
]]>