• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Nicaw ACC] Simple shop system

Raggaer

Godly Member
Joined
Jul 25, 2012
Messages
1,557
Solutions
8
Reaction score
957
Location
Spain
Hello, today I made a very simple Nicaw shop (just the shop, no payment option) system (nicaw avesta tested, newer version of PHP), but first of all

Im not a pro coder, so you might find my code = shit, I just made this to train, any tips are welcome

- Screenshots -

offers view!

Untitled-2.jpg

buy page!

Untitled-3.jpg

adding offers!

Untitled-5.jpg

- Installation -

1- Download the attachment
2- Drag files (shop,shopadd,buy) into your nicaw folder
3- Drag the file inside tools in tools
4- Drag the items folder into your nicaw folder
5- execute this querys

Code:
ALTER TABLE `players` ADD `points` int(11) NOT NULL;

Code:
CREATE TABLE IF NOT EXISTS `shop` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `info` text NOT NULL,
  `price` int(11) NOT NULL,
  `image` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

6- To acces the shop add ofers you must enter with localhost
7- in your nicaw navigation.xml add this
Code:
<item href="shop.php">Shop</item>

and we are done, hope you like it :

View attachment raggaer.rar
 
Just few peoples do somethin' with nicaw, really nice bro ;]

- - - Updated - - -

Why don't you create a complete shop system, like Gesior Shop System or Modern AAC Shop System?
Really like it ;]
 
a bug btw if you offer more then 10 items then it will bug because if u for example the 10th item = golden armor en the 11th item is an mpa then u buy the mpa it will buy the golden armor..
 
I will need to re-do this since it was one of my frist php thing.
 
Looks really good, would be awesome if it comes with a paypal/paygol script ~~ but I guess it can be implemented easily anyway. Thanks :)
 
Back
Top