Hi,

> On Mar 28, 2014, at 11:40, Darren Hollenbeck <[email protected]> wrote:
> 
> As title says... the form produces validation errors since the required 
> fields are not present (the template doesn't even render them): 
> 
> {% if cart.is_shippable %}
>     {% block shipping-info %}{% include 
> "contact/_contact_info_form_shipping.html" %}{% endblock %}
> {% endif %}
> 
> How can I have these fields be non-required if the cart contains only 
> non-shippable items?

I solved that awhile back by adding in an else and adding the required form 
fields as hidden so the form can validate. It's a hack but it worked. 

Hope it helps

Laszlo
http://twitter.com/LZAntal

> -- 
> You received this message because you are subscribed to the Google Groups 
> "Satchmo users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/satchmo-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to