facebook

loyalty card

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #341542 Reply

    Stu Wade
    Member

    The easy way is to use localStorage for the number of stamps held, but this is not mega-secure. The harder, and probably the correct method, would be to use a central database to hold the stamp count for all users. I guess the real question is how hard do you want to work to protect the integrity of the scheme, or are you prepared to allow the odd computer savvy customer occasional unearned cups of coffee.

    #341547 Reply

    Proffie
    Member

    first of all,
    Why would you want to remove the promo stamp code? at the moment, somebody receives the promo code, and stamps, it can only be used for that progress, as for the next stamp you need another code.
    to make it more secure, you could use the string method as I mentioned before.
    I only used the local storage, as it was more conveniant for me and is easy to debug. plus you could just provide any pre-filled database with code. I recommend, that you look a little in a SQL tutorial to see, what you can do there. It is not that difficult.

    you can also replace the whole database section with something like:
    (see image, I can not enter any code in the moment, access forbidden…)

    that would allow for free Promo Codes like 0x17, 1y76, 2z63,….(xyz any character)

    Attachments:
    You must be logged in to view attached files.
    #341551 Reply

    AdamRogan
    Member

    Ok thanks a lot with all your help I really appreciate it lots.
    I will look into what you have said.
    Thanks

Viewing 3 posts - 16 through 18 (of 18 total)
Reply To: loyalty card

You must be logged in to post in the forum log in