Community Forums

How to pull manufacturers

Coding & concept discussion for OpenCart v1.x development

How to pull manufacturers

Postby logicPwn » Fri Jul 06, 2012 3:42 pm

I am a knowledgeable web coder already. I was recently called upon to create a web store and chose OpenCart for obvious reasons. OpenCart is real nice and simple enough but it doesn't have that many free modules, makes me sad. I am learning to create them myself and pretty much just doubled the admin end of the account module and branded it manufacturers (creating a module to display a list of manufacturers or maybe a drop down list, still throwing around ideas a bit). I have done the language, controller, and view and now onto the catalog side. I have doubled the latest controller and working from there, cleaning it out and adapting it to my needs.

What I need to know is how to grab the manufacturers using the OpenCart preferred method. I have noticed that OpenCart has an API but it's not exactly well documented. Is there a function to pull this data or do I need to execute a query?

I plan on releasing this module for free regardless if there is already one. I don't really care if it's been done at this point as I am learning to do basic extensions for OpenCart and it will help down the road if not in the near future.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
logicPwn
 
Posts: 13
Joined: Thu Jul 05, 2012 10:11 pm
Location: Fresno, CA

Re: How to pull manufacturers

Postby logicPwn » Fri Jul 06, 2012 5:27 pm

Scratch that, I'm an idiot. Of course OpenCart already had functionality to show manufacturers so I just copied that. :laugh:

Side note: first time with MVC and kind of liking it. At first seemed like a headache but in a big PHP app like OC it works nice.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
logicPwn
 
Posts: 13
Joined: Thu Jul 05, 2012 10:11 pm
Location: Fresno, CA


Return to Concepts

Who is online

Users browsing this forum: No registered users and 3 guests

Hosted by Arvixe Web Hosting