Problem with Track by Options after upgrade to 2.0.11

Problem with Track by Options after upgrade to 2.0.11


  1. It’s cannot show in stock status correctly. Some items I set amount to zero but it’s still show in stock.


  2. About track without Options, Can I still show out of stock message? It doesn’t shown.

I just solve this problem by.






  1. Go to Design/Appearance Select Display In stock as a field
  2. Go to js/exceptions.js



    Edit




[QUOTE] for (var i in pr_a[id]) {

if (key == i) {

if (pr_a[id][i][‘amount’]) {

if (pr_a[id][i][‘amount’] > 0) {

pstock.show();

pstock.html(pr_a[id][i][‘amount’] + ’ ’ + lang.items);

pqty.show();

padd.show();

spadd.show();

badd.attr(‘disabled’, false);

} else {

if (allow_negative_amount){

pstock.hide();

pqty.show();

padd.show();

spadd.show();

badd.attr(‘disabled’, false);

}else{

pstock.html(‘’ + lang.text_out_of_stock + ‘’);

pqty.hide();

padd.hide();

spadd.hide();

badd.attr(‘disabled’, true);

}

}

return true;

}

}[/QUOTE]





to




[QUOTE]

for (var i in pr_a[id]) {

if (key == i) {

if (pr_a[id][i][‘amount’]) {

if (pr_a[id][i][‘amount’] > 0) {

pstock.show();

pstock.html(pr_a[id][i][‘amount’] + ’ ’ + lang.items);

pqty.show();

padd.show();

spadd.show();

badd.attr(‘disabled’, false);

} else {

if (allow_negative_amount){

pstock.show();

pqty.show();

padd.show();

spadd.show();

badd.attr(‘disabled’, false);

}else{

pstock.show();

pstock.html(‘’ + lang.text_out_of_stock + ‘’);

pqty.show();

padd.show();

spadd.show();

badd.attr(‘disabled’, false);

}

}

return true;

}

} [/QUOTE]

Hi mrcraz, I had different problem, I have this option turned on, but such filed apeard.

Sorry can you explain what exactly did you change? I can’t find any difference.

Thank you