godino1 Posted December 31, 2005 Share Posted December 31, 2005 Is there anyone out there that could help me with this i'm trying to add a quantity box in my products_new.php to display it above the button in cart button. Where and what do i need to add? <?php if ($products_new['products_quantity'] <=0) { ?> <td align="center" valign="middle" class="main"><?php echo tep_image_button('button_in_cart_na.gif', IMAGE_BUTTON_IN_CART_NA) ; ?></td> <?php } else { ?> <td align="center" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <?php } ?> Link to comment Share on other sites More sharing options...
rashid Posted January 1, 2006 Share Posted January 1, 2006 Hi godino1 Do you mean enabling customers to add more than one product to the shopping cart by defining the quantity in the "Quantity Box" in the products_new.php page? Link to comment Share on other sites More sharing options...
godino1 Posted January 1, 2006 Author Share Posted January 1, 2006 Yes that what i'm trying to do if possible. Can you help? Link to comment Share on other sites More sharing options...
godino1 Posted January 19, 2006 Author Share Posted January 19, 2006 can't anyone help then? Link to comment Share on other sites More sharing options...
Guest Posted January 21, 2006 Share Posted January 21, 2006 There is a contribution for quantities in product listing. So you could setup the code for the new products, specials etc. http://www.oscommerce.com/community/contributions,2039 Link to comment Share on other sites More sharing options...
godino1 Posted January 21, 2006 Author Share Posted January 21, 2006 thanks m8 i'll have a look & try it out later Link to comment Share on other sites More sharing options...
godino1 Posted February 6, 2006 Author Share Posted February 6, 2006 Has anyone done this with their own website? tried using contribution but my knowledge of php is limited. Still need help..... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.