Limit Amonut Of Sales

by 3 replies
4
Hey Warriors,

I am wanting to limit the number units sold on an item. As doing a sale for a client. So this is the problem and is it doable. They payment processor is paypal.

I want to sell 650 units no more. So is there a way to display the amount of units being sold each transaction. So in theory the total amount will be going down. 649,648,647 etc...etc...

And be displayed by the paypal button. I know I can add the stock limit inside paypal when I create a new button but if it is possible to add the amount left on the site as well as the paypal button.

I was also going to display a countdown timer for a 2week period. So which ever came first the units sold or the 2 week period the offer would end. I was going to use a plugin for the countdown timer. It was the paypal limit I was looking for help on.

Cheers

Craig
#programming #amonut #limit #sales
  • Most definitely doable. If you're comfortable with PHP and want to do it yourself, then look into Paypal's IPN or PDT. Paypal will send a notification of each sale to a script on your server, then your script can update each sale in your database, and then dynamically display the number of sales left on your webpage.

    A MUCH easier way though (especially if you're not very comfortable with PHP), is to use a pre-existing payment gateway that already provides this feature, such as JVZoo or WSO Pro. I'm sure there are other providers too, but those are the ones that immediately come to mind.
  • Yep the definite right way to do this is to use Paypal's IPN.

    What you're going to need to keep track of it is to log each IPN received into a database and then just count the successful sales and then do some math. This will require a bit of php knowledge, but a google search for "Paypal IPN PHP Class" will help you get started if you have a bit of PHP knowledge.
    • [1] reply
    • Thanks Warriors!,

      I will look into Paypal IPN's as I know other processors like W+ and JVZoo can do this but it is not really going to work for a traditional brick and mortar company.

      Unless of course I start using these processors for my offline clients! Ermmm.......

      Cheers Craig

Next Topics on Trending Feed

  • 4

    Hey Warriors, I am wanting to limit the number units sold on an item. As doing a sale for a client. So this is the problem and is it doable. They payment processor is paypal.