Post by Lanshire » Fri May 06, 2011 9:51 pm

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

New member

Posts

Joined
Sun Apr 10, 2011 7:08 am

Post by jcsmithy » Fri May 06, 2011 10:29 pm

Turn it back off again?

Your question seems a little confusing.

Active Member

Posts

Joined
Fri Oct 01, 2010 9:54 pm

Post by Qphoria » Sat May 07, 2011 2:21 am

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mystifier » Sat May 07, 2011 4:21 am

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.

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm
Who is online

Users browsing this forum: Baidu [Spider], HAO and 152 guests