0
Welcome Guest! Login
0 items Join Now

mod_rokvirtuemart_scroller showing out of stock products

  • mod_rokvirtuemart_scroller showing out of stock products

    Posted 11 years 11 months ago
    • I am using the mynxx template , joomla 1.5 virtuemart 1.1. i have done a ton of customising and am near completion of the site, but thos one has got me stuck.
      The virtuemart scroller is showing out of stock products with an add to cart button, i can work around this by selecting only show featured, but this is not ideal. I do not want it showing out of stock items.
      I have had a quick look in the modules files and there seems to be some code regarding an out of stock check, (i do have check stock selected in vm config) but i do not have enough understanding as to what it means and why it doessnt work.
      Any help would be greatly apreciated.
  • Re: mod_rokvirtuemart_scroller showing out of stock products

    Posted 11 years 11 months ago
    • Sorry i got it, silly me. I found the setting in vm config regarding showing out of stock products, i still want them to show up in the shop so customers can be notified when they return, i just didnt want them showing it the scroller..

      line 56 in modules/mod_rokvirtuemart_scroller/helper.php

      Changed from.............

      $query .= "\n WHERE p.product_publish = 'Y' AND c.category_publish = 'Y' AND product_parent_id=0 ";
      if( CHECK_STOCK && PSHOP_SHOW_OUT_OF_STOCK_PRODUCTS != "1") {
      $query .= " AND product_in_stock > 0 ";
      }

      Changed to...................
      $query .= "\n WHERE p.product_publish = 'Y' AND c.category_publish = 'Y' AND product_parent_id=0 ";
      if( CHECK_STOCK && PSHOP_SHOW_OUT_OF_STOCK_PRODUCTS != "0") {
      $query .= " AND product_in_stock > 0 ";
      }

Time to create page: 0.058 seconds