website/www/conservancy
Bradley M. Kuhn 6b9bdb335e Modify PayPal "no_shipping" var via t-shirt choice
According to
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

  no_shipping has the following values:
      0: prompt for an address, but do not require one
      1: do not prompt for an address
      2: prompt for an address, and require one
      The default is 0.

Ideally, any time they change wantGift, even in a pure HTML form, we'd
change it between 0 and 2 as appropriate (i.e., we need the address if
they want the t-shirt).

However, I couldn't find an easy way to make this modification in pure
CSS or HTML, so it only happens in Javascript-enabled browsers.

This is still graceful degradation, since the only impact is in cases
where a non-Javascript user fails to give us an address, and we have to
email later to get the shipping address.
2014-12-03 18:50:53 -05:00
..
apps Keep blog posts on front page for 30 days. 2012-02-15 15:13:30 -08:00
static Modify PayPal "no_shipping" var via t-shirt choice 2014-12-03 18:50:53 -05:00
templates Remove male dominated placeholder. 2014-12-03 13:49:06 -05:00
__init__.py Conservancy website as it currently looks; unfortunately, old history before this cannot easily be retrieved 2010-09-26 17:20:05 -04:00
feeds.py No longer "stash" the GET object in self. 2014-07-14 14:39:10 -04:00
frontpage.py Corrected front page code and template so that blog posts appear. 2010-10-04 11:27:04 -04:00
manage.py Added middleware and management file 2010-09-26 19:03:53 -04:00
middleware.py Incorporate conservancy_ssl middleware, etc. into main site, now that HTTPS fully supported. 2013-04-26 13:09:24 -04:00
settings.py Test thing for redirect table. 2010-10-11 15:48:17 -04:00
urls.py .* no longer desirable in /admin in urls.py 2014-07-14 14:49:17 -04:00