wiigsy2008 Posted February 3, 2010 Share Posted February 3, 2010 Hi Guys, Im not sure if this is possible but i am using oscommerce and it works fine but on some of my entry pages which are html i want to have links to buy certain items. What woul i need to put in the post form code for this to work? I have tried:> <form name="cart_quantity" action="http://demo.oscommerce.com/product_info.php?products_id=17&action=add_product" method="post"> But just shows empty shopping cart page. Cheers Richard Link to comment Share on other sites More sharing options...
bkellum Posted February 14, 2010 Share Posted February 14, 2010 Hi Guys, Im not sure if this is possible but i am using oscommerce and it works fine but on some of my entry pages which are html i want to have links to buy certain items. What woul i need to put in the post form code for this to work? I have tried:> <form name="cart_quantity" action="http://demo.oscommerce.com/product_info.php?products_id=17&action=add_product" method="post"> But just shows empty shopping cart page. Cheers Richard You may be interested in STS (Simple Template System) which allows you to do this very easily. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
MrPhil Posted February 14, 2010 Share Posted February 14, 2010 If you're trying to just jump to a page deep in your store, can you use a link instead of a form? If not (there's no way to pass the form information in the URL Query String), you need more for your form than just a <form> tag. You need at least one form variable to be passed in, and then </form>. If the quantity is always "1", something like: <form action="http://demo.oscommerce.com/product_info.php?products_id=17&action=add_product" method="post"> <input type="hidden" name="cart_quantity" value="1" /> <input type="submit" value="Buy Me!" /> </form> might work. Or, you can have a field to input the quantity. Once you're in the store, presumably you'll be asked to log in or create an account, and then go to checkout. I haven't tried this, so I don't know for sure if it will work. But definitely, a single <form> statement isn't going to work. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.