Jump to content

Encore un pb avec la v1.2.2 sur les commandes


Recommended Posts

  • 1 year later...

Bizarre, voir ci-dessous le contenu de ma fonction "private function getTotal()"
Essaie de remplacer par çà

   private function getTotal()
   {
       global $cookie;

       $total = 0;
       foreach($this->_list AS $item)
           if ($item['id_currency'] == Configuration::get('PS_CURRENCY_DEFAULT'))
               $total += floatval($item['total_paid']);
           else
           {
               $currency = new Currency(intval($item['id_currency']));
               $total += Tools::ps_round(floatval($item['total_paid']) / floatval($currency->conversion_rate), 2);
           }
       return $total;
   }

Link to comment
Share on other sites

Bonjour,

tout d'abord merci de ton aide.
Concernant mon soucis j'ai test ton code et cela ne change rien.
J ai l impression que c'est la connection avec la base de donnée qui ne marche pas. Car il n y a que l'onglet commande qui m'inscrit cela et non les titres dans l'onglet commande.

une idée ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...