Jump to content

Array ['configoptions']


Recommended Posts



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






When I get the information of this array, it appear as number...




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 ?

Link to comment
Share on other sites

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".

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.

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