StephenAdrianRathbone Posted September 19, 2011 Share Posted September 19, 2011 (edited) Hi Guys, I have a quantity box on my product info page and also OSC Cart, however this two are not working together (quanity box doesn't work). The quantity box is this simple file edit: FILE:includes/modules/product_listing.php replace: 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; } With: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2') . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</form> '; break; } Also a minor change to application_top to add quantity not +1. The OSC Cart is from the contribution OSC to CSS (v2.2) - http://addons.oscommerce.com/info/7263 Any help appreciated. Edited September 19, 2011 by StephenAdrianRathbone Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.