VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ibnati on February 25, 2018, 18:44:27 PM

Title: show the cart totalprice in the add to cart popup
Post by: ibnati on February 25, 2018, 18:44:27 PM
hello

i want show the cart totalprice in the add to cart popup 

also i used this cod in the padded.php

$cart_price = $cart->cartPrices["billTotal"] ;
$cart_price_ib = number_format($cart_price, 2); // Round to two places
echo $cart_price_ib;

but it does not show the currency after the price

how can i fix this please ?
Title: Re: show the cart totalprice in the add to cart popup
Post by: Ghost on February 26, 2018, 08:37:18 AM
Try this:$this->cart->prepareCartData();
$currencyDisplay = CurrencyDisplay::getInstance($this->cart->pricesCurrency);
echo $currencyDisplay->priceDisplay($this->cart->cartPrices['billTotal'],$this->cart->pricesCurrency);
Title: Re: show the cart totalprice in the add to cart popup
Post by: ibnati on February 26, 2018, 14:57:17 PM
ok , thanks
Title: Re: show the cart totalprice in the add to cart popup
Post by: ibnati on February 27, 2018, 19:13:10 PM
i have  a small problem it show the Price withe the "Total " text and also i want to modify the Total text in the add to cart popup

how can i do this please ?