Jump to content

Simple PhP Shopping Site


indelible

Recommended Posts

Hi there!

 

Firstly, I've been using this forum for quite a while from the background and it has been most helpful ^^ Thanks to all of those people that have no idea how invaluable the information they have given has been lol

 

I have a vested interest in web development and I fancied improving my, "skill set," by branching out. You see, currently I most handle web-databases and I must admit that for the most part, I simply dabble in hacking other peoples code together to do what I want it to do. This is what I aim to do with the project I am about to tell you about. I've decided to branch my skill set out into checkout systems. I have never looked at the ins and outs before and am simply wanting some advice for a kid that has no idea where to start with this.

 

Firstly, the brief: I've decided to try to write a, "simple," shopping system with no bells and whistles. Forgive me if any of this is hard to follow; communication is not a strong point of mine. The site deals with the sale of audio files.

 

- Home page contains a list of categories.

- User will click on a category and will be taken to a list of audio files.

- User will then click on an audio file and be taken to a portal page for that audio file.

- User will be able to listen to a small section of the audio file and be given the option to buy the full file.

- If the user chooses to buy the file, he clicks on a, "buy it now," button, which then takes him to Paypal.

- Paypal will process the order.

- Paypal will return the information when it has confirmed the order has been processed correctly.

- When confirmation is received that the order was processed correctly, the user will be sent a link via email to download the file they ordered.

 

That is roughly what it is going to do. I have all the time in the world to do this, so if you have any detailed questions, let me know. Really, I've already got a checkout system that I have purchased that I'm intending to hack into the site. You see, I'm not interested in learning how to do it from the ground up at the moment. I'm trying to build a basic knowledge of all things PhP, Javascript and MySQL to take to university with me next year when I turn 21. I've done web-databases to the point of exhaustion and thought this would be a nice turning point for me. With average knowledge, I can hopefully do a degree and build on that there, with some good old fashioned academic education.

 

Really, I'd like to know where to start with such a project. I'm not bothering with layout or design for this one, just the back end and everything that goes with it. If there is anyone here with any experience in dealing with these sorts of system, I'd love some advice so that I can hit the ground jogging, at the very least.

 

Thank you very much in advance :-)

Link to comment
https://forums.phpfreaks.com/topic/135221-simple-php-shopping-site/
Share on other sites

I've built a similar system dealing in images at this link TJHMEDIA. Here you can view events (categories) each even is filled with images (audio files) when you click on an image you get taken to a page with a watermarked image (partial sound clip) where you can select to buy it through paypal.

 

I put the things in brackets to match it up to your site idea.

 

Basically I'd start by building the database, and the way the database works with the front end;

 

# table with categories

# table audio info (rel id to categories)

# build the web site showing categories, audio lists and audio sample.

 

Once you get this far we should go from there, paypal integration is very simple so you may not need a checkout system. It also has a way of letting your site know who bought what (to some extent) so that can be used to trigger a database query letting you know that a user has a credit. Once they download a file delete their credit.

 

Hope this is ok for a start! :)

If you want to learn a bit more hardcore (and you have plenty of time) i'd advice starting from scratch. Get into phpMyAdmin and start putting your own table structures in place.

 

Then build the php and html to securely do everything it needs to do for you, including users registering, sign up, login in/out etc....

 

It's not to difficult a project for you from what I can tell!

I'll give it a go. User registering, sign up, login/out etc aren't things I want to address this time around. Initially I just want this thing to allow Joe Bloggs to come to a site, click on a category, click on an audio file and listen to a sample and then be given the chance to buy the file through Paypal. No bells and whistles. For example, no checkout for the time being. It's something I can address later on but for now, short and simple.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.