Does anyone know how to hide Out of Stock products in "Who Bought this Also Bought" Aheadworks extension? Or any tips that will help me with this?



Try the following:

File: app/code/local/AW/Relatedproducts/Block/Relatedproducts.php

Method: _returnSortedArray and replace the string

$array[] = $product;


if($product->isSaleable() === true ) {
     $array[] = $product;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.