Please note that depending on your FoxyCart version you may need to use ''$()'', ''$j()'', or ''jQuery()'' for all your jQuery calls above.
==== How do I change the "continue shopping" or "continue" receipt link? ====
Add this code to your checkout template:
OR this code to your receipt template (change http://MYDOMAIN.com/MYURL to the link you want):
**NOTE**: Depending on your FoxyCart version you may need to manually include jQuery (or ''foxycart_includes.js'') in your receipt template.
If you'd like to make the "cancel and continue shopping" link empty the cart, try something like this:
==== I'd like a donation select box and the option to enter a custom value... where do I start? ====
We've had various requests for this so here's a quick and dirty example using the FoxyCart included JQuery. It's not a "paste this in your site and run with it" bit of code, but it should point you in the right direction. The field names are prefixed with "x:" so they won't be sent to FoxyCart as product options and the "\\" is needed to help unconfuse the JQuery selector. Basic concept involves stuffing a hidden input named price with the value you want to send to FoxyCart. To make this a working example, you'd need to fully setup the form as you need it. Please post any questions in the forum.
Note: this example starts with a $10 initial price point, so the "price" hidden field was set to "10". You'll want to adjust that accordingly as needed since that value only changes when the select box is changed.
FoxyCart V 0.5.1: For this script to correctly work with 051, please read this [[http://forum.foxycart.com/comments.php?DiscussionID=414&page=2#Item_3|Forum note]].
==== Can I hide the quantity field in the cart? ====
Add &quantity_max=1 to your cart add links or a hidden input named "quantity_max" with a value of 1 if you're using a form. Then add some css to color the text in the table header to match your header background and hide all the stuff you don't need anymore:
Note, you may also just want to use the cart=checkout option to go directly to the checkout page if you're only selling a single product.
==== My checkout page is narrow. Can I make the "standard" checkout theme thinner? ====
Yes, you can start by overriding one declaration:
You can stick that override in your own CSS file if you want, rather than inline. Just make sure it comes //after// the ''/themes/standard/styles.css'' call.
==== Can I remove the CVV field entirely? ====
Yes. Using the built-in jQuery, it'd look like this:
Put that down by your closing ''