Re: add to cart the first lucky guy
Quote:
Originally Posted by
swguy
Set Admin > Configuration > Stock > Allow Checkout = false and people won't be able to complete checkout if the product is out of stock.
See post #2
Re: add to cart the first lucky guy
The last check is on the checkout confirmation page. If you wanted to reduce the window further, you could do stock checking in
includes/modules/YOURTEMPLATE/checkout_process.php
But really, you'd be better stopping and asking yourself: is this really a problem for my business?
Re: add to cart the first lucky guy
While placing the order, your query will allow only one transaction and after the completion of that it will process another request.
This way use also follow the zen cart when many customers try to purchase from your online store via paypal express checkout ?
Re: add to cart the first lucky guy
Quote:
Originally Posted by
swguy
The last check is on the checkout confirmation page. If you wanted to reduce the window further, you could do stock checking in
includes/modules/YOURTEMPLATE/checkout_process.php
But really, you'd be better stopping and asking yourself: is this really a problem for my business?
you have right in the last sentence I will try avoid in the future.
Re: add to cart the first lucky guy
Quote:
Originally Posted by
swguy
The last check is on the checkout confirmation page. If you wanted to reduce the window further, you could do stock checking in
includes/modules/YOURTEMPLATE/checkout_process.php
But really, you'd be better stopping and asking yourself: is this really a problem for my business?
You have a code to add in this php file or must change something like from false to true
Re: add to cart the first lucky guy
Quote:
Originally Posted by
Dastyen
You have a code to add in this php file or must change something like from false to true
What I realize In Live Store ?
If more than one customer already add to the cart the same product with quantity 1 and already both has going to the next step < Home Checkout Shipping Method > in the end both they had purchase the same product and in admin panel show -1 stock.
So the Stock module work only before the customer go to Home Checkout Shipping Method.
Re: add to cart the first lucky guy
I already told you there's a check when the checkout confirmation page is loaded.
But remember how I told you this probably wouldn't be a problem for your business and you agreed?
It probably won't be a problem for your business. You have plenty to worry about without worrying about this.
Re: add to cart the first lucky guy
Quote:
Originally Posted by
swguy
I already told you there's a check when the checkout confirmation page is loaded.
But remember how I told you this probably wouldn't be a problem for your business and you agreed?
It probably won't be a problem for your business. You have plenty to worry about without worrying about this.
May I have the specific code lines of the checkout information page
Re: add to cart the first lucky guy
Quote:
Originally Posted by
Dastyen
May I have the specific code lines of the checkout information page
this lines have connection ?
<div class="card card--padding card--bg">
<h4><?php echo HEADING_PRODUCTS; ?></h4>
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="alert alert-warning alert-dismissable"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="alert alert-warning alert-dismissable"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
Re: add to cart the first lucky guy
Quote:
Originally Posted by
swguy
I already told you there's a check when the checkout confirmation page is loaded.
But remember how I told you this probably wouldn't be a problem for your business and you agreed?
It probably won't be a problem for your business. You have plenty to worry about without worrying about this.
yep I open another domain and my problem solved.Thank you.