pghtech Posted September 9, 2008 Share Posted September 9, 2008 Can someone help get off on the right foot with a better understanding of what has to occur (PHP, and maybe some small HTML) to accomplish the following: I have a website with a PHP Shopping cart (CubeCart) and would like to add a field during check out Labeled: "Send To:" with the options to choose "Me" or "As a Gift". If they choose "As a Gift" then it would either generate a text area or 'enable' a text area to type a short message for how the recipient. Then when they check out that data gets transmitted with the order notification that is sent to me that there was an order placed. Quote Link to comment Share on other sites More sharing options...
Exemption Posted September 18, 2008 Share Posted September 18, 2008 Or you could make it so that they are automatically buying for themselves..and have the option to buy for another person Which is done by adding a text field adding a small query to it to add to the purchase total Quote Link to comment Share on other sites More sharing options...
Maq Posted September 19, 2008 Share Posted September 19, 2008 If they choose "As a Gift" then it would either generate a text area or 'enable' a text area to type a short message for how the recipient. Have a button with an onClick() function that calls a javascript function to generate a text field (plenty of tutorials on this). As far as passing the data you can extract it from the session variables and some SQL queries. Need some code to work with here if you want more specific help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.