Author Topic: How to pull product option id from the database?  (Read 8430 times)

Offline Ollie

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +27/-1
    • View Profile
    • Assistech
How to pull product option id from the database?
« 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.

Assistive technologies for people with special needs:
https://assistech.com/store/

Offline Ollie

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +27/-1
    • View Profile
    • Assistech
Re: How to pull product option id from the database?
« Reply #1 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; ?>">
Assistive technologies for people with special needs:
https://assistech.com/store/

 

Powered by SMFPacks Social Login Mod