theme_uc_product_add_to_cart

Function theme_uc_product_add_to_cart() in uc_product.module:
<?php
   theme_uc_product_add_to_cart
($node)
?>

Description:

Wraps the Add to Cart form in a <div> tag with class "add_to_cart".

Parameters:
  • $node - the product node object that will be added to the cart when the form is submitted.
Return value:
An HTML string containing the Add to Cart form.

Example:
<?php
  $node
= node_load($nid);
 
$output .= theme('uc_product_add_to_cart', $node);
?>