News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

show the cart totalprice in the add to cart popup

Started by ibnati, February 25, 2018, 18:44:27 PM

Previous topic - Next topic

ibnati

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 ?

Ghost

Try this:$this->cart->prepareCartData();
$currencyDisplay = CurrencyDisplay::getInstance($this->cart->pricesCurrency);
echo $currencyDisplay->priceDisplay($this->cart->cartPrices['billTotal'],$this->cart->pricesCurrency);

ibnati

#2
ok , thanks

ibnati

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 ?