D6 displays Fatal error: Call to undefined function uc_cart_add_item()

Project: 
Ubercart
Category: 
bug report
Priority: 
normal
Assigned: 
Unassigned
Status: 
fixed

Hi UberDudes,

I finally made my custom node-product.tlp.php working, and after adding

<?php
  $node
= node_load($nid);
 
$output = theme_uc_product_add_to_cart($node);
  print
$output;
?>

to the code it displays a add to cart button. After clicking that button, I see the next message:

Fatal error: Call to undefined function uc_cart_add_item() in /home/marolii/public_html/jansen/sites/default/modules/ubercart/uc_product/uc_product.module on line 1890

I am using 6.x-2.x-dev

Card is missing

I feel dumb....

Cart is not enabled. I'll check that out.