Advertisement:

Author Topic: Adding region key to Category  (Read 1388 times)

beebo

  • Newbie
  • *
  • Posts: 15
Adding region key to Category
« on: January 15, 2011, 11:09:37 pm »
Hey guys,

I'm trying to add fk to categories which is linked with regions. This way I can load category content according to the region.

I've already added the key to the category table in the database, but I'm running into a problem because I don't know where you keep your methods for the form.

so this is the new field i added to the category form

Quote
                <div class="FormElement">
                <div class="FormElementName"><?php echo __('Province'); ?></div>
               <div class="FormElementInput">
                  <?php CategoryForm::region_category_select($categories, $category, __("---"), "fk_c_region") ; ?>
               </div>
                </div>

This is the error I get, which I understand since I don't know where you define your methods.

Fatal error: Call to undefined method CategoryForm::region_category_select() in /var/www/vhosts/sellmyunibooks.com/httpdocs/oc-admin/themes/modern/categories/frm.php on line 70