by ShopSite Lauren » Tue Mar 15, 2011 10:50 am
Can you provide the URL to the page that you are working on with the minicart?
For the section of code that you provided in the post above, that code will most likely not affect the mini cart table. That code is used for content in the div, but since inside that div is a table, that code does not necessarily affect the code inside the table. You should be able to remove the following lines, because they are most likely not affecting the table content at all.
document.write("text-align:" + textAlign + ";");
document.write("font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;");
document.write("font-size: 8pt;");
The best way to modify the look of the mini cart is with CSS. I use the same mini cart code in all templates that I create, and I simply use CSS to modify the look and feel of the cells. The mini cart code I supplied earlier was with the assumption that the div had the class MiniCart assigned to it, which many of the built in templates in ShopSite have. But I just looked at the code in the ShopSite Custom Template Cookbook for adding the mini cart to your non-ShopSite generated pages and that div does not have the class MiniCart assigned. So I would suggest adding the MIniCart class to that code. Then the CSS that I gave you will affect the code inside the cells. So in your JavaScript for the mini cart, the code should look like:
document.write("<div class=\"MiniCart\">\n");
Then the CSS that you place before or after the minicart should look like:
<style type="text/css">
div.MiniCart, div.MiniCart td{
font-size: 8pt;
font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
}
</style>
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.