Listing des paniers dans le backend : prix total en TCC

  • Posts: 477
  • Thank you received: 31
  • Hikashop Business
4 years 2 days ago #332551

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.4

Bonjour,

Dans le backend, je souhaiterai afficher le prix total en TTC sur le listing des paniers et sur le listing des favoris.

J'ai identifé le fichier à personnaliser pour créer des overrides (cart / listing.php), mais pour le code PHP à utiliser, j'ai besoin de vous.

Merci d'avance

Last edit: 4 years 2 days ago by lesyeux.

Please Log in or Create an account to join the conversation.

  • Posts: 83778
  • Thank you received: 13565
  • MODERATOR
4 years 2 days ago #332553

Hi,

In that view file, you can replace the line:

echo $this->currencyClass->format($cart->price, $cart->currency);
with:
echo $this->currencyClass->format($cart->full_cart->total->prices[0]->price_value_with_tax, $cart->currency);

The following user(s) said Thank You: lesyeux

Please Log in or Create an account to join the conversation.

  • Posts: 477
  • Thank you received: 31
  • Hikashop Business
4 years 2 days ago #332570

C'est parfait, merci :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum