jacksony Posted January 15, 2019 Share Posted January 15, 2019 Is there a way or SQL to search for that? Eg. we want to search for a list of services which have the value of certain Configurable Option. 0 Quote Link to comment Share on other sites More sharing options...
SilverNodashi Posted February 18, 2019 Share Posted February 18, 2019 This would be quite handy. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 18, 2019 Share Posted February 18, 2019 SQL query: SELECT `tblhosting`.id FROM `tblhosting` left join tblhostingconfigoptions on tblhosting.id = tblhostingconfigoptions.relid where tblhostingconfigoptions.id = 1; Just replace the id for the configuration id you are interested in. You can get that id via the configurable options editor's URL -- cid=1. An addon module that grabs the configurable options and provides a search would be much easier. For that you would use capsule: $Services = DB::table('tblhosting') ->join('tblhostingconfigoptions', 'tblhosting.id', '=', 'tblhostingconfigoptions.relid') ->select('tblhosting.*', 'tblhostingconfigoptions.qty') ->where('tblhostingconfigoptions.id', 1) ->get(); And just replace the "1" with your module's search box input. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.