yoyoman
April 7th, 2004, 10:31 PM
When my products display on the category display page, I would like to add a button that will add the item directly to the cart and bypass the details page, for those customers who already know exactly what they want.
What is the best way to do this? The items on this page are all drawn directly from the db, so it has to be done dynamically instead of in html... should each one have a <form></form> or can I do a direct link? And what variables would I pull into the direct link... store.php?crn=notsure&someOtherVariable=help%20me%please!
And now the really fun part - some items have options which require them to go to the product page and input the details, so I need to run an if statement on the product first to determine whether they can order it directly or not. How do I run an if just to see if the item has any options attached to it?
I think this is totally doable and it will make my client and I very happy.
:confused:
What is the best way to do this? The items on this page are all drawn directly from the db, so it has to be done dynamically instead of in html... should each one have a <form></form> or can I do a direct link? And what variables would I pull into the direct link... store.php?crn=notsure&someOtherVariable=help%20me%please!
And now the really fun part - some items have options which require them to go to the product page and input the details, so I need to run an if statement on the product first to determine whether they can order it directly or not. How do I run an if just to see if the item has any options attached to it?
I think this is totally doable and it will make my client and I very happy.
:confused: