Jump to content

Search Configurable Options


jacksony

Recommended Posts

  • 1 month later...

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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated