Skip to content

Instantly share code, notes, and snippets.

@mbrochh
Created June 30, 2011 01:34
Show Gist options
  • Save mbrochh/1055458 to your computer and use it in GitHub Desktop.
Save mbrochh/1055458 to your computer and use it in GitHub Desktop.
Hiding billing_shipping_form from seletion.html template
<html>
<body>
<h1>Shipping and Billing</h1>
<form method="POST">
{% csrf_token %}
<h3>Your shipping address</h3>
{{ shipping_address.as_p }}
<h3>Your billing address</h3>
{{ billing_address.as_p }}
<input type=hidden name="shipping_method" value="skip-shipping" />
<input type=hidden name="payment_method" value="pay-on-delivery" />
<button type="submit">Save</button>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment