Skip navigation
Currently Being Moderated

Has anyone created a site in BC where you can download coupons?

Jul 26, 2012 7:07 PM

Tags: #ecommerce #proximity_search #web_app #voucher #coupons #e_product

Hi everyone

As part of a site we are creating, our client wants to have a directory of offers, you can search by postcode to find offers near you, then print out coupons with unique ID numbers . Like Shopadocket. http://www.shopadocket.com.au/

Anyone done something like this or have any tips?

 
Replies
  • Currently Being Moderated
    Jul 27, 2012 7:47 AM   in reply to Elle Zirwanda

    I'd be interested to know if there's a workflow in bc for this as well.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 6:57 AM   in reply to Elle Zirwanda

    I have not understood the unique code requirements, here is one way to do this:

     

    -first of all create a page where users can register and log in

    -set up the "offers" as webapp items - you can then search them by ZIP code

    -once an user finds a webapp he likes he opens it up and goes to the "detail" view of the webapp

    -on the detail webapp view have a hidden form and a javascript snippet that generates a random 20 characters number (the unique code) 187230912187230912 for example. You can have the first 11 characters converted from the UNIX date (http://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-i n-javascript) to make sure they are as unique as possible.

     

    So, after the user goes to the detail view of the webapp item the code is generated and it is copied into a field of the hidden form. The next task is to submit the form so the code and customer details are captured when the site visitor "buys" the coupon. That can also be done with javascript.

     

    How will this setup work for you?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 10:36 AM   in reply to Mihai_Tica

    How difficult would it be to spoof this for the end user, if the number is generated by javascript? I have a client who might want to add coupons to a site as well but validation has to be an issue. There has to be a difference between coupons generated by the site and coupons generated by the user, otherwise what's the point in even having them?

     

    The method I was going to use (elsewhere) involved populating a database with pregenerated codes which could then be checked against the coupon after its printed out. This has the advantage of not requiring encryption that can be broken since the difference between a valid and invalid number (and coupon) is just whether it already exists in the system, but I haven't tried this using BC yet, and I don't know how feasible or unweildy it would be. You would obviously have to manually build coupons in a webapp and possibly remove them afterwards though.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 11:08 AM   in reply to Elle Zirwanda

    Here is probably the best tip you will get on this one - dont use BC.

     

    Creating a docket system that is truely robust with what you are describing would not take that much development effort for a PHP developer using a opensource platform like Drupal or Joomla.

     

    In the case you have described BC is not the correct solution for your customer so dont use it.

     

    Its better for you and the BC community as well - why? Simple. If your customers site goes big they will basically start asking for more and more tracking features which BC cant provide. At least if you create an app on your own you can grow it and do whatever the customer wants.

     

    I would also say to the BC crew - if we had a web apps API this probably would not be the case but we dont, and looking at the speed of development we wont be getting it any time in the next year.

     

    My advice, It would be best to avoid BC for this project.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 1:10 PM   in reply to M R K Development Pty Ltd

    although... if you have the ability to build it in php elsewhere you can set it up to be embedded in bc although that would probably be a serious pain. I'm considering doing this if it turns out it can't be done sufficiently using webapps. 

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 13, 2012 9:22 PM   in reply to Elle Zirwanda

    That seems better than what I was going to do, which was just enter codes manually into a webapp without any tracking or anything. I also considered doing it through ecommerce, treating them as downloadable content but I don't know how that would work out.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points