I try to get the digital products ,when an element is exist in the included elements . (the Digital product has a super table field which include elements)

how it works in Craft ? it didn't work like that and returns null

    $products = Product::find()->id($productIds)->all();
    $digitalProducts = DigitalProduct::find()->with(["superTableHandle.product"])->relatedTo($products)->all();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.