Added product active flag, saving filter in Product/Index
This commit is contained in:
@@ -155,6 +155,7 @@ class PreorderController extends mfBaseController {
|
||||
|
||||
$products = [];
|
||||
foreach(ProductNetworkModel::search(["network_id" => $campaign->network_id]) as $pn) {
|
||||
if(!$pn->product->active) continue;
|
||||
if(!array_key_exists($pn->product_id, $products)) {
|
||||
if(is_array($pn->product->attributes) && !array_key_exists("presales", $pn->product->attributes)) {
|
||||
$products[$pn->product_id] = $pn->product;
|
||||
|
||||
Reference in New Issue
Block a user