Community Forums

@Developers - OpenCart Global Library Methods [1.4.x]

Coding & concept discussion for OpenCart v1.x development

@Developers - OpenCart Global Library Methods [1.4.x]

Postby Qphoria » Fri Oct 22, 2010 7:35 pm

I've created this quick reference list of all the Global library methods that you can use within OpenCart when developing.
It's the closest thing to an API we have.

I will expand at some point with all the model functions as well.
Attachments
OpenCart - Global Library Methods.pdf
(64.65 KiB) Downloaded 7633 times
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: @Developers - OpenCart Global Library Methods

Postby Johnathan » Fri Oct 22, 2010 9:19 pm

Sweet! Thanks as always.
Image
ImageImageImageImageImageImageImageImageImage
User avatar
Johnathan
Global Moderator
 
Posts: 2879
Joined: Thu Dec 17, 2009 7:08 pm

Re: @Developers - OpenCart Global Library Methods

Postby fido-x » Sat Oct 23, 2010 1:06 am

Good stuff, Q.
Image
If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
User avatar
fido-x
 
Posts: 1960
Joined: Fri Jun 27, 2008 5:09 pm
Location: Tasmania, Australia

Re: @Developers - OpenCart Global Library Methods

Postby imaginetech » Sat Oct 23, 2010 4:08 am

Nice work. Appreciated.
User avatar
imaginetech
 
Posts: 357
Joined: Fri Sep 04, 2009 4:25 am
Location: Darwin, Australia

Re: @Developers - OpenCart Global Library Methods

Postby mystifier » Mon Oct 25, 2010 7:44 pm

Thanks. That's even useful for half-assed hackers. ;)
User avatar
mystifier
 
Posts: 779
Joined: Tue May 18, 2010 9:15 am

Re: @Developers - OpenCart Global Library Methods

Postby Qphoria » Mon Oct 25, 2010 10:06 pm

Was trying to cram it all into one page and it's a tight fit. I'd like to still put each of these into a codex-like page on the site when I get time, complete with examples and usage description.
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: @Developers - OpenCart Global Library Methods

Postby qahar » Tue Oct 26, 2010 10:19 am

very awesome job.. thanks..
My product: Opencart Blog Manager Free System Information
OpencartNews - News, Tutorial n Tips - Common OpenCart Errors and How to Solve Them
Don't forget to add [SOLVED] to your Thread Title (first post), if your issue is solved.
User avatar
qahar
 
Posts: 1648
Joined: Tue Jun 29, 2010 2:24 pm
Location: Indonesia

Re: @Developers - OpenCart Global Library Methods

Postby JAY6390 » Thu Nov 04, 2010 10:48 am

Great contribution Q, only just seen this now. Always good to have a cheat sheet to hand
Qphoria wrote:Was trying to cram it all into one page and it's a tight fit. I'd like to still put each of these into a codex-like page on the site when I get time, complete with examples and usage description.


If you want help with getting these into a codex of sorts, let me know. I think this would be really useful to people
ImageImageImage

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4636
Joined: Wed May 26, 2010 3:47 pm
Location: United Kingdom


Re: @Developers - OpenCart Global Library Methods

Postby Qphoria » Mon Nov 08, 2010 6:22 am

JAY6390 wrote:Great contribution Q, only just seen this now. Always good to have a cheat sheet to hand
Qphoria wrote:Was trying to cram it all into one page and it's a tight fit. I'd like to still put each of these into a codex-like page on the site when I get time, complete with examples and usage description.


If you want help with getting these into a codex of sorts, let me know. I think this would be really useful to people


I started here:
http://www.opencart.com/index.php?route ... path=43_63

But it looks like crap.. I'd like it to look nice like this:
http://codex.wordpress.org/Working_with_WordPress
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: @Developers - OpenCart Global Library Methods

Postby MrConn » Mon Nov 08, 2010 8:39 am

Bookmarked! :-D
Image
Nemmelig.no - Billige Gadgets!
MrConn
 
Posts: 118
Joined: Tue Mar 23, 2010 12:08 am

Re: @Developers - OpenCart Global Library Methods

Postby deepujob » Thu Apr 07, 2011 5:57 am

It is Great Contribution and is really helps a lot . Thank you. :)
deepujob
 
Posts: 1
Joined: Thu Apr 07, 2011 5:49 am

Re: @Developers - OpenCart Global Library Methods

Postby tdaubs » Wed Apr 20, 2011 11:17 pm

Excellent resource. Thanks for providing it!

Regarding docs, Is there an area where all the existing docs and other doc resources can be downloaded?
User avatar
tdaubs
 
Posts: 259
Joined: Thu Apr 07, 2011 8:51 pm
Location: Southern California

Re: @Developers - OpenCart Global Library Methods

Postby mystifier » Fri Apr 22, 2011 3:21 pm

Missing:

USER
$this->user->login()
$this->user->logout()
$this->user->isLogged()
$this->user->getUserName()
$this->user->getID()
$this->user->hasPermission()
User avatar
mystifier
 
Posts: 779
Joined: Tue May 18, 2010 9:15 am

Re: @Developers - OpenCart Global Library Methods

Postby Qphoria » Fri Apr 22, 2011 3:30 pm

And there are new ones in 1.4.9 for currency as well
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: @Developers - OpenCart Global Library Methods

Postby ckonig » Thu Apr 28, 2011 2:01 pm

If found some more:
$this->cart->hasShipping - return false if no product in the cart requires shipping
$this->cart->getTaxes - returns the sum of taxes for the cart content
$this->cart->setMinQty - updates all product qty's to the minimum value
User avatar
ckonig
 
Posts: 193
Joined: Wed Feb 16, 2011 8:26 am
Location: Netherlands

Re: @Developers - OpenCart Global Library Methods

Postby saba » Tue May 03, 2011 6:43 am

@Developers - OpenCart Global Library Methods

Thankx Alot
saba
 
Posts: 2
Joined: Tue May 03, 2011 6:23 am

Re: @Developers - OpenCart Global Library Methods [1.4.x]

Postby robbamacco » Wed Jul 13, 2011 10:02 am

Thank You for the pdf.
Is available something like this for the 1.5?
robbamacco
 
Posts: 2
Joined: Thu Jul 07, 2011 2:00 pm

Re: @Developers - OpenCart Global Library Methods [1.4.x]

Postby asdrubal » Mon Nov 21, 2011 1:32 pm

Thanks a lot bro !o/
asdrubal
 
Posts: 3
Joined: Mon Nov 07, 2011 4:55 pm

Re: @Developers - OpenCart Global Library Methods [1.4.x]

Postby smartexport » Mon Jan 02, 2012 11:59 am

thank you. this is exactly what i searched for.
smartexport
 
Posts: 7
Joined: Wed Dec 28, 2011 7:52 am

Next

Return to Concepts

Who is online

Users browsing this forum: icetrophy, Qphoria and 15 guests

Hosted by Arvixe Web Hosting