Because the mini cart relies on cookies, which must be read by the domain they are written by, the mini cart cannot be used on sites where the cart domain name and the store pages domain name are not the same.
You have the cartURL value set with the domain name http://shopsite.fatcow.com I really doubt that your store pages are at that domain.
The only way to get it to work is to have your store installed with the pages and the shopping cart urls being the same. I don't know if fatcow will allow that kind of configuration so you will need to check with them and find out. Basically this means that you will either have to have your on install area for the shopping cart cgis, instead of a shared area like they typically do. I know that at one of the other hosting companies owned by the same owners they will install stores on a different server so that this can be accomplished, but I don't know if Fatcow does that.
This still doesn't answer your direct question but there is no sense in spending more time trying to get it to work when there is no way possible under your current setup.
I don' know much about javascript so can't give you an exact answer as to how to accomplish what you are trying to do but you might look at the files used in the Stained Glass theme sg_page_template which has this code for displaying the minicart
- Code: Select all
<script type="text/javascript" language="JavaScript">
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
</script>
The sg_page_template includes the file Page-Head include file which loads the minicart javascript with this line
- Code: Select all
[-- IF MiniCart --][-- INCLUDE MiniCart.js PROCESS --][-- END_IF --]
You will want to compare the MiniCart.js file with the minicart javascript code you are trying to use to see how the function is implemented.