Hi,
How to show Cart button when product is out off stock?
This is must be without possibility to order product of course. This step I can do in admin to mark “Show Out Of Stock Warning” – “Yes”. But anyway Cart button I would like to see, not “Out off stock”.
Just if you find time to answer for me.
If will not get answer don’t afraid – 5 stars for support will be ever
BR
|
|
Hi,
We will add improvements in the next theme version about the cart button. We will always show the button unless chosen otherwise.
If you want you can modify a file until the update arrives:
1) Open system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php
2) Find this line and remove it:
&& ($product['quantity'] > 0 || $this->engine->getOcConfig()->get('config_stock_checkout'))
3) Find this code line:
if (!$this->engine->getOcConfig()->get('config_stock_checkout') || $this->getThemeData()->store_common['disable_checkout_stock_status_name'] == $event['data']['stock']) {
and replace it with:
if ($this->getThemeData()->store_common['disable_checkout_stock_status_name'] == $event['data']['stock']) {
4) Find this code line:
$product['show_stock'] = $settings['show_stock'] && $product['quantity'] < 1 && !$config->get('config_stock_checkout');
and replace it with:
$product['show_stock'] = false;
BR,
ThemeBurn team
|
|
Hi,
Thank you!
P. S.
But if you want do this correction in update better don’t do it, because now I see result is bad, because text “Out Of Stock” still I see. That’s mean I see “Add to Cart” and upper “Out Of Stock”.
BR
|
|
Our bad! Please check the modification again.
BR,
ThemeBurn team
|
|
Glad we’ve helped, mate
BR,
ThemeBurn team
|
|