Updated Shop System [Modern Acc]

Discussion in 'The Graveyard' started by Hrsha, Aug 17, 2012.

  1. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
    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 (Text):
    1.  
    2. - Offers are displayed in shop
    3. - Automatic installation (only works if there are no tables created for the Shop) [REQUIRED log in with admin account]
    4. - Panel of Directors [Featuring "Add / Remove Products" - "Add / Remove Items to accounts"]
    5. - Transactions [pass the product you bought your player or another player in a different account]
    6. - Transaction History function [You can see the products you purchased from a list]
    7. - 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]
    8. "Methods of Donations [can donate by 2 methods: PayPal or ContenidoPago]
    9. History - Donation [Donations are stored in a table to find the player who donated, how and when]
    10.  
    Donate Page
    [​IMG]


    Shop System
    [​IMG]


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

    Code (Text):
    1. $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>');
    2. [code/]
    3.  
    4. [B]rename/delete which category you want[/B]
    5.  
    6. [B][COLOR="#0000FF"]Download : Shop System[/COLOR]
    7. [ATTACH]15357.vB[/ATTACH][/B]
    8.  
    9. [B]Rep ++ If it helps ;)
    10. Good luck[/B]
    11.  
    12.  
    13.  
    14.  
    15. [/FONT]
     
    kawaiihiko, Simoria and Polat Alemdar like this.
  2. Scarlet Ayleid

    Scarlet Ayleid Well-Known Member

    Joined:
    Jul 7, 2007
    Messages:
    4,057
    Likes Received:
    243
    Best Answers:
    0
  3. Polat Alemdar

    Polat Alemdar Mapper, Basic Scripter

    Joined:
    Feb 20, 2011
    Messages:
    944
    Likes Received:
    30
    Best Answers:
    0
    Thank you bro rep+


    You solved all my problems!
     
  4. MartyX

    MartyX I'm renewing

    Joined:
    Jun 6, 2007
    Messages:
    1,208
    Likes Received:
    145
    Best Answers:
    3
    Orale ... i testing
     
  5. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
    is there any problem with it ?
     
  6. Nubaza

    Nubaza LUA Scripter

    Joined:
    Jun 5, 2011
    Messages:
    311
    Likes Received:
    14
    Best Answers:
    0
    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
     
  7. Raggaer

    Raggaer Godly Member

    Joined:
    Jul 25, 2012
    Messages:
    1,540
    Likes Received:
    892
    Best Answers:
    8
    destroy session and die maybe..
     
  8. Polat Alemdar

    Polat Alemdar Mapper, Basic Scripter

    Joined:
    Feb 20, 2011
    Messages:
    944
    Likes Received:
    30
    Best Answers:
    0

    Use hrshas gift.php not hard?
     
  9. Raggaer

    Raggaer Godly Member

    Joined:
    Jul 25, 2012
    Messages:
    1,540
    Likes Received:
    892
    Best Answers:
    8

    Maybe he have some special functions in it ... so he cant use a new one
     
  10. Polat Alemdar

    Polat Alemdar Mapper, Basic Scripter

    Joined:
    Feb 20, 2011
    Messages:
    944
    Likes Received:
    30
    Best Answers:
    0
    He could take the original gifts.php script and hrshas edited and start searching what he did changed :p or wait until hrsha reply :p
     
  11. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
  12. znake

    znake New Member

    Joined:
    Feb 4, 2011
    Messages:
    69
    Likes Received:
    2
    Best Answers:
    0
    Good stuff, thanks for the contribution.
     
  13. powerpig

    powerpig Hoster

    Joined:
    Jan 19, 2010
    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Hey it looks better than the default one but i got this error when using urs:

    How to fix?
     
  14. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
    did u edit gifts.php ? because i dont have this problem at all
     
  15. powerpig

    powerpig Hoster

    Joined:
    Jan 19, 2010
    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    I didnt edit anything, i just added it in and got this error.
     
  16. Polat Alemdar

    Polat Alemdar Mapper, Basic Scripter

    Joined:
    Feb 20, 2011
    Messages:
    944
    Likes Received:
    30
    Best Answers:
    0
    Ye me too i have this error! Its on bottom of the side
     
  17. Simoria

    Simoria Hola at me

    Joined:
    May 3, 2012
    Messages:
    447
    Likes Received:
    10
    Best Answers:
    0
    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 :)
     
  18. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
    ahh i saw this error now

    Code (Text):
    1.  
    2. A PHP Error was encountered
    3.  
    4. Severity: Notice
    5.  
    6. Message: Undefined index: name
    7.  
    8. Filename: gifts/gifts.php
    9.  
    10. Line Number: 99
    11.  
    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 (Text):
    1.  
    2. error_reporting(E_ALL);
    3.  
    with this
    Code (Text):
    1.  
    2. error_reporting(E_ALL ^ E_NOTICE);
    3.  
    when u wana check error in new script u wana test u can put the first code again
     
  19. powerpig

    powerpig Hoster

    Joined:
    Jan 19, 2010
    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    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?
     
  20. Hrsha

    Hrsha Member

    Joined:
    May 30, 2010
    Messages:
    450
    Likes Received:
    22
    Best Answers:
    0
    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:
    1.  
    2. <center><b>10 premium points = 7.00 EUR.</b>
    3.  
    2- Line 486
    PHP:
    1.  
    2. <center><b>25 premium points = 12.00 EUR.</b></center>
    3.  
    3- Line 509
    PHP:
    1.  
    2. <center><b>33 premium points = 16.00 EUR.</b></center>
    3.  
    4- Line 533
    PHP:
    1.  
    2. <center><b>55 premium points = 25.00 EUR.</b></center>
    3.  
    5- Line 556
    PHP:
    1.  
    2. <center><b>80 premium points = 35.00 EUR.</b></center>
    3.  
    X premium points = X EUR.

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

Share This Page

Loading...