I just spot an bug on my eCommerce website that Im not sure how to fully fix it.
I will not provide any code as there isnt anything to be upload that would change the system i built im not asking a review of what is wrong with my code. Im not looking for a code answer, but more an advice of what I should do.
In the process of a customer buying a product from my eCommerce website he/she will be directed to paypal, once paypal is proceed, my database will save his information as well as deduct the quantity of items purchased from the database(the deduction is to stop future customer buying an out of stuck item).
A problem that happened few days back is, once customer press "pay now" button information is sent to paypal and no information is returned until payment is completed. Meaning if an item with 1 quantity is left on the database before a customer pressed "buy now" button, there will still be 1 item left until that transaction is completed leaving a gab of minutes where another customer could also go to the same item and press "buy now". This means two customer could ended up purchasing an item with only 1 in stock.
How could I go about to fix this? Should I add a temporary deduction of the stock if someone pressed "pay now" button? How does website normally deal with this?
Thanks
Cant wait for the down votes, but hope someone is nice enough to give me some light!
Related
I'm using the JetSearch plugin on this website.
Right now, after choosing a category and typing in the search query and clicking the query, it instantly goes to the page of that query (I think it's better but my client wants it different for a reason).
My client wants a user to enter the search query, select it and press the search button which then takes you to the page/link of that query. It should act the same as on this website.
This goes beyond my knowledge, hence the cry for help.
Cheers,
Nathan
I have a requirement to capture some info about a donation before the user is redirected to the payPal page, and to pass some of that info through to the page. The three main things is the amount, currency, and whether or not it should be a reoccurring payment. We want to have the user specify that detail before clicking "Donate", and then have that info sent through to PayPal to repopulate the page.
I have managed to achieve some of this by using the "Buy now" button, instead of the "Donate" button, and just displaying the Donate image. With that I can pass through the amount and currency, but can't set reoccurring payment it seems. At least, I don't know what the form input should be called for that option to take effect on the PayPal side. In order to do this, I had to set a couple of options when creating the "Buy now" button. I think the one was to not keep inventory or something like that, and on the page where I can copy the HTML I had to effectively unlock it. But there are no such options on the Donate button creation flow. So when I try to pass amount or currency through to the Donate page, it doesn't do anything.
I tried removing the button_id hidden input, but that just breaks the whole thing.
Is there any way for me to capture those three pieces of information - amount, currency, and whether or not it should be a reoccurring payment - on my site and pass it through to the PayPal screen upon redirect?
If you want to specify that a payment should be recurring, then the checkbox on your site that makes the donation recurring will need to convert the button into a completely different type-- a "Subscriptions" button. That is the only way for you to specify that something is recurring before the buyer reaches PayPal.
The other way of starting with a Donate transaction and having it become recurring, only works for:
transactions of type Donate (not Buy Now)
when the amount is NOT pre-specified before redirecting them
when the user selects this recurring checkbox at PayPal
All three conditions are necessary and required for this type of recurring donation to be possible.
I am new to webdev and looking for suggestions.
Basically I am planning to use an image map to sell some items.
Each image contains up to 100 items. User can simply click on what's needed and from that point I need to figure what will be the best option to checkout.
The easiest method and obviously not smart will be to create 100 paypal buy now buttons and basically place each button for each item.
Cons - time consuming and space wasting because I will have about 100+ image maps.
Target is to have 1 checkout page which will know where the user came from and what he is actually willing to buy and somehow connected to PayPal Button.
Price for all items can be the same, no shipping price (it will be free) and no taxes. I don't want to have registration on the site.
Any ideas, maybe examples...?
HTML CSS JavaScript?
p.s. I found some topic about dynamic item name in paypal but I am still lost.
I have a comment system on my website http://gamehup.ga/new-browser-games/god-war.php. Right now the visitors can comment a link to somewhere else, what I want is when someone comments an URL, it needs to be approved by the admin of the site.
And I have login system I want to make the minimum for the password that someone can enter when they sign up.
And another thing, I have edit comment button but when you click it you will be sent to another page to edit it. I want to know if it possible to make it on the same page.
add another column in table beside comment and update it using admin page, set either 0 for unapproved and 1 for approved value of that table , according to that column value comment get shown on post!
I am wondering how to make a JavaScript popup message (display for 5 seconds) when a database input for specific users have changed? Kind of like the Xbox live achievement message that comes up each time you do a specific task, but i want mine to check if the level for a specific user changes and then have a popup message saying "Congratulations on reaching level x". I'm going to have a popup message for other things than just level as well so it would need to be easy to design.
I couldn't find anything online so if any of you have any suggestions, please leave me some links.
either use a timer and ask via ajax in an interval for new popups
or use websockets/websocketserver to push that info to the client