PDA

View Full Version : Suggestions for a Shopping Cart ?!?


Psybernaut
08-28-2007, 10:59 PM
Hi All,

Perhaps Shopping Cart is strictly speaking not really the correct term here, but let me explain the situation...

I'm developing a site from the ground up, basically because the products and data are very specialised, as is the way I need to display and arrange it in the frontend, so I don't want to use a full shopping cart with database and backend as this is already done. What I need is to add in a cart of some sort which can simply keep track of the items which have been clicked on by a visitor during a single session (there is no registration required for the site). When the visitor is ready and has everything they are interested in, listed in the cart, they click the checkout (although I will call it something else) and this will send all the information to the client via an email (preferably in PDF format, but that is another issue all together). There is no need to store the information and, at this stage, no need to process a credit card, although sometime in the future this may be required, but I'm working under the assumption that this should be easy enough to add as the cart will already be able to total the amounts and parse the total to a gateway which will handle the CC details and processing, but I'll worry more about that later.

Can anyone offer any suggestions on the best way to do this? Is there perhaps a DW extension to handle this sort of thing and take the hassle out of it? Maybe I'm over thinking it and there is a simple way to do this, so I'm open to suggestions.

edbr
08-29-2007, 01:01 AM
I would look at a shopping cart. there are a lot around . my favourite is cpCommerce as first it is free, but mostly because ti is very easy to adapt to your needs.

Cary
08-29-2007, 04:47 AM
I don't know what to recommend, though some people find it simpler to pass the money side of things off to PayPal. Did a search and I think you should take a look at security issues with cpCommerce or anything else you may be considering.

Psybernaut
08-29-2007, 05:24 AM
Hi,

Thanks for the replies so far. As I said, I don't need a whole cart system because that would require redoing work that has already been done. All I need is a simple system which works like a cart and can add like a cart, but I can simply incorporate that part of it into my site. At this point there is no payment necessary and if it is required sometime in the future it will almost certainly be done trough a gateway or virtual card system of some sort so parsing the total out to them for processing and then receiving back a confirm or deny will be all that is required.

I'll look into cpCommerce more closely. I did a quick search and noticed the word "modular" which may be a good start especially if I can extract just the bit I need and throw the rest away :)

But I'm still open to more ideas or suggestions if anyone out there has already been faced with a similar situation and succeeded.

edbr
08-29-2007, 05:49 AM
good point Cary, it does have several payment gateway modules included

davidj
08-29-2007, 09:06 AM
Thanks for the replies so far. As I said, I don't need a whole cart system because that would require redoing work that has already been done. All I need is a simple system which works like a cart and can add like a cart,


is that like saying i don't want a whole duck... just something that walks like a duck and quacks like a duck.. I don't need it to fly as i have a duck which does that.......!

forgive the analogy.... hehe

it would be better to code this yourself as its not a full cart it would be easier to write a bespoke solution. This wouldn't be that difficult once you have an understanding of PHP

we could learn this together if you have the time and commitment and the will to learn.

Psybernaut
08-29-2007, 11:17 AM
is that like saying i don't want a whole duck... just something that walks like a duck and quacks like a duck.. I don't need it to fly as i have a duck which does that......

LOL

Well.... I'd put it more like this... I already have a walking, quacking duck which I'm very fond of, even though it can't fly, and I'm hoping I can find a solution to make it fly rather than get a new duck :)

Ok, so foul analogies aside. I just finished reading through the PHP Cart (http://www.adobe.com/devnet/dreamweaver/articles/php_cart.html)article I found through another post, which was very interesting and on the face of it, looks like it could be just the sort of thing I need, with some modification. For one thing, I'll most likely want the information deleted from the database automatically to avoid a build up of data from abandoned carts.

Having said that, in answer to your question, I'm always open to learn new things. I have a rudimentary understanding of PHP, enough to make small modifications, but nowhere near the knowledge to code the whole thing from scratch.

davidj
08-29-2007, 11:40 AM
if you have a basic understanding then we can build a jetpack for your duck together

it will be a simple task

first i must ask you to follow these tuts and then come back and we will build your solution and aquire a new skill at the same time plus the duck gets to fly

a win win win situation

http://www.dreamweaverclub.com/vtm/php-mysql-apache.php

Psybernaut
08-29-2007, 12:12 PM
Thanks, I will have a look through these and come back to you, although quickly looking at the headings, I would say I probably know most of this. I already use wamp for my local testing, but prefer a combination of DBD4 and phpMyAdmin for database creation, but none the less, I'll give it a looksee. I'm bound to come across things I didn't know :)

davidj
08-29-2007, 12:14 PM
do you hand code your php??

Psybernaut
08-29-2007, 12:36 PM
do you hand code your php??


Alas, I must confess that I'm lazy and let DW do most of the work. I have only leaned the bits of PHP I need to know as I go along to make adaptive changes and troubleshoot/solve problems :roll:


Edit:
In my defence though, I did start learning PHP basics, connections etc so I could understand how it all works... then I realised that DW would do it for me.

Edit2:
I should also point out that I'm a bit of a late bloomer and only moved into PHP/MySQL a little under a year ago, so it's been a really steep learning curve thus far and I probably missed some fundamentals along the way.

davidj
08-29-2007, 01:34 PM
you dont know PHP until you can hand code it.

my tutorials will show you everything you need to leave the dreamweaver toys alone

i have a strong standing on this... If a user chooses to build a site using shortcuts and wizards then when they run into trouble then they should only expect to be given an extension which may sort them out (9/10 times they dont sort out anything)...

Psybernaut
08-29-2007, 01:54 PM
Well, as I said, I am going through your tutorials. If for no other reason than, one can never know or learn too much about the right way vs the wrong way to do things. Then I shall return and perhaps we can discuss that jet pack.

Psybernaut
08-30-2007, 12:37 AM
Well.... what can I say but WOW !!!

What an excellent set of tutorials. I got so hooked I ended up going through them all, even the AJAX one which I found interesting, never having used it, but possibilities started springing up in my mind right, left and centre.

A lot of the php stuff I had already covered to some extent, but what I missed out on with written tutorials are some of the finer points which where so much easier to understand when explained in an example, and how clean the code can actually be.

I hope you will be producing some more of these in the near future. Personally, I'd also like to see some more of the database stuff, covering some of the more advanced things that can be done on the database side.

Just one thing. The first part of the login tutorial stopped around 12min 30. I reloaded it but it did the same thing so I'm not sure if it's just me or if it's the video, but all the others worked fine. I just thought I would point it out.

m1a2x3x7
08-30-2007, 01:11 AM
maybe we can make this a 3 person team I'm interested in build a shopping cart myself and would like to help.

davidj
08-30-2007, 09:10 AM
try clearing your cache Psyber and then reloading the tut