You are here

function uc_discounts_get_codeless_discounts_for_product in Ubercart Discounts (Alternative) 7.2

Returns all codeless discounts that apply to a product.

Parameters

object $product: Loaded ubercart product.

string $sort_column: Column name on which to sort the discounts.

bool $is_ascending_sort: TRUE sorts ascending.

Return value

array Array of discount IDs

1 call to uc_discounts_get_codeless_discounts_for_product()
theme_codeless_discounts_field_get_codeless_discount_html_for_product in codeless_discounts_field/codeless_discounts_field.module

File

uc_discounts/uc_discounts.module, line 2056

Code

function uc_discounts_get_codeless_discounts_for_product($product, $sort_column = "weight", $is_ascending_sort = TRUE) {
  return uc_discounts_get_codeless_discounts_for_product_and_quantity($product, NULL, $sort_column, $is_ascending_sort);
}