Hi,
I have an order form with no fields, just one link that submits the form using <a href=”javascript:document.form_1.submit();”>Order</a>
Once the Order button is clicked, the product is added to the cart and redirects to the Checkout page.
I need this Checkout page to open as a JQuery Modal window (Thickbox/Greybox/Colorbox/NyroModal or similar), not in a normal browser window.
Please show me a working example using a simple form.
FIRST PROGRAMMER TO SHOW SIMPLE WORKING EXAMPLE GETS THIS PROJECT. PLEASE DO NOT BID OVER MY BUDGET OF $20
Here is the complete form:
<form action=”index.php” method=”post” name=”{$form_prefix}productform_{$product.product_id}”>
<input type=”hidden” name=”target” value=”checkout” />
<input type=”hidden” name=”mode” value=”add” />
<input type=”hidden” name=”product_data[{$obj_id}][product_id]” value=”{$product.product_id}” />
<input type=”hidden” name=”product_data[{$obj_id}][amount]” value=”1″ />
<input type=”hidden” name=”redirect_url” value=”index.php?target=checkout” />
<a href=”javascript:document.form_1.submit();”>Order</a>
</form>