I am using products as a 'custom post type' then I'm displaying a gallery of all products on the home page with a buy button next to each one. When the buy button is clicked, I would like it to redirect to a page with some more info of that product and a checkout form. What do I need to send to the URL using the button to retrieve this type of page? Should I just write my own query or is there something in wordpress that can do this for me?
This is my form right now:
<form class='product_form' action="checkout" method="get"> <input name="post_id" type="hidden" value="<?=$post->ID?>"/> <input type='image' src='<?php bloginfo('template_url'); ?>/images/buy.png' class='wpsc_buy_button' /> </form>