Post by Qphoria » Sat Oct 23, 2010 3:35 am

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 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Johnathan » Sat Oct 23, 2010 5:19 am

Sweet! Thanks as always.

Image
Image Image Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by fido-x » Sat Oct 23, 2010 9:06 am

Good stuff, Q.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by imaginetech » Sat Oct 23, 2010 12:08 pm

Nice work. Appreciated.

Image
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.


User avatar
Active Member

Posts

Joined
Fri Sep 04, 2009 12:25 pm
Location - Darwin, Australia

Post by mystifier » Tue Oct 26, 2010 3:44 am

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


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by Qphoria » Tue Oct 26, 2010 6:06 am

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.

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by qahar » Tue Oct 26, 2010 6:19 pm

very awesome job.. thanks..

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by JAY6390 » Thu Nov 04, 2010 6:48 pm

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

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor PRO - Make ANY url on your site have clean keywords - even third party extensions (remove index.php)


Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by Qphoria » Mon Nov 08, 2010 2:22 pm

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

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MrConn » Mon Nov 08, 2010 4:39 pm

Bookmarked! :-D

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by deepujob » Thu Apr 07, 2011 1:57 pm

It is Great Contribution and is really helps a lot . Thank you. :)

Newbie

Posts

Joined
Thu Apr 07, 2011 1:49 pm

Post by tdaubs » Thu Apr 21, 2011 7:17 am

Excellent resource. Thanks for providing it!

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

Image
Opencart Support | Opencart Galaxy


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by mystifier » Fri Apr 22, 2011 11:21 pm

Missing:

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


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by Qphoria » Fri Apr 22, 2011 11:30 pm

And there are new ones in 1.4.9 for currency as well

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ckonig » Thu Apr 28, 2011 10: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
Active Member

Posts

Joined
Wed Feb 16, 2011 4:26 pm
Location - Netherlands

Post by saba » Tue May 03, 2011 2:43 pm

@Developers - OpenCart Global Library Methods

Thankx Alot

Newbie

Posts

Joined
Tue May 03, 2011 2:23 pm

Post by robbamacco » Wed Jul 13, 2011 6:02 pm

Thank You for the pdf.
Is available something like this for the 1.5?

Newbie

Posts

Joined
Thu Jul 07, 2011 10:00 pm

Post by asdrubal » Mon Nov 21, 2011 9:32 pm

Thanks a lot bro !o/

Newbie

Posts

Joined
Tue Nov 08, 2011 12:55 am

Post by smartexport » Mon Jan 02, 2012 7:59 pm

thank you. this is exactly what i searched for.

Newbie

Posts

Joined
Wed Dec 28, 2011 3:52 pm
Who is online

Users browsing this forum: No registered users and 11 guests