11 Replies - 10043 Views - Last Post: 29 July 2008 - 02:15 PM Rate Topic: -----

#1 technotool  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-June 08

OOP Shopping Cart Tutorial

Posted 30 June 2008 - 06:49 AM

Could anyone create a OOP PHP Tutorial that builds a shopping cart. I think that it would be an invaluable resource for those of us trying to make the leap over to OOP....which is not easy. I completed a shopping cart tutorial to learn procedural PHP and it was like a moonshot in my understanding of php. To earn the love and adoration of thousands of PHP'ers please make this tutorial.

Thanks

Technotool... :rolleyes:

Is This A Good Question/Topic? 0
  • +

Replies To: OOP Shopping Cart Tutorial

#2 joeyadms  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 178
  • Joined: 04-May 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 07:20 AM

If noone else makes one before me, I'll make one sometime this week when I get a chance.
Was This Post Helpful? 0
  • +
  • -

#3 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 797
  • Joined: 25-February 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 11:15 AM

Ha, joeyadms, you'll need to write a book.

OOP PHP Shopping Carts for DIC Heads
Was This Post Helpful? 0
  • +
  • -

#4 joeyadms  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 178
  • Joined: 04-May 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 11:33 AM

It would seriously be a pretty involved tutorial haha. Shopping carts are heavy duty.

My tutorial would prob just be a watered down shopping cart, but would present the ideas on how to do it in a OO way.
Was This Post Helpful? 0
  • +
  • -

#5 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 797
  • Joined: 25-February 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 11:39 AM

True. I'd have responded with:

http://www.zen-cart.com/

Ha.
Was This Post Helpful? 0
  • +
  • -

#6 joeyadms  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 178
  • Joined: 04-May 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 12:06 PM

Zen cart ftw, but if you got the skills, no reason to not roll your own

Well I take that back, its better to "know" how to roll your own, haha

This post has been edited by joeyadms: 30 June 2008 - 12:07 PM

Was This Post Helpful? 0
  • +
  • -

#7 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 797
  • Joined: 25-February 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 12:09 PM

LOL yeah, no point reinventing the wheel. It's good to know how it works though because we all know that you'll eventually want it to do something it can't. I'm always nervous advising people on how to build their own carts because there are so many things to take into account. It's really something better handled by a team when you get down to the gritty details. A general overview though would be good I think.
Was This Post Helpful? 0
  • +
  • -

#8 joeyadms  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 178
  • Joined: 04-May 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 02:28 PM

Yeah, because you want you code to be modular and reusable, and to make a cart that can be modified slightly to be a drop in on any site would take a crap load of designing before even touching a keyboard.
Was This Post Helpful? 0
  • +
  • -

#9 Mike007  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 7
  • View blog
  • Posts: 332
  • Joined: 30-August 07

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 06:37 PM

View Postjoeyadms, on 30 Jun, 2008 - 02:28 PM, said:

Yeah, because you want you code to be modular and reusable, and to make a cart that can be modified slightly to be a drop in on any site would take a crap load of designing before even touching a keyboard.


Oh yeah I heard that song before. It is so hard to create something truly modular, everytime I think I got it, I either hit a wall or it becomes too complex to be truly useful.

Well I guess the hard part would be connecting the cart to the products database. I can also see the word XML coming to mind, but like you said a lot of planning. But hey, I say there are no good tutorials that teach you how to plan your design on the web, if you can include this in your tutorial it can be truly valuable.
Was This Post Helpful? 0
  • +
  • -

#10 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 797
  • Joined: 25-February 08

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 06:48 PM

I'll get that one. You can actually check out my blog on DIC and I wrote an article about the importance of planning your software. Check it out in the blogs section.
Was This Post Helpful? 0
  • +
  • -

#11 Mike007  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 7
  • View blog
  • Posts: 332
  • Joined: 30-August 07

Re: OOP Shopping Cart Tutorial

Posted 30 June 2008 - 07:18 PM

Yeah I saw something like that, I will read it. But all I'm saying is that most tutorials out there get right up to business without explaining why or how their design will look like. So with something more complex like that I would expect to see that planning part. I never see any UMLs or ERDs or anything like that.

But I will check out your blog entry, I think I read some of it..
Was This Post Helpful? 0
  • +
  • -

#12 ellisgl  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 161
  • Joined: 10-November 07

Re: OOP Shopping Cart Tutorial

Posted 29 July 2008 - 02:15 PM

X-Cart is better - but not free.

There's a lot of "howtos" for PHP carts and stuff. Just have to figure out which way you want to go with it..

The problem I have with most carts is that there is usually not a way to do split payments.

Image handling can be weird too.

Also no standards on what should defined for a product. I have few ideas what should be included.. Of course I go overboard in trying to blanket allllll wishes...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1