[ic] Setting order discount using JavaScript

Jonathan Clark interchange-users@interchange.redhat.com
Mon May 13 09:15:00 2002


> |> I'm trying to set a discount for the entire order using a 
> combination of
> |> JavaScript and Perl.  The code is on the checkout page which 
> may be found at,
> |>
> |>     http://neatway.com/cgi-bin/altchoice/index.html
> |>
> |
> |Be careful that a visitor cannot alter that javascript and post the
> |page with his own discount.  That's a pretty common hack to many
> |carts that carry pricing in the page.
> 
> Good point.  Anything I can do to help prevent this?

unplug all network connections from your webserver.

Or, you could try using ic's discounting features.

Jonathan
Webmaint.