You are here

public function UcAjaxCart::hasAttributes in Ubercart AJAX Cart 6.2

Same name and namespace in other branches
  1. 7.2 uc_ajax_cart.extender.inc \UcAjaxCart::hasAttributes()

File

./uc_ajax_cart.php, line 114

Class

UcAjaxCart

Code

public function hasAttributes($product) {
  if (!isset($product->attributes) || !is_array($product->attributes) || count($product->attributes) == 0) {
    return false;
  }
  return true;
}