<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
			<title>CubeCart v4 Documentation Feed</title>
			<link>http://www.cubecartforums.org/docs/repository/cubecart-v4-feed.html</link>
			<description></description>
			<language>en</language>
			<copyright>CubeCartForums.org Documentation 2006</copyright>
			<ttl>120</ttl><item> 
<title>Thumbnails Explained</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/faq/thumbnails-explained.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<h2>CubeCart Thumbnails Explained</h2>
CubeCart generates product thumbnails automatically when you assign an image to a product. The size of the thumbnail is determined by the size setting you have entered inside the admin area under General Settings:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/generalsettingimg.jpg" alt=""/>
<br/><br/>
As you can see it only allows you to enter one number for thumbnail size. It doesn't allow you to enter both a width and a height. So what it does with that number is resize the longest side of the image to that number and the other side is then sized proportional to the original image.
<br/><br/>
Further explanation on size: If the product image is horizontal, or wider than it is tall, the width of the thumbnail will be the sized in pixels to the number that is set in general settings and the height of the image will be proportional to the height of the original image. If the product image is vertical or taller than it is wide, the height of the thumbnail will be the sized in pixels to the number that is set in general settings and the width of the image will be proportional to the original product image that you uploaded.
<br/><br/>
For example:<br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/thumbexample.jpg" alt=""/>
<br/><br/>

<h2>How this works in conjunction with the skin</h2>
It really depends on how your skin is coded. I'm going to use one of CubeCarts original skins Classic as an example of the problems and solutions for common problems with thumbnails. These techniques are used by many free and commercial skins available for CubeCart.

<h2>Thumbnails on the homepage in Latest Products</h2>

The thumbnails here are inside divs along with the product's title and price, imagine invisible boxes if you don't understand divs. These boxes float left and line up in horizontal rows. If your thumbnails are all the exact same height then you won't run into many problems. But if your thumbnails vary in height your layout might look like this:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/jumble.jpg" alt=""/>
<br/><br/>
A common fix for this problem is to add a height to the div that contains the the thumbnails, title and price:
v4 Classic already has this, and the newer versions of Classic that come with v3 also have this.
<br/><br/>

This is from 'layout.css':
<div class="codebox">div.latestProds  {<br/>
float:left;<br/>
height:100px;<br/>
overflow:hidden;<br/>
text-align:center;<br/>
width:131px;<br/>
}</div>

Using the example above, this almost works for all our images, except those that are too big.

<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/fixstep1.jpg" alt=""/>
<br/><br/>
An easy fix for this would be to increase the height of the div, here's an example of an increase from a height of 120px to a height of 195px so that we can see the entire image, it's title, and it's price.
<br/><br/>
This is from 'layout.css':
<div class="codebox">div.latestProds  {<br/>
float:left;<br/>
height:195px;<br/>
overflow:hidden;<br/>
text-align:center;<br/>
width:131px;<br/>
}</div>

The result:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/fixstep2.jpg" alt=""/>
<br/><br/>

For some people this fix is sufficient, for others they would like for the titles and the prices to line up, too. Here's where it gets tricky, because there are different ways to accomplish this.
<br/><br/>
One technique is the add a div that contains only the thumbnail and add attributes to that div that tell it to crop the image if the image is longer or wider than a certain setting. Here's how you do this:
<br/><br/>
<strong>Step 1:</strong> You need to add html to the template file. Open up yourskin/styleTemplates/content/index.tpl and find the thumbnail image:
<br/><br/>

<div class="codebox">
&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot;&gt;&lt;img src=&quot;{VAL_IMG_SRC}&quot; alt=&quot;{VAL_PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{VAL_PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;
</div>

Now you need to put that image inside a surrounding div, this is what that code looks like:<br/>
<br/>
This is v3 code, v4 is very similar just use the same technique:

<div class="codebox">&lt;div class=&quot;imgcrop&quot;&gt;&lt;a   href=&quot;index.php?act=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot;&gt;&lt;img   src=&quot;{VAL_IMG_SRC}&quot; alt=&quot;{VAL_PRODUCT_NAME}&quot; border=&quot;0&quot;   title=&quot;{VAL_PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</div>

<strong>Step 2:</strong> You need to add the CSS for that surrounding div to 'layout.css':

<div class="codebox">.imgcrop {<br/>
height: 100px;<br/>
width: 100px;<br/>
overflow: hidden;<br/>
text-align:center;<br/>
margin:0px auto;<br/>
}</div>

This code basically makes an invisible box that is exactly 100x100 any image that is larger that this will be cut off and will align top left inside the invisible box. Any image that is smaller than 100x100 will align top and centre.
<br/><br/>
Here's our example with this code (I also changed the height of div.latestproduct to 175px from 195px):
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/fixstep3.jpg" alt=""/>
<br/><br/>

This will fix most, if you have mega-long product titles and want the prices to line up exact, you will need to use this same technique for the titles. Place the title in a surrounding div and give that div a height. This is just a basic example, you can get as fancy as you want for this area, you can even recode your category pages to look just like your latest product area. 

<h2>Other issues:</h2>
Featured Product box will have issues with large thumbnails.

<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/featprob.jpg" alt=""/>
<br/><br/>
<strong>Fix technique #1</strong>, add code to the css which crops anything that tries to go outside of the box.<br/>
<br/>
This is code from the 'layout.css' stylesheet:

<div class="codebox">.boxContentLeft, .boxContentRight {<br/>
background-color:#EBEDFE;<br/>
border:1px solid #000000;<br/>
margin-bottom:10px;<br/>
padding-bottom:5px;<br/>
padding-left:5px;<br/>
padding-top:3px;<br/>
}</div>

Add this:
<div class="codebox">overflow: hidden;</div>

For example:
<div class="codebox">.boxContentLeft, .boxContentRight {<br/>
background-color:#EBEDFE;<br/>
border:1px solid #000000;<br/>
margin-bottom:10px;<br/>
padding-bottom:5px;<br/>
padding-left:5px;<br/>
padding-top:3px;<br/>
overflow: hidden;<br/>
}</div>

The result:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/featprobfix1.jpg" alt=""/>
<br/><br/>


<strong>Fix technique #2</strong>, add a width to the image to it never can get too big.<br/>
<br/>
This is code from yourskin/styleTemplates/boxes/randomProd.tpl:

<div class="codebox">&lt;img src=&quot;{IMG_SRC}&quot; alt=&quot;{PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{PRODUCT_NAME}&quot; /&gt;</div>

Now add a width:
<div class="codebox">&lt;img src=&quot;{IMG_SRC}&quot; alt=&quot;{PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{PRODUCT_NAME}&quot; width=&quot;130&quot; /&gt;
</div>

The result:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/featprobfix2.jpg" alt=""/>
<br/><br/>

<strong>Fix technique #3</strong>, add a surrounding div to the image, set width and height and add an overflow:hidden; attribute. This is the same technique we used above for the Latest Product box.
<br/><br/>
Category pages for some skins will have issues with thumbnails that are too wide.<br/>
<br/>
For example:
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc3/faq/thumbnails/catproblem.jpg" alt=""/>
<br/><br/>
For the example above, any image over 190px wide will push table which contains it out too wide. You can use the same 3 techniques used above to fix this problem.

 ]]></description>
<pubDate>Fri, 04 Jun 2010 08:09:48 +0100</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/faq/thumbnails-explained.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Latest Product 'Buy' Buttons</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/faq/latest-product-buy-buttons.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>

<h2>Easy Method</h2>

This is a simple modification to add 'buy' and 'more' buttons to the front page latest products. It does not use the langiage file for the button text, therefore eliminates the need to modify core CubeCart files on upgrade.
<br/><br/>

Edit:
<p> /skins/SKIN_NAME/styleTemplates/content/index.tpl</p>
<br/>
Search for:

<div class="codebox">			&lt;/div&gt;<br/>
		&lt;!-- END: repeat_prods --&gt;
</div>
<br/>
And paste this just before, or where ever you would like to have the buttons:

<div class="codebox">	
&lt;form action=&quot;index.php&quot; style=&quot;text-align:center;&quot; method=&quot;post&quot; name=&quot;prod{VAL_PRODUCT_ID}&quot;&gt;<br />
&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot; target=&quot;_self&quot; class=&quot;cart_icon&quot;&gt;&lt;img src=&quot;skins/{VAL_SKIN}/styleImages/icons/information.gif&quot; alt=&quot;More&quot; title=&quot;More&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; <br />
&lt;input type=&quot;hidden&quot; name=&quot;add&quot; value=&quot;{VAL_PRODUCT_ID}&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;quan&quot; value=&quot;1&quot; /&gt;<br />
&lt;input type=&quot;image&quot; class=&quot;cart_icon&quot; src=&quot;skins/{VAL_SKIN}/styleImages/icons/cart_put.gif&quot; alt=&quot;Buy&quot; title=&quot;Buy&quot; /&gt;<br />
&lt;/form&gt;
</div>
To change the text used on the buttons, change the text shown in bold.
<br/><br/>
This code must be within the repeating area of the latest products area:
<div class="codebox">	
&lt;!-- BEGIN: repeat_prods --&gt; <br/>
The code in here somewhere.<br/>
&lt;!-- END: repeat_prods --&gt;
</div>
Save, and upload.
<br/>
<br/>
<div class="quotebox">The buttons have standard functionality as on the Categories page, with the following exceptions:
<ol>
<li>It does not use the language file for button name text, therefore not multi-language compatible.</li>
<li>It assumes that the products are in stock, ie there is no stock control element to the 'buy' button appearing.</li>
</ol></div>

<br/><br/>

<h2>Advanced Method</h2>

This is the more advanced version which behaves in the same way as the categories page product list. Language and stock control compatible.
<br/><br/>

Edit:
<p> /skins/SKIN_NAME/styleTemplates/content/index.tpl</p>
<br/>
Search for:

<div class="codebox">			&lt;/div&gt;<br/>
		&lt;!-- END: repeat_prods --&gt;
</div>
<br/>
And paste this just before, or where ever you would like to have the buttons:

<div class="codebox">	
&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot; target=&quot;_self&quot; class=&quot;cart_icon&quot;&gt;&lt;img src=&quot;skins/{VAL_SKIN}/styleImages/icons/information.gif&quot; alt=&quot;{BTN_MORE}&quot; title=&quot;{BTN_MORE}&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;<br />
&lt;!-- BEGIN: buy_btn --&gt;<br />
&lt;form action=&quot;index.php&quot; style=&quot;text-align:center;&quot; method=&quot;post&quot; name=&quot;prod{VAL_PRODUCT_ID}&quot;&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;add&quot; value=&quot;{VAL_PRODUCT_ID}&quot; /&gt;<br />
&lt;input type=&quot;hidden&quot; name=&quot;quan&quot; value=&quot;1&quot; /&gt;<br />
&lt;input type=&quot;image&quot; class=&quot;cart_icon&quot; src=&quot;skins/{VAL_SKIN}/styleImages/icons/cart_put.gif&quot; alt=&quot;{BTN_BUY}&quot; title=&quot;{BTN_BUY}&quot; /&gt;<br />
&lt;/form&gt;<br />
&lt;!-- END: buy_btn --&gt;

</div>

This code must be within the repeating area of the latest products area:
<div class="codebox">	
&lt;!-- BEGIN: repeat_prods --&gt; <br/>
The code in here somewhere.<br/>
&lt;!-- END: repeat_prods --&gt;
</div>

Save, and upload.
<br/>
<br/>



Edit:
<p> /includes/content/index.inc.php</p>

<br/>
Search for (around line 31):
<div class="codebox">$lang = getLang(&quot;includes&quot;.CC_DS.&quot;content&quot;.CC_DS.&quot;index.inc.php&quot;);
</div>

Add below it:
<div class="codebox">$langLP = getLang(&quot;includes&quot;.CC_DS.&quot;content&quot;.CC_DS.&quot;viewCat.inc.php&quot;);
</div>

<br/>

Search for (around line 63):

<div class="codebox">$latestProducts = $db-&gt;select(&quot;SELECT I.productId, I.image, I.price, I.name, I.sale_price FROM &quot;.$glob['dbprefix'].&quot;CubeCart_inventory AS I, &quot;.$glob['dbprefix'].&quot;CubeCart_category AS C WHERE C.cat_id = I.cat_id AND I.disabled != '1' AND I.showFeatured = '1' AND I.cat_id &gt; 0 AND C.hide != '1' ORDER BY I.productId DESC LIMIT &quot;.$config['noLatestProds']);</div>
<br/>
Amend the query to include 'I.useStockLevel' and 'I.stock_level', as shown below:
<div class="codebox">$latestProducts = $db-&gt;select(&quot;SELECT I.productId, I.image, I.price, I.name, I.sale_price, I.useStockLevel, I.stock_level FROM &quot;.$glob['dbprefix'].&quot;CubeCart_inventory AS I, &quot;.$glob['dbprefix'].&quot;CubeCart_category AS C WHERE C.cat_id = I.cat_id AND I.disabled != '1' AND I.showFeatured = '1' AND I.cat_id &gt; 0 AND C.hide != '1' ORDER BY I.productId DESC LIMIT &quot;.$config['noLatestProds']);
</div>

<br/>
Search for (around line 93):

<div class="codebox">			$index-&gt;parse(&quot;index.latest_prods.repeat_prods&quot;);
</div>
<br/>
And paste the following just before:

<div class="codebox">	
	// BEGIN Latest Products Buttons<br/>
if ($config['outofstockPurchase'] == true) {<br />
  $index-&gt;assign(&quot;BTN_BUY&quot;, $langLP['viewCat']['buy']);<br />
  $index-&gt;assign(&quot;VAL_PRODUCT_ID&quot;, $latestProducts[$i]['productId']);<br />
  $index-&gt;parse(&quot;index.latest_prods.repeat_prods.buy_btn&quot;);<br />
  <br />
  } else if ($latestProducts[$i]['useStockLevel'] == true &amp;&amp; $latestProducts[$i]['stock_level']&gt;0) {<br />
  $index-&gt;assign(&quot;BTN_BUY&quot;, $langLP['viewCat']['buy']);<br />
  $index-&gt;assign(&quot;VAL_PRODUCT_ID&quot;, $latestProducts[$i]['productId']);<br />
  $index-&gt;parse(&quot;index.latest_prods.repeat_prods.buy_btn&quot;);<br />
  <br />
} else if ($latestProducts[$i]['useStockLevel'] == false) {<br />
$index-&gt;assign(&quot;BTN_BUY&quot;, $langLP['viewCat']['buy']);<br />
$index-&gt;assign(&quot;VAL_PRODUCT_ID&quot;, $latestProducts[$i]['productId']);<br />
$index-&gt;parse(&quot;index.latest_prods.repeat_prods.buy_btn&quot;);<br />
}<br/>
$index-&gt;assign(&quot;BTN_MORE&quot;, $langLP['viewCat']['more']);<br/>
  	// END Latest Products Buttons
</div>

Save, and upload.
<br/>
<br/> ]]></description>
<pubDate>Mon, 04 Jan 2010 09:52:33 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/faq/latest-product-buy-buttons.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Latest Product Descriptions</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/faq/latest-product-descriptions1.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
Adding description text to the Homepage Latest Products similar to the product list on the Category pages, is fairly simple. It only required two files to be edited, one file in the core CubeCart system, and the other in the skin.
<br/>
<h2>Core PHP Modification</h2>
Find: <p>/includes/content/index.inc.php</p>

Search for : 

<div class="codebox">$latestProducts = $db-&gt;select(&quot;SELECT I.productId, I.image, I.price, I.name, I.sale_price FROM &quot;.$glob['dbprefix'].&quot;CubeCart_inventory AS I, &quot;.$glob['dbprefix'].&quot;CubeCart_category AS C WHERE C.cat_id = I.cat_id AND I.disabled != '1' AND I.showFeatured = '1' AND I.cat_id &gt; 0 AND C.hide != '1' ORDER BY I.productId DESC LIMIT &quot;.$config['noLatestProds']);</div>

Add 'I.description' to the query:

	<div class="codebox">$latestProducts = $db-&gt;select(&quot;SELECT I.productId, I.description, I.image, I.price, I.name, I.sale_price FROM &quot;.$glob['dbprefix'].&quot;CubeCart_inventory AS I, &quot;.$glob['dbprefix'].&quot;CubeCart_category AS C WHERE C.cat_id = I.cat_id AND I.disabled != '1' AND I.showFeatured = '1' AND I.cat_id &gt; 0 AND C.hide != '1' ORDER BY I.productId DESC LIMIT &quot;.$config['noLatestProds']);</div>

Search for:

	<div class="codebox">$index-&gt;assign(&quot;VAL_PRODUCT_NAME&quot;, validHTML($latestProducts[$i]['name']));</div>

Add directly below:

	<div class="codebox">// MOD to add LATEST PRODUCTS descriptions - BEGIN<br/>
if (strlen($latestProducts[$i]['description']) &gt; $config['productPrecis']) {<br />
$index-&gt;assign(&quot;TXT_DESC&quot;, substr(strip_tags($latestProducts[$i]['description']), 0, $config['productPrecis']).&quot;&amp;hellip;&quot;);<br />
} else {<br />
$index-&gt;assign(&quot;TXT_DESC&quot;, strip_tags($latestProducts[$i]['description']));<br />
}<br/>
	// MOD to add LATEST PRODUCTS descriptions - END</div>


<h2>Skin HTML Modification</h2>
Find: <p>/skins/SKIN_NAME/styleTemplates/content/index.tpl</p>

Search for:
<div class="codebox">&lt;!-- BEGIN: repeat_prods --&gt; <br/>
		&lt;div class=&quot;latestProds&quot;&gt; </div>
and<br/>
<div class="codebox">&lt;/div&gt;<br/>
&lt;!-- END: repeat_prods --&gt;
</div>
Paste the following code somewhere between the BEGIN and END.
<div class="codebox">{TXT_DESC}</div>
<br/>Positioning within that area, and the styling is up to you. Remember to clear your store cache afterwards. ]]></description>
<pubDate>Thu, 24 Sep 2009 15:36:30 +0100</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/faq/latest-product-descriptions1.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Upgrading the Images</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-images.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
Open 'skins/YOURSKIN/styleImages'.

<h2>Ratings</h2>
Copy the 'ratings' folder from 'skins/classic/styleImages/icons' to 'skins/YOURSKIN/styleImages/icons'. 

<h2>Icons</h2>
Copy all files (only one file is also in v3 as default - 'basket.gif') from 'skins/classic/styleImages/icons' to 'skins/YOURSKIN/styleImages/icons'.

<h2>Images</h2>
Copy 'more.gif' and 'index.php' from 'skins/classic/styleImages' to 'skins/YOURSKIN/styleImages'.
 ]]></description>
<pubDate>Tue, 25 Nov 2008 19:36:25 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-images.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Upgrading the Stylesheets</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-stylesheets.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
Note these upgrade additions are designed to add the new styles to your skin. If you have a customised skin, a lot of the changes in v4 that are not in v3 are not necessarily important to migrate as they will likely change the 'look and feel' of your store from what you want. Therefore, only new style 'classes' and 'ids' are noted.


<br/><br/>
Open 'skins/YOURSKIN/styleSheets'.

<h2>New files in v4.3.7</h2>
Copy 'index.php', 'ie.css' and 'lightbox.css' from 'skins/classic/styleSheets' to 'skins/YOURSKIN/styleSheets'.

<h2>layout.css</h2> 
If the .latestProds code does not exist, there is no need to add it. If it does exist and is different to the text below, there is still no need to add it. In other words, the 'latestProds' bit is entirely optional.
<br/><br/>
/*BEGIN OPTIONAL*/
<br/>
Find this at the end of the file...
<div class="codebox">.latestProds {<br/>
float: left;<br/>
text-align: center;<br/>
width: 131px;<br/>
height: 120px;<br/>
}</div>
Change to...

<div class="codebox">
div.latestProds {<br/>
text-align: center;<br/>
width: 131px;<br/>
height: 100px;<br/>
float: left;<br/>
overflow: hidden;<br/>
}<br/></div>


/*END OPTIONAL*/
<br/><br/>
Add this on the end...
<div class="codebox">


#imgThumbSpace{<br/>
  line-height: 0px; <br/>
  }<br/>
#imgThumbSpace img {<br/>
  padding-right: 3px;<br/>
  padding-bottom: 3px; <br/>
  }<br/>

/*<br/>
  Start Cross-Browser DHTML Menu<br/>
  */<br/>
#mainmenu-nav {<br/>
  list-style: none;<br/>
  list-style-type: none;<br/>
  width: 158px;<br/>
  padding: 0px;<br/>
  margin: 0px;<br/>
  }<br/>
.li-nav a {<br/>
  padding: 2px 1px;<br/>
  background-color: #EBEDFE;<br/>
  width: 148px;<br/>
  display: block;<br/>
  text-indent: 2px;<br/>
  color: #070F72;<br/>
  text-decoration: none;<br/>
  margin: 0px;<br/>
  }<br/>
  .li-nav a:hover {<br/>
  background-color: #FFFFFF;<br/>
  color: #FF6600;<br/>
  }<br/>
.ul-nav, .li-nav {<br/>
  display: block;<br/>
  list-style: none;<br/>
  }<br/>
.ul-nav {<br/>
  width: 150px;<br/>
  padding: 0px;<br/>
  }<br/>
.li-nav { <br/>
  float: left;<br/>
  }<br/>
.li-nav .ul-nav  {<br/>
  display: none;<br>
  position: absolute;<br/>
  margin-left: 100px;<br/>
  margin-top: -19px;<br/>
  border-left: 1px solid #000000;<br/>
  border-right: 1px solid #000000;<br/>
  border-bottom: 1px solid #000000;<br/>
  border-top: 4px solid #0858B6;<br/>
  z-index: 99;<br/>
  }<br/>
a.hassubmenu {<br/>
  background-image: url(../styleImages/more.gif);<br/>
  background-repeat: no-repeat;<br/>
  background-position: 143px 6px;<br/>
  }<br/>
  /*<br/>
  End Cross-Browser DHTML Menu<br/>
  */<br/></div>

<h2>style.css</h2> 
Add the following to the skin at the bottom

<div class="codebox">img {<br />
  border: none;<br />
  }<br/>
.cart_icon {<br />
  border: none;<br />
  margin: 12px 0px;<br />
  }<br />
<br />
a.txtSelected:hover, a.txtSelected:active, a.txtSelected:link, a.txtSelected:visited {<br />
color: #FF6600;<br />
text-decoration:none;<br />
}<br />
<br />
a.flashBasket:active, a.flashBasket:link, a.flashBasket:visited, a.flashBasket:hover {<br />
font-weight: bold;<br />
color: #FFFFFF;<br />
background-color: #66CC33;<br />
text-decoration: none;<br />
font-weight: bold;<br />
padding: 2px;<br />
border: 1px solid #000000;<br />
}<br />
<br />
.addCoupon:hover, .addCoupon:active, .addCoupon:visited, .addCoupon:link  {<br />
  font-weight: bold;<br />
  color: #000000;<br />
  text-decoration: none;<br />
  font-weight: bold;<br />
  }<br/>
.RatingTop {<br />
  border-top: 1px solid #070F72;<br />
  border-right: 1px solid #070F72;<br />
  border-left: 1px solid #070F72;<br />
  background-color: #EBEDFE;<br />
  padding: 3px;<br />
  }<br/>
.RatingMain {<br />
  border-right: 1px solid #070F72;<br />
  border-left: 1px solid #070F72;<br />
  background-color: #EBEDFE;<br />
  padding: 3px;<br />
  font-style:italic;<br />
  }<br/>
.ReviewBot {<br />
  border-right: 1px solid #070F72;<br />
  border-left: 1px solid #070F72;<br />
  background-color: #EBEDFE;<br />
  padding: 3px;<br />
  border-bottom: 1px solid #070F72;<br />
  }
<br/>.RatingBottom {<br />
  background-color: #070F72;<br />
  padding: 3px;<br />
  border-right: 1px solid #070F72;<br />
  border-left: 1px solid #070F72;<br />
  color: #FFFFFF;<br />
  /*font-size: 11px;*/<br />
  }
<br/>a.sortLink {<br />
  color: #FFFFFF;<br />
  font-weight: bold;<br />
  text-decoration: none;<br />
  }<br />
  a.sortLink:hover {<br />
  text-decoration: underline;<br />
  }<br/>
#shipping-select {<br />
  width: 220px;<br />
  }</div> ]]></description>
<pubDate>Sun, 23 Nov 2008 20:26:01 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-stylesheets.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Upgrading the Content</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-content.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
Open 'skins/YOURSKIN/styleTemplates/content'.

<h2>New files in v4.3.7</h2>
Copy 'error.tpl', 'giftCert.tpl', 'search.tpl', 'recaptcha.tpl' and 'index.php' files from 'skins/classic/styleTemplates/content' to 'skins/YOURSKIN/styleTemplates/content'.


<h2>account.tpl</h2>
Only the address paths changed in this file.<br/><br/>

Change....
<div class="codebox">&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?act=profile&quot; class=&quot;txtDefault&quot;&gt;{TXT_PERSONAL_INFO}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;cart.php?act=viewOrders&quot; class=&quot;txtDefault&quot;&gt;{TXT_ORDER_HISTORY}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?act=changePass&quot; class=&quot;txtDefault&quot;&gt;{TXT_CHANGE_PASSWORD}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?act=newsletter&quot; class=&quot;txtDefault&quot;&gt;{TXT_NEWSLETTER}&lt;/a&gt;&lt;/li&gt;</div>
To...
<div class="codebox">&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?_a=profile&quot; class=&quot;txtDefault&quot;&gt;{TXT_PERSONAL_INFO}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?_g=co&amp;amp;_a=viewOrders&quot; class=&quot;txtDefault&quot;&gt;{TXT_ORDER_HISTORY}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?_a=changePass&quot; class=&quot;txtDefault&quot;&gt;{TXT_CHANGE_PASSWORD}&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&quot;account&quot;&gt;&lt;a href=&quot;index.php?_a=newsletter&quot; class=&quot;txtDefault&quot;&gt;{TXT_NEWSLETTER}&lt;/a&gt;&lt;/li&gt;</div>


<h2>cart.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.  


<h2>changePass.tpl</h2>
Only the address paths changed in this file.<br/><br/>

Change....
<div class="codebox">&lt;form action=&quot;index.php?act=changePass&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;</div>
To...
<div class="codebox">&lt;form action=&quot;index.php?_a=changePass&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;</div>


<h2>confirmed.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.  

<h2>forgotPass.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.  

<h2>gateway.tpl</h2>
Copy the entire template over, as it is unlikely your template would have been altered. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 


<h2>index.tpl</h2>


Change....
<div class="codebox">&lt;div class=&quot;boxContent&quot;&gt;</div>
To...
<div class="codebox">&lt;div class=&quot;boxContent&quot;&gt;<br />
&lt;!-- BEGIN: welcome_note --&gt;</div>


Change....
<div class="codebox">&lt;!-- BEGIN: latest_prods --&gt;</div>
To...
<div class="codebox">&lt;!-- END: welcome_note --&gt;<br />
&lt;!-- BEGIN: latest_prods --&gt;</div>

Only the address paths have changed in the 'latest products area'. If your template latest products has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template and just change the file path references. Otherwise, just copy and past the code below... 

Change....
<div class="codebox">&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot;&gt;&lt;img src=&quot;{VAL_IMG_SRC}&quot; alt=&quot;{VAL_PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{VAL_PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;<br />
&lt;br /&gt;<br />
&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot; class=&quot;txtDefault&quot;&gt;{VAL_PRODUCT_NAME}&lt;/a&gt;</div>
To...
<div class="codebox">&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot;&gt;&lt;img src=&quot;{VAL_IMG_SRC}&quot; alt=&quot;{VAL_PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{VAL_PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;<br />
&lt;br /&gt;<br />
&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={VAL_PRODUCT_ID}&quot; class=&quot;txtDefault&quot;&gt;{VAL_PRODUCT_NAME}&lt;/a&gt;</div>


<h2>login.tpl</h2>

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 


<h2>newsletter.tpl</h2>


Change....
<div class="codebox">&lt;form action=&quot;index.php?act=newsletter&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;</div>
To...
<div class="codebox">&lt;form action=&quot;index.php?_a=newsletter&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;</div>


<h2>profile.tpl</h2>

Copy the entire template over, as most of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 

<h2>reg.tpl</h2>

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 




<h2>step1.tpl</h2>

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you can follow these simple changes.<br/>
<br/>
Find this...
<div class="codebox">&lt;span class=&quot;txtContentTitle&quot;&gt;{LANG_LOGIN_TITLE}&lt;/span&gt;</div>
Paste below...
<div class="codebox">&lt;div style=&quot;text-align: center; height: 25px;&quot;&gt;<br />
&lt;div class=&quot;cartProgress&quot;&gt;<br />
{LANG_CART} --- &lt;span class=&quot;txtcartProgressCurrent&quot;&gt;{LANG_CHECKOUT}&lt;/span&gt; --- {LANG_PAYMENT} --- {LANG_COMPLETE}<br />
&lt;/div&gt;<br />
&lt;/div&gt;
</div>

<br/>
Change....
<div class="codebox">&lt;form action=&quot;index.php?act=login&amp;amp;redir={VAL_SELF}&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;
</div>
To...
<div class="codebox">&lt;form action=&quot;index.php?_a=login&amp;amp;redir={VAL_SELF}&quot; target=&quot;_self&quot; method=&quot;post&quot;&gt;
</div>


<br/>
Change....
<div class="codebox">&lt;a href=&quot;index.php?act=forgotPass&quot;</div>
To...
<div class="codebox">&lt;a href=&quot;index.php?_a=forgotPass&quot;</div>

<br/>
Change....
<div class="codebox">&lt;a href=&quot;cart.php?act=reg&quot;</div>
To...
<div class="codebox">&lt;a href=&quot;index.php?_g=co&amp;amp;_a=reg&amp;amp;co=1&quot;
</div>

<h2>tellafriend.tpl</h2>

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 


<h2>unsubscribe.tpl</h2>

Copy the entire template over, as it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 
<br/><br/>
However only the address paths changed in this file if you did want to upgrade.
<br/><br/>
Change....
<div class="codebox"> &lt;form action=&quot;index.php?act=unsubscribe&quot; target=&quot;_self&quot; method=&quot;post&quot; style=&quot;text-align: center;&quot;&gt;</div>
To...
<div class="codebox">&lt;form action=&quot;index.php?_a=unsubscribe&quot; target=&quot;_self&quot; method=&quot;post&quot; style=&quot;text-align: center;&quot;&gt;</div>

<h2>viewCat.tpl</h2>

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 



<h2>viewOrder.tpl</h2>

Copy the entire template over, as a lot of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 

<h2>viewOrders.tpl</h2>

Copy the entire template over, as most of it is different and it's unlikely you would have customised this file. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template. 

<h2>viewProd.tpl</h2>

Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 template.  ]]></description>
<pubDate>Sat, 22 Nov 2008 19:06:23 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-content.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Upgrading the Boxes</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-boxes.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
Open 'skins/YOURSKIN/styleTemplates/boxes'.

<h2>New files in v4.3.7</h2>
Copy 'index.php' and 'skin.tpl' from 'skins/classic/styleTemplates/boxes' to 'skins/YOURSKIN/styleTemplates/boxes'.

<h2>cartNavi.tpl</h2>


Change....
<div class="codebox">&lt;div class=&quot;boxContentLeft&quot;&gt;</div>
To...
<div class="codebox">&lt;div class=&quot;boxContentLeft&quot; id=&quot;naviBox&quot;&gt;</div>


<h2>categories.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 skin.

<h2>currency.tpl</h2>
Only the address paths changed in this file.<br/><br/>
Change....
<div class="codebox">&lt;option value=&quot;switch.php?r={VAL_CURRENT_PAGE}&amp;amp;currency={VAL_CURRENCY}&quot; {CURRENCY_SELECTED}&gt;{CURRENCY_NAME}&lt;/option&gt;</div>
To...
<div class="codebox">&lt;option value=&quot;index.php?_g=sw&amp;amp;r={VAL_CURRENT_PAGE}&amp;amp;currency={VAL_CURRENCY}&quot; {CURRENCY_SELECTED}&gt;{CURRENCY_NAME}&lt;/option&gt;</div>


<h2>language.tpl</h2>
Only the address paths changed in this file.<br/><br/>
Change....
<div class="codebox">&lt;option value=&quot;switch.php?r={VAL_CURRENT_PAGE}&amp;amp;lang={LANG_VAL}&quot; {LANG_SELECTED} onmouseover=&quot;javascript:getImage('language/{LANG_VAL}/flag.gif');&quot;&gt;{LANG_NAME}&lt;/option&gt;</div>
To...
<div class="codebox">&lt;option value=&quot;index.php?_g=sw&amp;amp;r={VAL_CURRENT_PAGE}&amp;amp;lang={LANG_VAL}&quot; {LANG_SELECTED} onmouseover=&quot;javascript:getImage('language/{LANG_VAL}/flag.gif');&quot;&gt;{LANG_NAME}&lt;/option&gt;</div>



<h2>mailList.tpl</h2>

Change....
<div class="codebox">&lt;strong&gt;{LANG_EMAIL}&lt;/strong&gt; &lt;input name=&quot;email&quot; type=&quot;text&quot; size=&quot;14&quot; maxlength=&quot;255&quot; class=&quot;textbox&quot; /&gt;</div>
To...
<div class="codebox">&lt;strong&gt;{LANG_EMAIL}&lt;/strong&gt;<br />
&lt;input name=&quot;email&quot; type=&quot;text&quot; size=&quot;14&quot; maxlength=&quot;255&quot; class=&quot;textbox&quot; value=&quot;{LANG_EMAIL_ADDRESS}&quot; onclick=&quot;this.value='';&quot; /&gt;</div>


<h2>popularProducts.tpl</h2>
Only the address paths changed in this file.<br/><br/>

Change....
<div class="codebox">&lt;li class=&quot;num&quot;&gt;&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={DATA.productId}&quot; class=&quot;txtDefault&quot;&gt;{DATA.name}&lt;/a&gt;&lt;/li&gt;</div>
To...
<div class="codebox">&lt;li class=&quot;num&quot;&gt;&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={DATA.productId}&quot; class=&quot;txtDefault&quot;&gt;{DATA.name}&lt;/a&gt;&lt;/li&gt;</div>


<h2>randomProd.tpl</h2>
Only the address paths changed in this file.<br/><br/>

Change....
<div class="codebox">&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={PRODUCT_ID}&quot; title=&quot;{PRODUCT_NAME}&quot;&gt;&lt;img src=&quot;{IMG_SRC}&quot; alt=&quot;{PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;<br />
&lt;br /&gt;<br />
&lt;span class=&quot;txtCopy&quot;&gt;&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={PRODUCT_ID}&quot; title=&quot;{PRODUCT_NAME}&quot; class=&quot;txtDefault&quot;&gt;{PRODUCT_NAME}&lt;/a&gt;&lt;/span&gt;</div>
To...
<div class="codebox">&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={PRODUCT_ID}&quot; title=&quot;{PRODUCT_NAME}&quot;&gt;&lt;img src=&quot;{IMG_SRC}&quot; alt=&quot;{PRODUCT_NAME}&quot; border=&quot;0&quot; title=&quot;{PRODUCT_NAME}&quot; /&gt;&lt;/a&gt;<br />
&lt;br /&gt;<br />
&lt;span class=&quot;txtCopy&quot;&gt;&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={PRODUCT_ID}&quot; title=&quot;{PRODUCT_NAME}&quot; class=&quot;txtDefault&quot;&gt;{PRODUCT_NAME}&lt;/a&gt;&lt;/span&gt;</div>


<h2>saleItems.tpl</h2>
Only the address paths changed in this file.<br/><br/>

Change....
<div class="codebox">&lt;li class=&quot;num&quot;&gt;&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={DATA.productId}&quot; class=&quot;txtDefault&quot;&gt;{DATA.name}&lt;/a&gt;&lt;br /&gt;</div>
To...
<div class="codebox">&lt;li class=&quot;num&quot;&gt;&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={DATA.productId}&quot; class=&quot;txtDefault&quot;&gt;{DATA.name}&lt;/a&gt;&lt;br /&gt;</div>


<h2>searchForm.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 skin.


<h2>session.tpl</h2>
Copy the entire template over, as most of it is different. If your template has been customised, you will need to manually compare the differences you have added to the shipped v3 skin in order to reapply it to the new v4 skin. Only the address paths changed in this file.

<h2>shoppingCart.tpl</h2>

Change....
<div class="codebox">&lt;span class=&quot;txtCartPrice&quot;&gt;{PRODUCT_PRICE}&lt;/span&gt;&lt;a href=&quot;index.php?act=viewProd&amp;amp;productId={PRODUCT_ID}&quot; class=&quot;txtCartProduct&quot;&gt;{VAL_NO_PRODUCT} x {VAL_PRODUCT_NAME}&lt;/a&gt;&lt;br clear=&quot;all&quot; /&gt;</div>
To...
<div class="codebox">&lt;span class=&quot;txtCartPrice&quot;&gt;{PRODUCT_PRICE}&lt;/span&gt;&lt;a href=&quot;index.php?_a=viewProd&amp;amp;productId={PRODUCT_ID}&quot; class=&quot;txtCartProduct&quot;&gt;{VAL_NO_PRODUCT} x {VAL_PRODUCT_NAME}&lt;/a&gt;&lt;br clear=&quot;all&quot; /&gt;</div>


Change....
<div class="codebox">&lt;!-- END: contents_flase --&gt;</div>
To...
<div class="codebox">&lt;!-- END: contents_false --&gt;</div>



Change....
<div class="codebox">&lt;div style=&quot;text-align: center; padding-top: 3px;&quot;&gt;&lt;a href=&quot;cart.php?act={CART_STEP}&quot; class=&quot;txtviewCart&quot;&gt;{LANG_VIEW_CART}&lt;/a&gt;&lt;/div&gt;</div>
To...
<div class="codebox">&lt;!-- BEGIN: view_cart --&gt;<br />
&lt;div style=&quot;text-align: center; padding-top: 3px;&quot;&gt;&lt;a href=&quot;index.php?_g=co&amp;amp;_a={CART_STEP}&quot; class=&quot;txtviewCart&quot; id=&quot;flashBasket&quot;&gt;{LANG_VIEW_CART}&lt;/a&gt;&lt;/div&gt;<br />
&lt;!-- END: view_cart --&gt;</div>



<h2>siteDocs.tpl</h2>


Change....
<div class="codebox">&lt;a href=&quot;index.php?act=viewDoc&amp;amp;docId={DATA.doc_id}&quot; class=&quot;txtSiteDocs&quot;&gt;{DATA.doc_name}&lt;/a&gt;</div>
To...
<div class="codebox">&lt;a href=&quot;{DATA.doc_url}&quot; class=&quot;txtSiteDocs&quot; {DATA.doc_url_target}&gt;{DATA.doc_name}&lt;/a&gt;</div>



 ]]></description>
<pubDate>Sat, 22 Nov 2008 18:39:47 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgrading-the-boxes.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Upgradng the Globals</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgradng-the-globals.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
Open 'skins/YOURSKIN/styleTemplates/global'.

<h2>New files in v4.3.7</h2>
Copy 'index.php' from 'skins/classic/styleTemplates/global' to 'skins/YOURSKIN/styleTemplates/global'.

<h2>index.tpl</h2>
Change....
<div class="codebox">&lt;script language=&quot;javascript&quot; src=&quot;js/jslibrary.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div>

To...
<div class="codebox">
&lt;link href=&quot;skins/{VAL_SKIN}/styleSheets/lightbox.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all, screen&quot;  /&gt;<br />
&lt;!--[if IE]&gt;<br />
&lt;link href=&quot;skins/{VAL_SKIN}/styleSheets/ie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
&lt;![endif]--&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/prototype.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
var fileBottomNavCloseImage = '{VAL_ROOTREL}images/lightbox/close.gif';<br />
var fileLoadingImage = '{VAL_ROOTREL}images/lightbox/loading.gif';<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jslibrary.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/scriptaculous.js?load=effects,builder&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/lightbox.js&quot;&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
var RecaptchaOptions = {<br />
theme : 'custom'<br />
}<br />
&lt;/script&gt;
</div>
Change....
<div class="codebox">&lt;body&gt;</div>
To...
<div class="codebox">&lt;body onload=&quot;initialiseMenu();{EXTRA_EVENTS}&quot;&gt;</div>


(Optional) Change....
<div class="codebox">
&lt;/body&gt;</div>
(Optional) To...
<div class="codebox">{DEBUG_INFO}<br />
&lt;/body&gt;</div>

<h2>cart.tpl</h2>
Change....
<div class="codebox">&lt;script language=&quot;javascript&quot; src=&quot;js/jslibrary.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div>
To...
<div class="codebox">
&lt;script type=&quot;text/javascript&quot;&gt;<br />
var fileBottomNavCloseImage = '{VAL_ROOTREL}images/lightbox/close.gif';<br />
var fileLoadingImage = '{VAL_ROOTREL}images/lightbox/loading.gif';<br />
&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jslibrary.js&quot;&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
var RecaptchaOptions = {<br />
theme : 'custom'<br />
}<br />
&lt;/script&gt;
</div>


Change....
<div class="codebox">&lt;body&gt;</div>
To...
<div class="codebox">&lt;body onload=&quot;initialiseMenu();&quot;&gt;</div>

(Optional) Change....
<div class="codebox">
&lt;/body&gt;</div>
(Optional) To...
<div class="codebox">{DEBUG_INFO}<br />
&lt;/body&gt;</div> ]]></description>
<pubDate>Sat, 22 Nov 2008 18:28:35 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/upgrading-from-v3/upgrading-a-v3-skin/upgradng-the-globals.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>No Products in Category</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/faq/no-products-in-category1.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
<h2>Overview</h2>
When there are no products in a category, a message appears on the category page:

<p>There are no products in this category.</p>

The message does not always apply if the category descriptions mod has been installed, or there are subcategories within that category.<br/><br/>

Therefore to remove this message there are two ways of doing it, removal in the language file, or removal in the skin.
<br/><br/>



<h2>Removal from the skin.</h2>
Removal from the skin automatically affects all languages the store uses.
<br/><br/>
Edit:
<p> /skins/SKIN_NAME/styleTemplates/content/viewCat.tpl</p>

Find near the bottom:
<div class="codebox">
&lt;!-- BEGIN: noProducts --&gt;<br/>
&lt;div&gt;{TXT_NO_PRODUCTS}&lt;/div&gt;<br/>
&lt;!-- END: noProducts --&gt;
</div>
Remove, or comment out the following:
<div class="codebox">
&lt;div&gt;{TXT_NO_PRODUCTS}&lt;/div&gt;<br/>
</div>
Save and Upload.
<br/><br/>
<h2>Removal from the language file.</h2>
Removal from the language system only affects the language it is removed from.
<br/><br/>
In Admin, find the <a href="CubeCart-v4/Setting-Up-Your-Store/Modules/languages.html" title="Languages">Language</a> menu option, select the language.
<br/><br/>
Select the 'Front End Phrases', then 'Content', then 'View Products/Subcategories Page'.
<br/><br/>
Remove the text 'There are no products in this category.'.
<br/><br/>
Select 'Modify Language File'. ]]></description>
<pubDate>Sat, 26 Jul 2008 22:16:57 +0100</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/faq/no-products-in-category1.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> <item> 
<title>Taxes</title>
<link>http://www.cubecartforums.org/docs/CubeCart-v4/Setting-Up-Your-Store/Store-Configuration/taxes.html</link>
<description><![CDATA[  
 








<div id="toc">
<h2>Page Contents</h2> 
<ol></li>
</ol>
</div>
<br/>
<h2>Standard Tax</h2>
The taxes section gives the ability to set the tax levels for the store's area. 
<br/><br/>
You also have the option of enabling flexible taxes, this is useful if you have to charge different tax amounts to different countries etc.
<br/><br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/taxes-01.gif" alt=""/>
<br/><br/>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Status</td>
    <td class="DocsColMain">With this disabled you will charge a flat rate of tax, with it enabled you have flexible taxes running.</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Mode</td>
    <td class="DocsColMain">This can be set to testing or live, recommend you try testing first.</td>
  </tr> 
</table>

<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/taxes-02.gif" alt=""/>
<br/><br/>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Country</td>
    <td class="DocsColMain">Country to apply Tax to (If flexible tax is disabled).</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Mode</td>
    <td class="DocsColMain">County/State/Zone to apply Tax to (If flexible tax is disabled).</td>
  </tr> 
</table>

<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/taxes-03.gif" alt=""/>
<br/><br/>

Here you can add, rename, edit or add new tax classes (If flexible tax is disabled).


<br/><br/>
<h2>Flexible Tax</h2> 
In the section we will learn how to use the flexible tax option in V4.
<br/><br/>
This is a complex module to set up.
<br/><br/>
<strong>Step 1 - Set the module to enabled.</strong>

<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-01.gif" alt=""/>
<br/><br/>
<strong>Step 2 - Create new Tax Class.</strong>
<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-02.gif" alt=""/>
<br/><br/>
Type in your Tax name, I have used V.A.T. in this example, and click 'Add Tax'.
<br/><br/>
<strong>Step 3 - Set up the Tax Details.</strong>
<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-03.gif" alt=""/>
<br/><br/>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Name</td>
    <td class="DocsColMain">A name for your reference. Each row must have a unique name. Example: UK V.A.T.</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Display As</td>
    <td class="DocsColMain">This is the name of the tax as you want it displayed on the checkout webpages and in receipts. Example: V.A.T.</td>
  </tr> 
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Display Reg. Number</td>
    <td class="DocsColMain">(Optional) If you want your V.A.T number(s) to be displayed on your receipts, then enter them exactly as you want them displayed. Example: V.A.T Number 123456789.</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Status</td>
    <td class="DocsColMain">You can use the status to disable a particular tax.</td>
  </tr> 
</table>

<br/>
<strong>Step 4 - Setting up the tax rates.</strong>

<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-04.gif" alt=""/>
<br/><br/>
Click on the button.
<br/><br/>
<strong>Step 5 - Setting zones and rates.</strong>
<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-05.gif" alt=""/>
<br/><br/>

<table width="100%" border="0" cellspacing="10" cellpadding="0">
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Class</td>
    <td class="DocsColMain">Each product and shipping method will be associated with a single tax class. Usually all products and shipping methods will be associated with the "Standard Tax" class and you should setup all your tax rates/zones with this tax class.</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Country</td>
    <td class="DocsColMain">The country to apply this Tax Class to.</td>
  </tr> 
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >County/State/Zone</td>
    <td class="DocsColMain">The county to apply Tax Class to (This is generally used in US stores only).</td>
  </tr> 
 <tr>
    <td class="DocsCol1" nowrap="nowrap">Tax</td>
    <td class="DocsColMain">This refers to one of the Tax Details setup on the previous page. Example: V.A.T.</td>
  </tr> 
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Rate (%)</td>
    <td class="DocsColMain">The amount of Tax to apply.</td>
  </tr>  
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Apply To</td>
    <td class="DocsColMain">Should the tax be applied to goods (ST), shipping (S&H), or both (ST & S&H).</td>
  </tr>  
  <tr>
    <td class="DocsCol1" nowrap="nowrap" >Active</td>
    <td class="DocsColMain">Enabled or Disabled.</td>
  </tr> 
</table>
<br/>
Now Click 'Add'.
<br/><br/>
Repeat this again if you need to set up more than 1 Tax band.
<br/><br/>
<strong>Step 6 - Check Your Tax Rates/Zones</strong>

<br/>
<img src="http://www.cubecartforums.org/docs/images/cc4/config/flextaxes-06.gif" alt=""/>
<br/><br/>
In this example there are 4 tax bands added.
<br/><br/>
So any orders from customers in.....
<br/><br/>
>> UK will be charged 17.5% V.A.T
>> United States will be charged 17.5% V.A.T
>> France will be charged no V.A.T
>> Mexico will be charged no V.A.T

 ]]></description>
<pubDate>Thu, 01 Nov 2007 19:26:16 +0000</pubDate>
<guid isPermaLink="false">http://www.cubecartforums.org/docs/CubeCart-v4/Setting-Up-Your-Store/Store-Configuration/taxes.html</guid>
<dc:creator>CubeCartForums.org Documentation</dc:creator> 

</item> 	</channel>
</rss>
