• 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!

Updated Shop System [Modern Acc]

Hrsha

Member
Joined
May 30, 2010
Messages
450
Reaction score
21
Location
Egypt
Hello Guys

Today i will release my working shop system
all credit to this thread : http://otland.net/f118/shop-system-full-modern-aac-114852/
actually its the same system but i made some changed which i wanted to do it

Here are the changes :

  • Increased Categories
  • Increased offer list
  • Fixed Add / Remove Points
  • Fixed cloning items by refresh the page
Notice : iam not good at scripting at all
i just wanted to do some changed and tried to make it work
so i succeed and it just working!
i know that donate page is ugly but i dont know how to make it better
cuz iam not prof maybe someone can make it better ;)


Features:
Code:
- Offers are displayed in shop
- Automatic installation (only works if there are no tables created for the Shop) [REQUIRED log in with admin account]
- Panel of Directors [Featuring "Add / Remove Products" - "Add / Remove Items to accounts"]
- Transactions [pass the product you bought your player or another player in a different account]
- Transaction History function [You can see the products you purchased from a list]
- Event Script running LUA [The products are received in the backpack of the player, if you have free space or capacity, will give you not]
"Methods of Donations [can donate by 2 methods: PayPal or ContenidoPago]
History - Donation [Donations are stored in a table to find the player who donated, how and when]

Donate Page
shop1r.jpg



Shop System
shop2n.jpg



Shop System Links

To change Categories as you want:
open htdocs/gifts/gifts.php ---- > line 46

Code:
$categories = array(1 => '<font color="black"> Account Modifications</font>', 2 => '<font color="black">Scrolls</font>', 3 => '<font color="black">Mage Equipment</font>', 4 => '<font color="black">Paladin Equipment</font>', 5 => '<font color="black">Knight Equipment</font>', 6 => '<font color="black">Weapons</font>');
[code/]

[B]rename/delete which category you want[/B]

[B][COLOR="#0000FF"]Download : Shop System[/COLOR]
[ATTACH]15357.vB[/ATTACH][/B]

[B]Rep ++ If it helps ;)
Good luck[/B]




[/FONT]
 

Attachments

Here are the changes :

[*]Fixed cloning items by refresh the page

Hello Hrsha. In my situation i must edit my gifts.php to fix "cloning items by refresh the page", how have you make that?
Can you help me? thanks :p
 
Hey it looks better than the default one but i got this error when using urs:

A PHP Error was encountered

Severity: Notice

Message: Undefined index: name

Filename: gifts/gifts.php

Line Number: 99

How to fix?
 
Love it . I dont have any ot right now . But I had the problem with ppls who clonded stuffs :p hehe gave rep Cuz u have make a good work :)
 
ahh i saw this error now

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined index: name

Filename: gifts/gifts.php

Line Number: 99

thats because i made the system able to view it without login
but it does not make any problem

follow this to hide the error

htdocs/index.php -> line 29

replace this
Code:
error_reporting(E_ALL);

with this
Code:
error_reporting(E_ALL ^ E_NOTICE);

when u wana check error in new script u wana test u can put the first code again
 
Works!

Btw when i edit the gifts/config/config.txt
for the amount of points and price it doesnt update on the website localhost//index.php/p/v/gifts/donate

How do i make so it updates to the right points?
 
Works!

Btw when i edit the gifts/config/config.txt
for the amount of points and price it doesnt update on the website localhost//index.php/p/v/gifts/donate

How do i make so it updates to the right points?

when u edit price/points in config = its changed (its done)
when u press the submit bottom u can see your new prices at paypal page
but the thing who still did not change is the text like this
10 premium points = 7.00 EUR.
and the other texts

to change them open htdocs/gifts/gifts.php

1- Line 463
PHP:
<center><b>10 premium points = 7.00 EUR.</b>
2- Line 486
PHP:
<center><b>25 premium points = 12.00 EUR.</b></center>
3- Line 509
PHP:
<center><b>33 premium points = 16.00 EUR.</b></center>
4- Line 533
PHP:
<center><b>55 premium points = 25.00 EUR.</b></center>
5- Line 556
PHP:
<center><b>80 premium points = 35.00 EUR.</b></center>

X premium points = X EUR.

Change X only or write anything u want to show it between <b> and </b>
 
Back
Top