Thought others might find this useful:
The Simple Commerce module outputs simple PayPal add-to-cart links. When someone clicks one of these links on your site, an item is added to the user’s PayPal cart and it inherits your PayPal account’s default settings for shipping and tax calculation.
On a site we created, this worked great since all of the products had the same tax and shipping rules, which were set in PayPal. That is, until today, when the site started selling a few services, which need to have no tax or shipping costs applied (in this case).
So, we needed a way to override the tax and shipping on these couple items. Fortunately, PayPal allows a number of settings to be overridden via URL parameters, that are documented on their HTML Variables for Website Payments Standard page.
To add extra variables to the link generated by Simple Commerce, one need simply append them as URL parameters, like &tax=0. The ExpressionEngine template code for this looks like:
<a href="http://{add_to_cart_url}{if">Add to Cart</a>In this case, we’ve created two custom fields, tax and shipping, that appear for in the weblog we use for product entry in ExpressionEngine. We then output those fields into our template, used in the conditionals shown.
Works great, and it’s simple.
There is another way to get more full control over the PayPal links you output. This is well described by Ingmar Greil in his 2007 forum post PayPal, the Simple Commerce Module and you and in summary form in the Advanced PayPal entry on the ExpressionEngine wiki. Be sure to take a look at those if you need even more control.