AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: Ollie on December 04, 2014, 12:11:59 AM

Title: How to pull product option id from the database?
Post by: Ollie on December 04, 2014, 12:11:59 AM
I need to pull product option id from the database but no matter what I try, nothing seems to work. This was my latest attempt:

<label class="control-label" tabindex="0" for="option<?php echo '[' . $option['product_option_id'] .']'; ?>">

Attached is a screenshot showing the database table I'm referring to. Any help will be greatly appreciated.

Title: Re: How to pull product option id from the database?
Post by: Ollie on January 16, 2015, 07:04:46 AM
I found the answer to my own question: 

<?php echo '[' . $option['product_option_id'] .']'; ?>"> must be replaced with <?php echo $option['html']->element_id; ?>">