VirtueMart Forum

VirtueMart 2 + 3 => Product pricing => Topic started by: ibnati on February 01, 2018, 02:15:49 am

Title: display total products in add to cart popup
Post by: ibnati on February 01, 2018, 02:15:49 am
hello

i want add the totalProduct nummbers in cart and the cart subtotal price (the total Price of all added products)

also for the totalProduct  i have added the cod to the padded.php file on the template

<?php
  echo $data->totalProduct;
  echo $data->billTotal;
?>

but i get the error :
Notice: Undefined variable: data in templates\xxx\html\com_virtuemart\cart\padded.php on line 79

Notice: Trying to get property of non-object in templates\xxx\html\com_virtuemart\cart\padded.php on line 79

Notice: Undefined variable: data in templates\xxx\html\com_virtuemart\cart\padded.php on line 80

Notice: Trying to get property of non-object in templates\xxx\html\com_virtuemart\cart\padded.php on line 80


how can i fix them please ?

thanks
amine