Fetching a value of custom field in the Category Page
Posted: Mon Oct 26, 2015 2:34 am
Hi All,
Added an Extra Yes or No option in the Admin Product Page Data Tab. I have added a column 'custom' to the oc_product page on the DB.
The Column will have either 0 or 1. I am done with the Admin page.
But when I fetch the values as $custom on the catalog\view\theme\cosyone\template\product\category.tpl, it says undefined variable.
My requirement is to get the value (1 or 0) for that product from the DB on the Category Page.
How do I fetch the values from DB ?
Added an Extra Yes or No option in the Admin Product Page Data Tab. I have added a column 'custom' to the oc_product page on the DB.
The Column will have either 0 or 1. I am done with the Admin page.
But when I fetch the values as $custom on the catalog\view\theme\cosyone\template\product\category.tpl, it says undefined variable.
My requirement is to get the value (1 or 0) for that product from the DB on the Category Page.
How do I fetch the values from DB ?