@Developers - OpenCart Global Library Methods [1.4.x]
23 posts
• Page 1 of 2 • 1, 2
@Developers - OpenCart Global Library Methods [1.4.x]
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.
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

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18212
- Joined: Mon Jul 21, 2008 7:02 pm

Re: @Developers - OpenCart Global Library Methods
Good stuff, Q.

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?
-

fido-x - Posts: 1960
- Joined: Fri Jun 27, 2008 5:09 pm
- Location: Tasmania, Australia
Re: @Developers - OpenCart Global Library Methods
Nice work. Appreciated.
-

imaginetech - Posts: 357
- Joined: Fri Sep 04, 2009 4:25 am
- Location: Darwin, Australia
Re: @Developers - OpenCart Global Library Methods
Thanks. That's even useful for half-assed hackers. 

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
-

mystifier - Posts: 779
- Joined: Tue May 18, 2010 9:15 am
Re: @Developers - OpenCart Global Library Methods
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.

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18212
- Joined: Mon Jul 21, 2008 7:02 pm

Re: @Developers - OpenCart Global Library Methods
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.
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.
-

qahar - Posts: 1648
- Joined: Tue Jun 29, 2010 2:24 pm
- Location: Indonesia
Re: @Developers - OpenCart Global Library Methods
Great contribution Q, only just seen this now. Always good to have a cheat sheet to hand
If you want help with getting these into a codex of sorts, let me know. I think this would be really useful to people
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

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

-

JAY6390 - Posts: 4636
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: @Developers - OpenCart Global Library Methods
Many Thanks, Q.


-

amdev - Posts: 167
- Joined: Fri Nov 27, 2009 7:40 am
- Location: Bangkok - Thailand
Re: @Developers - OpenCart Global Library Methods
JAY6390 wrote:Great contribution Q, only just seen this now. Always good to have a cheat sheet to handQphoria 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

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18212
- Joined: Mon Jul 21, 2008 7:02 pm

Re: @Developers - OpenCart Global Library Methods
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
Excellent resource. Thanks for providing it!
Regarding docs, Is there an area where all the existing docs and other doc resources can be downloaded?
Regarding docs, Is there an area where all the existing docs and other doc resources can be downloaded?
-

tdaubs - Posts: 259
- Joined: Thu Apr 07, 2011 8:51 pm
- Location: Southern California
Re: @Developers - OpenCart Global Library Methods
Missing:
USER
$this->user->login()
$this->user->logout()
$this->user->isLogged()
$this->user->getUserName()
$this->user->getID()
$this->user->hasPermission()
USER
$this->user->login()
$this->user->logout()
$this->user->isLogged()
$this->user->getUserName()
$this->user->getID()
$this->user->hasPermission()
Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products
-

mystifier - Posts: 779
- Joined: Tue May 18, 2010 9:15 am
Re: @Developers - OpenCart Global Library Methods
And there are new ones in 1.4.9 for currency as well

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18212
- Joined: Mon Jul 21, 2008 7:02 pm

Re: @Developers - OpenCart Global Library Methods
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
$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
-

ckonig - Posts: 193
- Joined: Wed Feb 16, 2011 8:26 am
- Location: Netherlands
Re: @Developers - OpenCart Global Library Methods
@Developers - OpenCart Global Library Methods
Thankx Alot
Thankx Alot
- saba
- Posts: 2
- Joined: Tue May 03, 2011 6:23 am
Re: @Developers - OpenCart Global Library Methods [1.4.x]
Thank You for the pdf.
Is available something like this for the 1.5?
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]
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]
thank you. this is exactly what i searched for.
- smartexport
- Posts: 7
- Joined: Wed Dec 28, 2011 7:52 am
23 posts
• Page 1 of 2 • 1, 2

























