JohnnyVegas 0 Posted July 1, 2004 This is an ok contrib but I can not get rid of the OUT OF STOCK buttons in the product_listing.php page of the site. They are allways shown no matter what stock level is set or not. This is a serious problem. Can someone confirm this works or find a solution? For now I took out the buy it now colum through the admin. It does work great in the products description pages however. Help Share this post Link to post Share on other sites
Guest Posted July 1, 2004 This was a fix that was sent to me by JuxiZoza for the problem First, since the buttons display and I assume work properly for individual listings... the problem is elsewhere. I believe the problem you have is because you elected to NOT display the quantities available. See... "Administration / Product Listing / Display Product Quantity" and turn on display of quantities by using a number other than 0. I have tested this and was able to create the problem you cited. The display switch apparently needs to be on. That was not apparent to me when I made the contribution, because I had it turned on and did not appreciate its impact on the contribution. If that corrects the button problem AND you still don't want the quantities to show... then try Eric's mod to the contribution to turn display of quantities back off. Here is Erics mod // Mod by Eric Haskins http://www.rackspeed.net eric.haskins@rackspeed.net // To Allow this mod to work without displaying Quantity in listing \catalog\includes\modules\product_listing.php line 46 case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; -------------------------------- replace with: // Mod for Not Showing Quantity with No Stock No CheckOut //$lc_text = TABLE_HEADING_QUANTITY; $lc_text = ''; $lc_align = 'right'; break; -------------------------------- line 115 case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; -------------------------------- replace with: case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; // Mod for Not Showing Quantity with No Stock No CheckOut // $lc_text = ' ' . $listing['products_quantity'] . ' '; $lc_text = ' '; break; ========================================================== // End Eric Haskins Mod Hope it worked it did for me www.airsoftmart.net Share this post Link to post Share on other sites
tammy507 0 Posted December 15, 2006 worked like a charm! Thank you for all your efforts!!!! Tammy Share this post Link to post Share on other sites