Fr3DBr Posted July 13, 2016 Share Posted July 13, 2016 Hi, how are the custom product fields stored in the database ? In which way we can fetch their values for a specific customer product ? 0 Quote Link to comment Share on other sites More sharing options...
Fr3DBr Posted July 13, 2016 Author Share Posted July 13, 2016 I think, this may be the correct way right: SELECT * FROM tblhostingconfigoptions AS tco INNER JOIN tblproductconfigoptions AS tpco ON tco.configid = tpco.id INNER JOIN tblproductconfigoptionssub AS tpcos ON tco.optionid = tpcos.id WHERE relid = SERVICE_ID - - - Updated - - - While a final version might be: SELECT tpco.optionname as name, tpcos.optionname as value FROM tblhostingconfigoptions AS tco INNER JOIN tblproductconfigoptions AS tpco ON tco.configid = tpco.id INNER JOIN tblproductconfigoptionssub AS tpcos ON tco.optionid = tpcos.id WHERE relid = SERVICE_ID 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.