Post by jamieleshaw » Tue Aug 04, 2009 1:01 pm

Hello when I try to add a manufacturer it says:
Notice: Undefined variable: manufacturer_id in /home/jamboce1/public_html/admin/model/catalog/manufacturer.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/jamboce1/public_html/admin/model/catalog/manufacturer.php:7) in /home/jamboce1/public_html/system/engine/controller.php on line 23

I'm using OpenCart 1.3
My template is default_blue with readymans dynamic menu.

How do I fix this?

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by jamieleshaw » Tue Aug 04, 2009 5:35 pm

bump

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by babaloo » Tue Aug 04, 2009 10:05 pm

whith the default template you still have the same problem ?

User avatar
New member

Posts

Joined
Sun Mar 29, 2009 1:44 am

Post by Qphoria » Wed Aug 05, 2009 1:33 am

its not a template issue. its in the controller, but I dont see that line at line 7
What version of OpenCart?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by orionweb » Wed Aug 05, 2009 5:28 am

he says version 1.3 in his post. :P

Image
Image


New member

Posts

Joined
Sun Jul 19, 2009 10:18 am

Post by jamieleshaw » Wed Aug 05, 2009 8:34 am

Hello, I tryed with th default template same thing happened.
My version is 1.3 using the default_blue template by readman.
I am also using dynamic menus by readyman.
I'm looking into that now.
Last edited by jamieleshaw on Wed Aug 05, 2009 8:42 am, edited 1 time in total.

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by jamieleshaw » Wed Aug 05, 2009 8:41 am

Hello, I wish to correct my previous post.
I have to modify to files that were in the catalog folder those were.
catalog/controller/module/category.php
catalog/model/category.php
I can't remember if I added those or not.

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by jamieleshaw » Wed Aug 05, 2009 6:24 pm

bump

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am

Post by Qphoria » Thu Aug 06, 2009 5:40 am

Ok. its a bug.

EDIT: admin/model/catalog/manufacturer.php file

FIND THE FIRST INSTANCE OF:

Code: Select all

if ($data['keyword']) {
BEFORE, ADD:

Code: Select all

$manufacturer_id = $this->db->getLastId();

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jamieleshaw » Thu Aug 06, 2009 8:25 am

Thanks alot.
Be sure to check my store out, it's launched now.

Active Member

Posts

Joined
Sun Jul 26, 2009 11:19 am
Who is online

Users browsing this forum: No registered users and 50 guests