Listing des paniers dans le backend : prix total en TCC

  • Posts: 473
  • Thank you received: 30
  • Hikashop Business
3 years 6 months 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: 3 years 6 months ago by lesyeux.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months 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: 473
  • Thank you received: 30
  • Hikashop Business
3 years 6 months ago #332570

C'est parfait, merci :-)

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

Time to create page: 0.061 seconds
Powered by Kunena Forum