Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • peterchain Friend
    #1068549

    Hi again,

    When I enter a Hikashop list I see that the filter is not checking if the products have stock.

    To be more concrete, all products are listed as if they have stock (and some of them doesn’t have).

    I have done a manual fix in the getItem function on the helper to check if the product have any stock to be markable to be add to cart, but I don’t know if you are checking it in another file.

    For the moment (and for me) seems to be working fine.

    The code (line 100 of helper.php):

    if($baseItem->product_quantity > 0) $item->is_salable = 1;

    Thanks in advance,


    Victor

    Mr.Cat Moderator
    #1068562

    @peterchain

    Thanks for reporting us. This fix will be included in the next update.

    Regards

    P.S: The fix should be

    if($baseItem->product_quantity > 0 || $baseItem->product_quantity == -1 ) $item->is_salable = 1;
    • This reply was modified 7 years, 1 month ago by  Mr.Cat.

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Mr.Cat 7 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum