News:

Looking for documentation? Take a look on our wiki

Main Menu

display total products in add to cart popup

Started by ibnati, February 01, 2018, 02:15:49 AM

Previous topic - Next topic

ibnati

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