agiftcodotcom Posted May 21, 2004 Posted May 21, 2004 During the development of my site, I made it so that guests could see the model number of the products and they could order multiple quantities without going into the descriptions. See This and you'll see what I mean. Someone asked me how I did this and, to be honest, I don't remember. Does anyone know of simple scripts and/or contributions that make this happen? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll
Guest Posted May 21, 2004 Posted May 21, 2004 During the development of my site, I made it so that guests could see the model number of the products and they could order multiple quantities without going into the descriptions. See This and you'll see what I mean. Someone asked me how I did this and, to be honest, I don't remember. Does anyone know of simple scripts and/or contributions that make this happen? I think you set this in your admin console under configuration, product listing?
agiftcodotcom Posted May 21, 2004 Author Posted May 21, 2004 One down, one to go :D To add a quantity field in the product listing view: go to includes/modules/product_listing.php and 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; } Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll
TerryK Posted May 21, 2004 Posted May 21, 2004 I'm not sure how you did it, but I used the instructions for 'Add New Product Fields' to get my model numbers (plus many other fields) displayed. http://www.oscommerce.com/community/contri...h,add+new+field HTH, Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. *
agiftcodotcom Posted May 21, 2004 Author Posted May 21, 2004 It was a script I got from someone in a post, but I would not be able to find that post if my life depended on it now :( Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll
Recommended Posts
Archived
This topic is now archived and is closed to further replies.