This working sample combines carrier calculated shipping with variable percentage and fixed price additional charges; and a flate rate shipping option based on custom calcuations using JavaScript. The number of items ordered controls the cost of the flat rate shipping option.
Source code and reference provided below.
This should be in <head> of your HTML
file, or you can create a .js file and reference it for easier management.
This code:
This sample should be within your <body>.
Note that this makes use of the Google Checkout Shopping Cart (v. 2_2).
Copy the code below and modify the
following for this to work: