craftables Posted August 21, 2006 Posted August 21, 2006 Hi all, A long long time ago I tweaked the product_listing.php with a mod that was supposed to disable the Buy Now button when the stocklevel was 0. Just recently it was noticed that the buy now button doesnt appear at all - regardless of the stock level so I went back and disabled the mod code (even though I can see nothing wrong with it) and still I cant get the buttons back! I checked the admin list order and everything is fine and no overlapping orders for the columns - I tried rearranging the order to see if I could fire up any action with no luck. There appears to be no cache control to clear for this so I assume its not an issue. The code is currently: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; //start no button if quantity 0 // if ( $listing['products_quantity'] > 0 ) // { // $lc_text = '<a href="'.tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; // } // else // { // $lc_text = ' '; // } //end no button if quantity 0 break; in the product_listings.php A link to an example page is here Can anyone suggest where I am going wrong with this ? // Edit The entire column just will not appear let along the buttons // Edit Thanks in advance, Steven
craftables Posted August 22, 2006 Author Posted August 22, 2006 Woooho! Fixed it. Backtracking through any files that sounded relevant I finally found the issue on the index.php page where for some reason I have commented out the buy no button! Now there is probably a very good reason why I did this - but I cant remember it. So fingers cross its wasnt a part of a bug fix for something !
Recommended Posts
Archived
This topic is now archived and is closed to further replies.