Author Topic: Selling Items on SMFShop for credits  (Read 1581 times)

Offline bigjoe11a

Selling Items on SMFShop for credits
« on: March 16, 2011, 10:13:50 am »
Creating my own Item for SMF Shop.

I setting up a PHP script to let me add Items into my shop, with some new changes and I'm a little lost on this, since I never coded in PHP like this before.

1) Can I add my own fields in.
2) how do I get the users current credits and subtract them.
3) I need to setup a new table and add data to it.
4) Sending emails

See my idea is for users who post messages can get credits. With these credits they can buy games, Since my forums section is all about games.

1) I need to add an option to it called Shipping. This is the amount of credits the user needs to ship the game to them. This can be changed when I'm adding a new item.

2) I need to get the users credits and subtract the shipping credits from there total. If they don't have enough credits. Its stops there.

3) I want to be able to save this to a mysql table. {db_prefix}invoices

4) I need to send the buyer and seller an email.

I attached to files that I started on. It would be great if some one could help me..
Serving Gamers from around the world