sveppur Posted February 15, 2004 Posted February 15, 2004 Hi I'm getting a bit frustrated here, this is the third time I am posting a similar question. I've read through most af the docs, performed like about half a million searches in the forums but are still coming up short. I have however found several similar questions posted by other; none of those have received an answer either. What I need to know is how I can allow users to choose quantity for an item before clicking the "add to chart" button. I don't want to create a drowdown with numbers 1 to 100, I want the user to simply punch in the number he wants. Surely this must be possible? Almost every shopping cart on the Internet has this feature... I am really stuck here, if this isn't possible I simply must find some other solution for my web site than osCommerce. Help? :( Thanks in advance, Jon Oskar.
OceanRanch Posted February 15, 2004 Posted February 15, 2004 I'm not sure if this will totally solve the problem, but perhaps would be a good base for customizing a solution for all of your products. It should be quite straightforward to modify for your use. I plan on using/trying it at sometime in the future for a new site. Contribution - "Add Multiple Products" This is a replacement for the products_listing module. It presents a list of all products in a sub-category, including the attributes realated to each product and a quantity box for each product. What this means is that with 1 click you can add multiple products(with multiple quantities to the cart) http://www.oscommerce.com/community/contributions,1129 HTH - and let us know how you like it B) Tom
TerryK Posted February 15, 2004 Posted February 15, 2004 I've added this to my site on my product_info.php page only, not in the product listings. As the product_info.php page already calls the form, I think the only thing I had to do was to add this code where I wanted the quantity displayed: <B>Qty:</B> <input type="text" name="quantity" value="1" maxlength="2" size="2"> 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. *
sveppur Posted February 15, 2004 Author Posted February 15, 2004 I'm not sure if this will totally solve the problem, but perhaps would be a good base for customizing a solution for all of your products. It should be quite straightforward to modify for your use. I plan on using/trying it at sometime in the future for a new site. Contribution - "Add Multiple Products" This is a replacement for the products_listing module. It presents a list of all products in a sub-category, including the attributes realated to each product and a quantity box for each product. What this means is that with 1 click you can add multiple products(with multiple quantities to the cart) http://www.oscommerce.com/community/contributions,1129 HTH - and let us know how you like it B) Tom Hello Tom. I haven't checked out your solution, but I did find this in contributions just a few minutes ago: http://www.oscommerce.com/community/contri...ns,1253/page,10 It seems like this code will work even though I can't see a error handling in case of nun-numeric inputs. That shouldn't be hard to fix though (fingers crossed). :lol: Amazing actually, that such a flexible piece of software as osCommerce has no built-in method for this "normal" way of doing things... I simply had to read through the contributions till I found this, one by one, I guess I have looked at postings for well over 150 of them. But I'm smiling now anyway. And I don't mean to sound like a nag, but I really would have liked osCommerce a lot better with decent documentation. It seems a bit strange that a whole group of people are willing to work on this userfriendly project for free but still skip one of the most vital things... No misunderstanding I hope: I am really impressed, and REALLY like osCommerce. Good work guys, hope I can contribute something in return one day! Thumbs up! Thanks. Jon O.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.