Post by oscprofessionals » Fri Jul 20, 2012 2:29 am

Good reference document for quick solutions.
Highly appreciated.

Team of e-commerce experts.

oscprofessionals


New member

Posts

Joined
Mon Jul 16, 2012 12:14 am
Location - Nagpur, India

Post by KollanH » Fri Dec 07, 2012 6:37 am

Thank you so very much for this it is a lifesaver1

Donate | Confirm Email when registering or during guest checkout | Print Order Information


New member

Posts

Joined
Fri Dec 07, 2012 6:19 am

Post by sputnik-1 » Thu Nov 07, 2013 8:34 pm

Thanks for that Q.

Next question:

Do we actually have some sort of OpenCart Extension Developers Guide yet, to show how to write OC extensions, and integrate them into OC using these methods please?

I've got the OC 1.4 Template Design Cookbook by Packt Publishing but cannot find anything that deals with writing modules to extend OC's functionality.

User avatar
New member

Posts

Joined
Sun Apr 28, 2013 5:01 am

Post by JAY6390 » Thu Nov 07, 2013 8:53 pm

As far as I know,this article I wrote on stack overflow is the most in depth guide for developers. It assumes you have some knowledge of PHP/MySQL and while it doesn't explain a "module" as such, it gives you the building blocks to figure out what a module's code is doing and why - and should help you replicate it

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

Post by sputnik-1 » Fri Nov 08, 2013 4:33 am

Thanks for that link Jay.

I'll take a closer look at that soon.

Is it possible to write an API class with a set of wrapper methods that could be included in the index.php file, and made available to all other PHP scripts in OC?

I'm just toying with the idea of writing something like that.

User avatar
New member

Posts

Joined
Sun Apr 28, 2013 5:01 am

Post by sputnik-1 » Fri Nov 08, 2013 5:40 am

Code: Select all

$this->cart->hasProducts() - returns true if there is at least one item in the cart
$this->cart->hasStock() - returns false if there is at least one item in the cart that is out of stock
$this->cart->hasProducts() - returns true if there is at least one item in the cart that requires shipping
should this not be:

Code: Select all

$this->cart->hasProducts() - returns true if there is at least one item in the cart
$this->cart->hasStock() - returns false if there is at least one item in the cart that is out of stock
$this->cart->hasShipping() - returns true if there is at least one item in the cart that requires shipping
;)

User avatar
New member

Posts

Joined
Sun Apr 28, 2013 5:01 am

Post by JAY6390 » Fri Nov 08, 2013 5:50 am

It should, and that's someone elses post not mine ;)

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

Post by sputnik-1 » Sat Nov 09, 2013 5:11 am

JAY6390 wrote:It should, and that's someone elses post not mine ;)
Yes I understand that.

The typo is in the PDF.

:)

User avatar
New member

Posts

Joined
Sun Apr 28, 2013 5:01 am

Post by Qphoria » Sat Nov 09, 2013 5:44 am

sputnik-1 wrote:
JAY6390 wrote:It should, and that's someone elses post not mine ;)
Yes I understand that.

The typo is in the PDF.

:)
Looks like I made my one mistake for that year ;)

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
Who is online

Users browsing this forum: No registered users and 14 guests