raymond69
Members-
Posts
9 -
Joined
-
Last visited
About raymond69
- Birthday 08/04/1995
Profile Information
-
First Name
Raymond
-
Last Name
Packa
Recent Profile Visitors
138 profile views
raymond69's Achievements
Newbie (1/14)
0
Reputation
-
Bonjour, Désolé de déterrer ce topic mais il se trouve que j'ai exactement le même problème avec ce module qui est en version 2.9.24 pour ma part. Certains clients sont renvoyés sur la page d'historique de commande au lieu de la page de confirmation de commande ..... Avez vous réussi à trouver une solution à votre problème ? Savez vous si le module ATOS a été mis à jour de ce coté là ? Merci
-
erouvier29 started following raymond69
-
Thanks for your help erouvier29, you solve my problem . I just added AdminController::initShopContext() at the beginning of my script and now all works well !
-
Thanks for replying erouvier29, I'm gonna try initialize the shop context at the beginning of my script . Thanks !
-
I really don't know the source of the problem... Could somebody help me please ?
-
Hello vekia, Inside my module folder I have a php script which is executed from an ajax call, I use the code inside this script. Here is the code that I have in my script : <?php header("Access-Control-Allow-Origin: *"); require_once(dirname(__FILE__).'/../../config/config.inc.php'); require_once(dirname(__FILE__).'/../../config/settings.inc.php'); //echo Shop::getContextShopID(true); $id_shop = (int)Context::getContext()->shop->id; echo $id_shop; die(); ?> Thanks in advance !
-
Thanks for replying Enrique. I tried your solution but it's still returning the wrong id : $id_shop = (int)Context::getContext()->shop->id; echo $id_shop; die();
-
Hi, please excuse me in advance for my english I'm french guy . I have a multishop store and I'm currently trying to get the id of the shop that I selected in my BO from a module. The problem is that, when I use that method Shop::getContextShopID() it always return me the id of the shop I logged in on the BO instead of the id of the shop I selected. Could you please help me ? Thanks in advance !
-
Hi everyone, Please excuse me in advance if I made some mistakes, I'm french . I'm currently developping my first dashboard module taking the dashproducts module for exemple. My problem is that in my .tpl file, the thead and tbody tags are always empty. Here is a part of my code : my_module.php <?php public function hookDashboardData($params) { $table_best_sale = $this->getBestandBadsale($params['date_from'], $params['date_to']); print_r($table_best_sale); die(); return array( 'data_table' => array( 'table_best_sale' => $table_best_sale, ) ); } public function hookDashboardZoneTwo($params) { $this->context->smarty->assign( array( 'date_from' => Tools::displayDate($params['date_from']), 'date_to' => Tools::displayDate($params['date_to']), ) ); return $this->display(__FILE__, 'dashboard_zone_two.tpl'); } public function getBestandBadsale($date_from, $date_to) { $header = array( array( 'id' => 'product', 'title' => $this->l('produit'), 'class' => 'text-center', ), array( 'id' => 'option', 'title' => $this->l('option'), 'class' => 'text-center', ), array( 'id' => 'nb_sales', 'title' => $this->l('vendus'), 'class' => 'text-center', ) ); $body = array(); $best_product_name = "db query"; $best_product_option = "db query"; $best_product_nb_sales = "db query"; $body[] = array( array( 'id' => 'product', 'value' => $best_product_name, 'class' => 'text-center' ), array( 'id' => 'option', 'value' => $best_product_option, 'class' => 'text-center' ), array( 'id' => 'nb_sales', 'value' => $best_product_nb_sales, 'class' => 'text-center' ) ); return array('header' => $header, 'body' => $body); } ?> my_module.tpl <section id="statssales" class="panel widget {if $allow_push} allow_push{/if}"> <header class="panel-heading"> <i class="icon-bar-chart"></i> Statistiques détaillées des ventes <span class="panel-heading-action"> <a class="list-toolbar-btn" href="#" onclick="refreshDashboard('statssales'); return false;" title="rafraichir"> <i class="process-icon-refresh"></i> </a> </span> </header> <section> <nav> <ul class="nav nav-pills"> <li class="active"> <a href="#dash_best_sellers" data-toggle="tab"> <i class="icon-fire"></i> <span class="hidden-inline-xs">Meilleure vente</span> </a> </li> </ul> </nav> <br> <div class="tab-content panel"> <div class="tab-pane" id="dash_best_sellers"> <h3> Meilleur vente <span>Du {$date_from} au {$date_to}</span> </h3> <div class="table-responsive"> <table class="table data_table" id="table_best_sale"> <thead></thead> <tbody></tbody> </table> </div> </div> </div> </section> </section> Could you please help me to solve this problem ? Thanks in advance !
-
Hi everyone, Please excuse me in advance if I made some mistakes, I'm french . I'm currently developping my first dashboard module taking the dashproducts module for exemple. My problem is that in my .tpl file, the thead and tbody tags are always empty. Here is a part of my code : my_module.php <?php public function hookDashboardData($params) { $table_best_sale = $this->getBestandBadsale($params['date_from'], $params['date_to']); print_r($table_best_sale); die(); return array( 'data_table' => array( 'table_best_sale' => $table_best_sale, ) ); } public function hookDashboardZoneTwo($params) { $this->context->smarty->assign( array( 'date_from' => Tools::displayDate($params['date_from']), 'date_to' => Tools::displayDate($params['date_to']), ) ); return $this->display(__FILE__, 'dashboard_zone_two.tpl'); } public function getBestandBadsale($date_from, $date_to) { $header = array( array( 'id' => 'product', 'title' => $this->l('produit'), 'class' => 'text-center', ), array( 'id' => 'option', 'title' => $this->l('option'), 'class' => 'text-center', ), array( 'id' => 'nb_sales', 'title' => $this->l('vendus'), 'class' => 'text-center', ) ); $body = array(); $best_product_name = "db query"; $best_product_option = "db query"; $best_product_nb_sales = "db query"; $body[] = array( array( 'id' => 'product', 'value' => $best_product_name, 'class' => 'text-center' ), array( 'id' => 'option', 'value' => $best_product_option, 'class' => 'text-center' ), array( 'id' => 'nb_sales', 'value' => $best_product_nb_sales, 'class' => 'text-center' ) ); return array('header' => $header, 'body' => $body); } ?> my_module.tpl <section id="statssales" class="panel widget {if $allow_push} allow_push{/if}"> <header class="panel-heading"> <i class="icon-bar-chart"></i> Statistiques détaillées des ventes <span class="panel-heading-action"> <a class="list-toolbar-btn" href="#" onclick="refreshDashboard('statssales'); return false;" title="rafraichir"> <i class="process-icon-refresh"></i> </a> </span> </header> <section> <nav> <ul class="nav nav-pills"> <li class="active"> <a href="#dash_best_sellers" data-toggle="tab"> <i class="icon-fire"></i> <span class="hidden-inline-xs">Meilleure vente</span> </a> </li> </ul> </nav> <br> <div class="tab-content panel"> <div class="tab-pane" id="dash_best_sellers"> <h3> Meilleur vente <span>Du {$date_from} au {$date_to}</span> </h3> <div class="table-responsive"> <table class="table data_table" id="table_best_sale"> <thead></thead> <tbody></tbody> </table> </div> </div> </div> </section> </section> Could you please help me to solve this problem ? Thanks in advance !