Sorry for the delay, we have shortcode for listing the same, but the feature is only available on PRO version, you can use custom query for displaying the same
$set_rules = [];
$set_type = '';
$set_rules = $this->discount_rules;
$listing_pagination = true;
$listing_limit = 3;
$listing_columns = 9;
array_multisort( array_column($set_rules, "type"), SORT_ASC, $set_rules );
if ( $set_rules && !is_admin() ) {
$prodids = [];
foreach ( $set_rules as $rule ) {
$prodids = array_merge ( $prodids, $this->get_list_products($rule) );
}
if ( !empty ( $prodids ) ) {
$prodids = array_values ( array_unique ( $prodids, SORT_REGULAR ) );
$prodids = implode ( ", ", $prodids );
echo do_shortcode('[products limit="'.$listing_limit.'" columns="'.$listing_columns.'" ids="'.$prodids.'" paginate="'.$listing_pagination.'"]');
}
}
-
This reply was modified 2 years, 1 month ago by ijas.