You are here

public function UcAjaxCart::hasAttributes in Ubercart AJAX Cart 7.2

Same name and namespace in other branches
  1. 6.2 uc_ajax_cart.php \UcAjaxCart::hasAttributes()

File

./uc_ajax_cart.extender.inc, line 99

Class

UcAjaxCart

Code

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