Page 1 of 2

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

Posted: Sat Oct 23, 2010 3:35 am
by Qphoria
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.

Re: @Developers - OpenCart Global Library Methods

Posted: Sat Oct 23, 2010 5:19 am
by Johnathan
Sweet! Thanks as always.

Re: @Developers - OpenCart Global Library Methods

Posted: Sat Oct 23, 2010 9:06 am
by fido-x
Good stuff, Q.

Re: @Developers - OpenCart Global Library Methods

Posted: Sat Oct 23, 2010 12:08 pm
by imaginetech
Nice work. Appreciated.

Re: @Developers - OpenCart Global Library Methods

Posted: Tue Oct 26, 2010 3:44 am
by mystifier
Thanks. That's even useful for half-assed hackers. ;)

Re: @Developers - OpenCart Global Library Methods

Posted: Tue Oct 26, 2010 6:06 am
by Qphoria
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.

Re: @Developers - OpenCart Global Library Methods

Posted: Tue Oct 26, 2010 6:19 pm
by qahar
very awesome job.. thanks..

Re: @Developers - OpenCart Global Library Methods

Posted: Thu Nov 04, 2010 6:48 pm
by JAY6390
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

Re: @Developers - OpenCart Global Library Methods

Posted: Mon Nov 08, 2010 11:30 am
by amdev
Many Thanks, Q. :) :) :)

Re: @Developers - OpenCart Global Library Methods

Posted: Mon Nov 08, 2010 2:22 pm
by Qphoria
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

Re: @Developers - OpenCart Global Library Methods

Posted: Mon Nov 08, 2010 4:39 pm
by MrConn
Bookmarked! :-D

Re: @Developers - OpenCart Global Library Methods

Posted: Thu Apr 07, 2011 1:57 pm
by deepujob
It is Great Contribution and is really helps a lot . Thank you. :)

Re: @Developers - OpenCart Global Library Methods

Posted: Thu Apr 21, 2011 7:17 am
by tdaubs
Excellent resource. Thanks for providing it!

Regarding docs, Is there an area where all the existing docs and other doc resources can be downloaded?

Re: @Developers - OpenCart Global Library Methods

Posted: Fri Apr 22, 2011 11:21 pm
by mystifier
Missing:

USER
$this->user->login()
$this->user->logout()
$this->user->isLogged()
$this->user->getUserName()
$this->user->getID()
$this->user->hasPermission()

Re: @Developers - OpenCart Global Library Methods

Posted: Fri Apr 22, 2011 11:30 pm
by Qphoria
And there are new ones in 1.4.9 for currency as well

Re: @Developers - OpenCart Global Library Methods

Posted: Thu Apr 28, 2011 10:01 pm
by ckonig
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

Re: @Developers - OpenCart Global Library Methods

Posted: Tue May 03, 2011 2:43 pm
by saba
@Developers - OpenCart Global Library Methods

Thankx Alot

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

Posted: Wed Jul 13, 2011 6:02 pm
by robbamacco
Thank You for the pdf.
Is available something like this for the 1.5?

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

Posted: Mon Nov 21, 2011 9:32 pm
by asdrubal
Thanks a lot bro !o/

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

Posted: Mon Jan 02, 2012 7:59 pm
by smartexport
thank you. this is exactly what i searched for.