Limit Amonut Of Sales

3 replies
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
#amonut #limit #sales
  • Profile picture of the author Brandon Tanner
    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.
    Signature

    {{ DiscussionBoard.errors[6599651].message }}
  • Profile picture of the author ALicenseToCode
    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.
    {{ DiscussionBoard.errors[6600395].message }}

Trending Topics