Jump to content
Sign in to follow this  

Quantity product info box and OSCCART

Recommended Posts

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:

$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> ';

$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> ';


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 by StephenAdrianRathbone

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this