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
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
You can ask here for the simple change if you want to change the logic and explain what you want.
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');
}
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
Who is online
Users browsing this forum: Baidu [Spider], HAO and 152 guests