dtaquarium Posted September 14, 2010 Posted September 14, 2010 Im using show-soldout-v1.2 and also using the add quantity in product listing everything works ok but when you click on a product that is out of stock its says Product not found! instead of the product description page original code is 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> '; break; } and supposed to change to this case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'right'; /** show-soldout-v1.0 **/ if($listing['products_quantity'] <= 0 || $listing['products_status']==0) $lc_text = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . ' '; else $lc_text = tep_draw_form('buy_now', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id='. $listing['products_id']), 'POST') . '<table cellSpacing="0" cellPadding="0" width="100%"><tr><td align="right" width="25%">' . tep_draw_input_field('buyqty', '1', 'size=2 maxlength=2') . '</td><td align="center" width="75%" valign="absmiddle">' . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</td></tr></table></form>'; break; } anyone know of a fix for this Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.