Page 5 of 5

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Fri Jul 01, 2016 2:12 am
by Qphoria
leandromello wrote:all this mod. are based in "quantity"... theres a way to be based in stock_status_id?
Edit the xml file and look for

Code: Select all

if (!$product_info['quantity']) {
replace with

Code: Select all

if ($product_info['stock_status_id'] == '9') {
change 9 to whatever you want

Then find

Code: Select all

if ($product_info['quantity'] < 1) {
replace with

Code: Select all

if ($product_info['stock_status_id'] == '9') {
change 9 to whatever you want

Re: [vQmod] Hide AddtoCart for Out of Stock Products

Posted: Wed Jun 05, 2019 11:53 pm
by xxvirusxx
3.0.2.0