Re: Problème de langue dans le module minislider
Publié: 22 Juin 2011, 13:48
Bon je vais regarder ce qu'il en est et reviendrai compléter ce sujet.
La solution e-commerce Open Source
http://forum.opencart-france.com/
http://forum.opencart-france.com/langues/probleme-de-langue-dans-le-module-minislider-t606-15.html
public function index() {
$this->language->load('module/minislider');
$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['heading_title'] = htmlspecialchars_decode($this->config->get('minislider_title'));
$rating = $this->model_catalog_review->getAverageRating($result['product_id']);
if ($this->config->get('config_review')) {
$rating = $this->model_catalog_review->getAverageRating($result['product_id']);
} else {
$rating = false;
}
$this->data['products'][] = array(
'name' => $result['name'],
'model' => $result['model'],
'rating' => $rating,
'stars' => sprintf($this->language->get('text_stars'), $rating),
'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
'price' => $price,
'special' => $special,
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id'])
);
$options = $this->model_catalog_product->getProductOptions($result['product_id']);
if ($options) {
$add = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']);
} else {
$add = HTTPS_SERVER . 'index.php?route=checkout/cart&product_id=' . $result['product_id'];
}
$this->data['products'][] = array(
'product_id' => $result['product_id'],
'name' => $result['name'],
'model' => $result['model'],
'rating' => $rating,
'stars' => sprintf($this->language->get('text_stars'), $rating),
'price' => $price,
'options' => $options,
'special' => $special,
'image' => $this->model_tool_image->resize($image, 38, 38),
'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')),
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']),
'add' => $add
);
Dans ce cas précis, c'est du PHP.cricri92 a écrit:Merci à toi grand manitou du html et D'Opencart.