Post by finedesignz » Wed Jan 11, 2012 8:38 am

Hi,

I had a custom edit to the public function category() in admin>controller>catalog>product.php in v1.4.9. Now that I've upgraded to 1.5.1.3, I can't find the function that generates the category select box values for the product form.

All I changed was this from:

Code: Select all

foreach ($results as $result) {
			$product_data[] = array(
				'product_id' => $result['product_id'],
				'name'       => $result['name'],
				'model'      => $result['model']
			);
		}
to:

Code: Select all

foreach ($results as $result) {
			$product_data[] = array(
				'product_id' => $result['product_id'],
				'name'       => $result['name'],
				'model'      => $result['model'],
                'parent_id'      => $result['parent_id']
			);
		}
I just need to add the parent id so I can use it in the template.

Any help?

New member

Posts

Joined
Tue Feb 08, 2011 3:57 am
Who is online

Users browsing this forum: No registered users and 16 guests