Jump to content

Edit History

lnasay

lnasay

Hello petit update pour plus avoir la notification fantôme ⚠Nouvelles commandes 0 au chargement du back-office.

Sur le notifications.js il faut ajouter display:block , et supprimer les codes avec hides2 suivre le bon code en bas :

 

 var notifCount = parseInt(json.order.total) + parseInt(json.customer.total) + parseInt(json.customer_message.total);
      if (notifCount > 0) {
        $("#total_notif_number_wrapper").removeClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');
        document.getElementById('ordernotifc').setAttribute('style', 'display:block;animation-name: slideInLeft;'); 

        $('#total_notif_value').text(notifCount);
        $('#total_notif_valuemenu').text(notifCount);

      } else {
        $("#total_notif_number_wrapper").addClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');

 

et sur le theme.css il faut ajouter display:none;

#ordernotifc {
  padding:14px 0 12px;
  padding:0.875rem 0 0.75rem;
  margin:29.008px 0 0 15.008px;
  margin:1.813rem 0 0 0.938rem;
  font-size: 12px;
  font-size: 0.75rem;
  border-top:1px solid #bbcdd2;
  align-items: center;
  color: #bebebe;
  display:none;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.10, .10, 1, 0);
}

Maintenant on peut supprimer

.hide2{

display:none

}

et tout devient parfait Enjoy 😉

lnasay

lnasay

Hello petit update pour plus avoir la notification fantôme ⚠Nouvelles commandes 0 au chargement du back-office.

Sur le notifications.js il faut ajouter display:block :

 

 var notifCount = parseInt(json.order.total) + parseInt(json.customer.total) + parseInt(json.customer_message.total);
      if (notifCount > 0) {
        $("#total_notif_number_wrapper").removeClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');
        document.getElementById('ordernotifc').setAttribute('style', 'display:block;animation-name: slideInLeft;'); 

        $('#total_notif_value').text(notifCount);
        $('#total_notif_valuemenu').text(notifCount);

      } else {
        $("#total_notif_number_wrapper").addClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');

 

et sur le theme.css il faut ajouter display:none;

#ordernotifc {
  padding:14px 0 12px;
  padding:0.875rem 0 0.75rem;
  margin:29.008px 0 0 15.008px;
  margin:1.813rem 0 0 0.938rem;
  font-size: 12px;
  font-size: 0.75rem;
  border-top:1px solid #bbcdd2;
  align-items: center;
  color: #bebebe;
  display:none;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.10, .10, 1, 0);
}

Maintenant on peut supprimer

.hide2{

display:none

}

et tout devient parfait Enjoy 😉

lnasay

lnasay

Hello petit update pour plus avoir la notification fantôme ⚠Nouvelles commandes 0 au chargement du back-office.

Sur le notifications.js :

 var notifCount = parseInt(json.order.total) + parseInt(json.customer.total) + parseInt(json.customer_message.total);
      if (notifCount > 0) {
        $("#total_notif_number_wrapper").removeClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');
        document.getElementById('ordernotifc').setAttribute('style', 'display:block;animation-name: slideInLeft;'); 

        $('#total_notif_value').text(notifCount);
        $('#total_notif_valuemenu').text(notifCount);

      } else {
        $("#total_notif_number_wrapper").addClass('hide');
        $("#total_notif_number_wrapper_dawnmenu").removeClass('hide');

 

et sur le theme.css

#ordernotifc {
  padding:14px 0 12px;
  padding:0.875rem 0 0.75rem;
  margin:29.008px 0 0 15.008px;
  margin:1.813rem 0 0 0.938rem;
  font-size: 12px;
  font-size: 0.75rem;
  border-top:1px solid #bbcdd2;
  align-items: center;
  color: #bebebe;
  display:none;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.10, .10, 1, 0);
}

Maintenant on peut supprimer

.hide2{

display:none

}

et tout devient parfait Enjoy 😉

×
×
  • Create New...