X3non Posted March 25, 2015 Share Posted March 25, 2015 Hi, I'm currently trying to get the information of the configoptions's array. We have a listbox with different HD size: 10 SAS 20 SAS 30 SAS 10 SATA 20 SATA 30 SATA etc. When I get the information of this array, it appear as number... Ex: SAS - 80 Go $360.00 CAD = $_SESSION['cart']['products'][$i]['configoptions'][25] When I do a print_r($_SESSION['cart']['products'][$i]['configoptions']), I get [configoptions] => Array ( [29] => 4 [27] => 4 [25] => 95 [28] => 117 ) Does anyone know why I do not have string in this array ? 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted March 27, 2015 Share Posted March 27, 2015 Those are the IDs of the configurable options. The value in the bracket ("[]") is the ID of the options itself (from "tblproductconfigoptions.id") and the value after "=>" is the ID of the value of the option (from "tblproductconfigoptionssub.id"). You will need to query the database, using these IDs, to get the actual values. The name of the option is found in "tblproductconfigoptions.optionname", and the value of the option is found in "tblproductconfigoptionssub.optionname". 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.