Page 1 of 1

Products marked with *** are not available

Posted: Fri May 06, 2011 9:51 pm
by Lanshire
Hi..

after some help with getting "Products marked with *** are not available" error out of the way, i was told that if you go to system, settings, options and click " allow stock checkout" meaning that the customer will be able to checkout even if the product is not in stock. WEll i dont want them to be able to order something , if its not there. SO how do i get around this?

and qphoria, sorry for buggin ya about it man.

Lan

Re: Products marked with *** are not available

Posted: Fri May 06, 2011 10:29 pm
by jcsmithy
Turn it back off again?

Your question seems a little confusing.

Re: Products marked with *** are not available

Posted: Sat May 07, 2011 2:21 am
by Qphoria
you either use stock or you don't

If you don't want people to be able to checkout, then set the Stock Checkout to false and edit your products and add some number to the quantity field. If you have options be sure you have quantities for the options as well.

Re: Products marked with *** are not available

Posted: Sat May 07, 2011 4:21 am
by mystifier
Showing the 'Products marked with *** are not available' message and 'Allow checkout when out of stock' are separate options.

Currently, if ANY product in the cart is out-of-stock, the Message can be optionally shown if Allow_Checkout is set to 'Yes', but will always be shown if Allow_Checkout is set to 'No'.

i.e. If 'a product is out-of-stock' AND ('Allow_Checkout = No' OR 'Show_Warning = Yes')

If this doesn't suit, it is a single line of code in system/library/cart.php

Code: Select all

if (!$this->cart->hasStock() && (!$this->config->get('config_stock_checkout') || $this->config->get('config_stock_warning'))) {
  $this->data['error_warning'] = $this->language->get('error_stock');
}
You can ask here for the simple change if you want to change the logic and explain what you want.