<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>multimixer &#187; jQuery UI</title>
	<atom:link href="http://multimixer.gr/tag/jquery-ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://multimixer.gr</link>
	<description>lets talk about osCommerce</description>
	<lastBuildDate>Fri, 19 Nov 2021 08:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery tips: Rounded corners for osCommerce boxes</title>
		<link>http://multimixer.gr/28/09/2011/jquery-tips-rounded-corners-for-oscommerce-boxes/</link>
		<comments>http://multimixer.gr/28/09/2011/jquery-tips-rounded-corners-for-oscommerce-boxes/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 18:16:03 +0000</pubDate>
		<dc:creator>multimixer</dc:creator>
				<category><![CDATA[learn]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://multimixer.gr/?p=1060</guid>
		<description><![CDATA[This is a quick and easy way to add rounded corners to your osCommerce boxes using jQuery and styling them with a couple of simple css rules. Easy as 123, try it out.]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Here is a quick and easy way to add rounded corners to your osCommerce boxes using jQuery and styling them with a couple of simple css rules</p>
<p>Here is how the boxes look by default</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/09/boxes_default.jpg"><img class="aligncenter size-large wp-image-1062" title="Default osCommerce boxes: Square corners and gluing to each other" src="http://multimixer.gr/wp-content/uploads/2011/09/boxes_default-540x283.jpg" alt="Default osCommerce boxes: Square corners and gluing to each other" width="540" height="283" /></a></p>
<p style="text-align: justify;">They have square corners and glue to each other. Lets go to change this. Please do not follow any advices posted in the osCommerce forum telling you that you have to go to several files changing this and that, or that you have to write huge blocks of css.</p>
<p>Things are much more simple, because of <strong>2 facts</strong></p>
<blockquote><p><strong>1) osCommerce uses a &#8220;jQuery UI&#8221; theme</strong>, and in it&#8217;s css there are already classes defined that will do rounded corners in any direction.</p>
<p>That classes are (names are self explanatory)</p>
<ul>
<li>.ui-corner-all</li>
<li>.ui-corner-top</li>
<li>.ui-corner-bottom</li>
<li>.ui-corner-right</li>
<li>.ui-corner-left</li>
<li>.ui-corner-tl (tl = top left)</li>
<li>.ui-corner-tr (tr = top right)</li>
<li>.ui-corner-bl (bl = bottom left)</li>
<li>.ui-corner-br (br = bottom right)</li>
</ul>
<p><strong>2) jQuery has a method called &#8220;</strong><a href="http://api.jquery.com/addClass/" target="_blank"><strong>addClass()</strong></a><strong>&#8220;</strong>, that does exactly this: to add a css class to anywhere you want</p></blockquote>
<p>Now after we know this, all we have to do is to add the ui class that creates rounded corners to the right element of the box using addClass()</p>
<p>All code snipsets I will add to file catalog/includes/footer.php (if not something else is mentioned) to here</p>
<pre class="brush:js">&lt;script type="text/javascript"&gt;
$('.productListTable tr:nth-child(even)').addClass('alt');
// here is where I add any jQuery code //
&lt;/script&gt;</pre>
<blockquote><p><strong>Mini template system users</strong></p>
<p>please find the same part of code in file mts/themes/your_theme/files/includes/footer.php</p></blockquote>
<p>Lets say you want to add rounded corners to the top of the box heading and to the bottom of the box content, so that the whole box looks like &#8220;rounded&#8221;. That what you need to add:</p>
<pre class="brush:js">$("#columnLeft div.ui-widget-header, #columnRight div.ui-widget-header").addClass("ui-corner-top");
$("#columnLeft div.ui-widget-content, #columnRight div.ui-widget-content").addClass("ui-corner-bottom");</pre>
<p>And this is the result</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/09/boxes_round1_margin.jpg"><img class="aligncenter size-large wp-image-1071" title="osCommerce boxes: All around rounded corners" src="http://multimixer.gr/wp-content/uploads/2011/09/boxes_round1_margin-540x283.jpg" alt="osCommerce boxes: All around rounded corners" width="540" height="283" /></a>For sure you noticed that I added also some space between the boxes, so that they don&#8217;t glue to each other. This I did by adding following to file catalog/stylesheet.css</p>
<pre class="brush:css">#columnLeft .infoBoxContainer, #columnRight .infoBoxContainer {margin-bottom:10px; }</pre>
<p>You can adjust of course the value of the margin as you like</p>
<blockquote><p><strong>Mini template system users</strong>, don&#8217;t need to add anything to anywhere since this is a admin setting. For questions please click the support link on top of your administration panel</p></blockquote>
<p>There are of course other possibilities to play with rounded corners, for example to add separate rounded corners to both, box heading and box content, like this:</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/09/boxes_round2.jpg"><img class="aligncenter size-large wp-image-1072" title="Separate rounded corners to box heading and box content" src="http://multimixer.gr/wp-content/uploads/2011/09/boxes_round2-540x283.jpg" alt="Separate rounded corners to box heading and box content" width="540" height="283" /></a>Just add to your footer (same location as before) following</p>
<pre class="brush:js">$("#columnLeft div.ui-widget-header, #columnRight div.ui-widget-header").addClass("ui-corner-all");
$("#columnLeft div.ui-widget-content, #columnRight div.ui-widget-content").addClass("ui-corner-all");</pre>
<p>To my stylesheet.css file I added folowing to make things a bit nicer</p>
<pre class="brush:css">#columnLeft .infoBoxHeading, #columnRight .infoBoxHeading {
  margin-bottom:2px;
  padding:7px 2px;
}</pre>
<p>You can of course add such a ronded corner only to the top left of the box heading or to anywhere you want. Go on and try it out</p>
<p>A possible question: How round are the rounded corners? This depends on the ui-widget theme you have installed. If you need an other corner radius, you can go to the <a href="http://jqueryui.com/themeroller/" target="_blank">themeroller</a> page and create a new theme using any settings you like for the corners.</p>
<p>You may be interested to read about how to <a title="change your jQuery ui theme in osCommerce" href="http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/">add a jQuery ui theme to your osCommerce store</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://multimixer.gr/28/09/2011/jquery-tips-rounded-corners-for-oscommerce-boxes/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Equal height for osCommerce product listing boxes</title>
		<link>http://multimixer.gr/18/03/2011/equal-height-for-oscommerce-product-listing-boxes/</link>
		<comments>http://multimixer.gr/18/03/2011/equal-height-for-oscommerce-product-listing-boxes/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 08:24:33 +0000</pubDate>
		<dc:creator>multimixer</dc:creator>
				<category><![CDATA[learn]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[osCommerce v2.3]]></category>

		<guid isPermaLink="false">http://multimixer.gr/?p=774</guid>
		<description><![CDATA[What to do if you want an equal height for all your product listing boxes in osCommerce? Read here what I did using jQuery. It's a simple fast and clean solution, easy to use for anyone]]></description>
			<content:encoded><![CDATA[<p>I started recently to work on a cross/up sell feature. So, I created a new module that is showing cross sell and/or up sell items on the product information page in osCommerce. The whole thing is based on the existing <a href="http://addons.oscommerce.com/info/2293" target="_blank">related products</a> addon, that I had to modify of course to make it compatible with version 2.3.1.</p>
<p>What I&#8217;ve got is a box that display for each cross or up sell product it&#8217;s name, model, manufacturer, it&#8217;s image, part of the product description, price and quantity and the buttons &#8220;buy now&#8221; and &#8220;details&#8221;.</p>
<p>I won&#8217;t go into more details about this, the topic here is an other, it&#8217;s about the old and well known problem about <strong>how to get an equal height for each box.</strong></p>
<p>Here is an image of the problem. The background in in green on purpose to make the problem clear</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/03/problem1.png"><img class="aligncenter size-large wp-image-789" title="The problem: Boxes of different height in osCommerce product listings" src="http://multimixer.gr/wp-content/uploads/2011/03/problem1-540x284.png" alt="The problem: Boxes of different height in osCommerce product listing" width="540" height="284" /></a></p>
<p>You see that each product column has it&#8217;s own height and that doesn&#8217;t look nice at all. Even I&#8217;m using an example here for the product information page, you will face the same if you want to do similar listings for the index page or the new and specials modules.</p>
<p><strong>What to do now?</strong></p>
<p>To understand the following comments lets take a look on how this box is structured in a simplified form (I will leave out anything that is not related to the issue. The complete and real code will be available at the osCommerce addons soon anyway)</p>
<pre class="brush:xml">&lt;div class="outer"&gt;

  &lt;div class="inner"&gt;
    &lt;div class="heading"&gt;
      &lt;p&gt;name&lt;/p&gt;
      &lt;p&gt;model&lt;/p&gt;
      &lt;p&gt;manufacturer&lt;/p&gt;
    &lt;/div&gt;

    The image

    &lt;p class="description"&gt;description&lt;/p&gt;

    &lt;div class="buttons"&gt;
      &lt;p&gt;quantity&lt;/p&gt;
      &lt;p&gt;price&lt;/p&gt;
      &lt;p&gt;buttons&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    &lt;div class="heading"&gt;
      &lt;p&gt;name&lt;/p&gt;
      &lt;p&gt;model&lt;/p&gt;
      &lt;p&gt;manufacturer&lt;/p&gt;
    &lt;/div&gt;

    The image

    &lt;p class="description"&gt;description&lt;/p&gt;

    &lt;div class="buttons"&gt;
      &lt;p&gt;quantity&lt;/p&gt;
      &lt;p&gt;price&lt;/p&gt;
      &lt;p&gt;buttons&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    &lt;div class="heading"&gt;
      &lt;p&gt;name&lt;/p&gt;
      &lt;p&gt;model&lt;/p&gt;
      &lt;p&gt;manufacturer&lt;/p&gt;
    &lt;/div&gt;

    The image

    &lt;p class="description"&gt;description&lt;/p&gt;

    &lt;div class="buttons"&gt;
      &lt;p&gt;quantity&lt;/p&gt;
      &lt;p&gt;price&lt;/p&gt;
      &lt;p&gt;buttons&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;/div&gt;</pre>
<h4>1) Limit the number of characters used for the description</h4>
<p>Yes, this is done already. But even we set eg just 300 characters to be displayed, there is maybe a product with just 100 in it&#8217;s description. So we can set the limit to 100. But do we really want to limit all product descriptions, just because one of them has a short or no description?</p>
<p>So, that&#8217;s not a satisfying solution, at least not completelly</p>
<h4>2) Set a fixed height for the description.</h4>
<p>That is exactly what I was doing till now, to add to my stylesheet.css a fixed height for the element that containns the product description like this:</p>
<pre class="brush:css">.description {
  height:200px;
  min-height:200px;
}</pre>
<p><em>A side note: If you are copy pasting anything here, please be careful and use your own names for the css classes, or add an id to the whole container. It can be that the same names are used elsewhere in your site and this could cause problems</em></p>
<p>But again, is this solution a good one? I say no, or at least not 100%. I don&#8217;t like the idea that each time I want to change the length of my description I have to modify several files to make it look ok again</p>
<h4>3) Faux columns</h4>
<p>This is a well known technique, that can be realized in 2 ways: The one way is using background images (you can read here about <a href="http://www.clubosc.com/column-backgrounds-in-css.html" target="_blank">faux columns in osCommerce</a>) the other way is to <a href="http://www.positioniseverything.net/articles/onetruelayout/equalheight" target="_blank">faux using css</a>. Second solution I do use for example for the side columns of osCommerce</p>
<p>Do this solutions solve our problem? again, no. The image solution requires a fixed width, and we don&#8217;t know how many boxes there will be per row, the content is dynamic and can change any time.</p>
<p>What comes next? A google search and one more solution based on css</p>
<h4>4) The css way</h4>
<p>Here is the article I found that explain <a href="http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks" target="_blank">how to get equal height using css only</a>. Please take a look and then come back here.</p>
<p>Sounds great not? But again, we can not predict how many products we will have per row. So we don&#8217;t know exactly what classes to apply to where. Trying to create some logic to make all those percentage calculations, I really got a headache. Conclusion: This solution sounds good for a static html layout, but is not good for our purpose</p>
<p>Back again to google. This time some more solutions based on jQuery. From all results, I took 2 to try them out</p>
<h4>5) The jQuery way 1</h4>
<p>This solution, to set <a href="http://www.filamentgroup.com/lab/setting%5Fequal%5Fheights%5Fwith%5Fjquery/" target="_blank">equal heights with jQuery</a> comes from the same people who also did the <a href="http://jqueryui.com/themeroller/" target="_blank">themeroller </a>that we all use in osCommerce 2.3.1. Very promising, so lets try it out.</p>
<p><strong>First,</strong> we copy the script into a .js file and upload that file to the server. Lets say we call the file equalheight.js. You can place it into folder catalog/ext/jquery/ of your osCommerce installation</p>
<p><strong>Second,</strong> we link to that file. In file catalog/includes/template_top.php add just before the closing &lt;/head&gt; following line</p>
<pre class="brush:xml">&lt;script type="text/javascript" src="ext/jquery/equalheight.js"&gt;&lt;/script&gt;</pre>
<p><strong>Then,</strong> we go to the file we create the listing. This could be the file catalog/includes/modules/product_listing.php if you do something for the index page, or catalog/includes/new_pproducts.php if you alter the new products module, or whatever. Here we are going to use the simplified example posted above</p>
<p>We need to apply a css class or id to the outer element that contains the columns of our product listings, like this</p>
<pre class="brush:xml">&lt;div class="outer equalHeight"&gt;

  &lt;div class="inner"&gt;
    &lt;div class="heading"&gt;
      &lt;p&gt;name&lt;/p&gt;
      &lt;p&gt;model&lt;/p&gt;
      &lt;p&gt;manufacturer&lt;/p&gt;
    &lt;/div&gt;

    The image

    &lt;p class="description"&gt;description&lt;/p&gt;

    &lt;div class="buttons"&gt;
      &lt;p&gt;quantity&lt;/p&gt;
      &lt;p&gt;price&lt;/p&gt;
      &lt;p&gt;buttons&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    ......
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    ......
  &lt;/div&gt;

&lt;/div&gt;</pre>
<p><strong>Last step</strong> is to call the script in following way</p>
<pre class="brush:js">$('.equalHeight').equalHeights();</pre>
<p>The script will apply the height f the tallest direct child to all other direct children (in our example the div with class=&#8221;inner&#8221;).</p>
<p>The result look like this (the equal height area is marked orange</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/03/equal1a.png"><img class="aligncenter size-large wp-image-791" title="We come closer: We have boxes of equal height now" src="http://multimixer.gr/wp-content/uploads/2011/03/equal1a-540x284.png" alt="We come closer: We have boxes of equal height now" width="540" height="284" /></a></p>
<p>So, ok, we come closer. We see that the buttons section is not at the bottom, closest thought is to position it absolute into it&#8217;s relative positioned &#8220;inner&#8221; conteiner.</p>
<p>Our css look like this</p>
<pre class="brush:css">.inner {
  float:left;
  position:relative;
}
.buttons {
  position:absolute;
  bottom:0px;
}</pre>
<p><em>Again, copy pasters, please be careful with the class names, choose your own. Also, only the css related to the issue is shown here</em></p>
<p>And the result look like this</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/03/equal1b.png"><img class="aligncenter size-large wp-image-792" title="Absolute positioning of the buttons section: Not a real solution" src="http://multimixer.gr/wp-content/uploads/2011/03/equal1b-540x284.png" alt="Absolute positioning of the buttons section: Not a real solution" width="540" height="284" /></a></p>
<p><strong>What is now?</strong> The buttons section covers part of the description of the tallest element. Again a solution to this, to add some bottom margin to the description, that need to be equal to the height of the button section.</p>
<p>So, lets go, but&#8230; wait: Do we know this height? No we don&#8217;t because if depends on the content of the buttons area, and there can be a price or not, a quantity or not, the buttons themselves or not, according to the administration settings</p>
<p><strong>Conclusion:</strong> We came very close, but that&#8217;s also not exactly what we need.</p>
<p>Back to the google results. But first lets think again what our problem is: We have a description that is not equal in length for all items and we want to make the container (in our case the &lt;p class=&#8221;description&#8221;&gt; to have the same height. In other words: We need something to apply to the inner element (the description) directly.</p>
<p>Is there something? Yes there is !</p>
<h4>6) The jQuery way 2</h4>
<p>This solution about <a href="http://www.webringideas.com/web-development/divs-of-equal-height-using-jquery-script.html" target="_blank">divs of equal height using jQuery</a> script has one main difference to the previous. It apply to the inner element, and that&#8217;s exactly what we need</p>
<p>The procedure is the same as at point (5): Paste the script into a file, link to the file.</p>
<p>Then in the file we are working on we add a class to our &lt;p&gt; that contains the description as follows:</p>
<pre class="brush:xml">&lt;div class="outer"&gt;

  &lt;div class="inner"&gt;
    &lt;div class="heading"&gt;
      &lt;p&gt;name&lt;/p&gt;
      &lt;p&gt;model&lt;/p&gt;
      &lt;p&gt;manufacturer&lt;/p&gt;
    &lt;/div&gt;

    The image

    &lt;p class="description equalDesc"&gt;description&lt;/p&gt;

    &lt;div class="buttons"&gt;
      &lt;p&gt;quantity&lt;/p&gt;
      &lt;p&gt;price&lt;/p&gt;
      &lt;p&gt;buttons&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    .....
  &lt;/div&gt;

  &lt;div class="inner"&gt;
    .....
  &lt;/div&gt;

&lt;/div&gt;</pre>
<p>Finally, we call the script in the same way as before, only difference the class name and the script name</p>
<pre class="brush:js">$(".equalDesc").setEqualHeight()</pre>
<p>and how does everything look like? (The description is now in orange)</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/03/equal2a.png"><img class="aligncenter size-large wp-image-793" title="The real solution: Equal height for the description only" src="http://multimixer.gr/wp-content/uploads/2011/03/equal2a-540x284.png" alt="The real solution: Equal height for the description only" width="540" height="284" /></a></p>
<p>Yes, that is it ! That&#8217;s the way to go. One more last image without the help colors</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/03/final1.png"><img class="aligncenter size-large wp-image-794" title="The final result as it could appear on any website" src="http://multimixer.gr/wp-content/uploads/2011/03/final1-540x284.png" alt="The final result as it could appear on any website" width="540" height="284" /></a></p>
<p>Try it out and enjoy</p>
<p>I will try it out for the columns left and right now</p>
]]></content:encoded>
			<wfw:commentRss>http://multimixer.gr/18/03/2011/equal-height-for-oscommerce-product-listing-boxes/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to upgrade your jQuery UI version in osCommerce</title>
		<link>http://multimixer.gr/06/01/2011/how-to-upgrade-your-jquery-ui-version-in-oscommerce/</link>
		<comments>http://multimixer.gr/06/01/2011/how-to-upgrade-your-jquery-ui-version-in-oscommerce/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 13:58:23 +0000</pubDate>
		<dc:creator>multimixer</dc:creator>
				<category><![CDATA[learn]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[osCommerce v2.3]]></category>

		<guid isPermaLink="false">http://multimixer.gr/?p=677</guid>
		<description><![CDATA[If you want to pick a new UI theme for your store, you will notice that jQuery UI upgraded their version, and that means that, if you want to get a new ui theme, you have to upgrade the ui version that is used in osCommerce too. Read here how]]></description>
			<content:encoded><![CDATA[<p>I posted some time ago about <a href="http:/http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/" target="_self">how to get a new (ui) theme for your osCommerce store</a>. Doing this today, you will notice that jQuery UI upgraded their version, and that means that, if you want to get a new ui theme, you have to upgrade the ui version that is used in your osCommerce store too.</p>
<p>No panic, things are easier as they sound, just a couple of files to replace, but first, let&#8217;s take things from the beginning:</p>
<p>osCommerce uses jQuery version 1.4.2 and jQuery UI version 1.8.6. The latest jQuery UI version (that is required by the themes to function) uses jQuery version 1.4.4 (the latest) and jQuery UI version 1.8.7. You will also note that any new theme you download from themeroller uses a file &#8220;jquery-ui-1.8.7.custom.css&#8221;, and that&#8217;s a clear indicator that the theme belongs to the new UI generation</p>
<p>I red somewhere in the osCommerce forums that it would be enough to just rename the &#8220;jquery-ui-1.8.7.custom.css&#8221; changing the 1.8.7 to 1.8.6 and that&#8217;s it. I can not really say that I share this opinion, what I can say is, that doing so will result to expected and unexpected problems. I&#8217;m not a jQuery UI expert, but I want my datepicker to be working, just an example.</p>
<p>The correct thing is to upgrade, and thats easy to do.</p>
<p>First, let&#8217;s find the files that need to be changed in the osCommerce file structure. Here they are</p>
<ul>
<li><strong>catalog/ext/jquery/jquery-1.4.2.min.js</strong></li>
<li><strong>catalog/ext/jquery/ui/jquery-ui-1.8.6.min.js</strong></li>
<li>and the folder <strong>catalog/ext/jquery/ui/i18n/</strong></li>
</ul>
<p>I made a picture where you can see how they look on my computer, they are marked with green</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/01/ui_oscommerce_files.jpg"><img class="aligncenter size-large wp-image-692" title="Relevant jQuery ui files in the osCommerce file structure" src="http://multimixer.gr/wp-content/uploads/2011/01/ui_oscommerce_files-540x234.jpg" alt="Relevant jQuery ui files in the osCommerce file structure" width="540" height="234" /></a></p>
<p>The new files we&#8217;ll find in the downloaded folder from jQuery UI. How and where to get this folder is described <a href="http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/" target="_self">here</a>. The files we need are marked with orange in the image below</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/01/ui_ui_files.jpg"><img class="aligncenter size-large wp-image-694" title="Relevant jQuery UI files in the UI folder we download" src="http://multimixer.gr/wp-content/uploads/2011/01/ui_ui_files-540x421.jpg" alt="Relevant jQuery UI files in the UI folder we download" width="540" height="421" /></a></p>
<p>All we need to do now is to replace the green files of osCommerce with the new orange jQuery UI files. First we need to rename file jquery-ui-1.8.7.custom.min.js to be jquery-ui-1.8.7.min.js we just strip the word &#8220;custom&#8221;. No chance to do something wrong here</p>
<p>Last thing is to let our system know that we do use a new jQuery version now. To do this, we need to open file catalog/includes/template_top.php and find following lines</p>
<pre class="brush:xml; first-line:30;">&lt;script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"&gt;&lt;/script&gt;</pre>
<p>All we need to do here is to replace the number 1.4.2 with 1.4.4 and the number 1.8.6 with 1.8.7 so that our lines look like this</p>
<pre class="brush:xml; first-line:30;">&lt;script type="text/javascript" src="ext/jquery/jquery-1.4.4.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.7.min.js"&gt;&lt;/script&gt;</pre>
<p>Of course, also the line No 29 need&#8217;s to be changed, the one that refers to the UI theme to be used, we need to use a version 1.8.7 theme, that&#8217;s finally the reason of the upgrade.</p>
<pre class="brush:xml; first-line:29;">&lt;link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" /&gt;</pre>
<p>The process to do this is described <a href="http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/" target="_self">here</a>, just use 1.8.7 instead of 1.8.6</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://multimixer.gr/06/01/2011/how-to-upgrade-your-jquery-ui-version-in-oscommerce/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to get a new theme for your osCommerce store</title>
		<link>http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/</link>
		<comments>http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 07:14:53 +0000</pubDate>
		<dc:creator>multimixer</dc:creator>
				<category><![CDATA[learn]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[osCommerce v2.3]]></category>

		<guid isPermaLink="false">http://multimixer.gr/?p=572</guid>
		<description><![CDATA[Do you want to change your store's buttons? Nothing more easy than that. Read here how to change the style of your buttons and information boxes and how to get a new color scheme for your store in minutes]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s how the osCommerce theme looks by default in version 2.3.1</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2010/12/theme-redmond.png"><img class="aligncenter size-large wp-image-592" title="the default redmond theme" src="http://multimixer.gr/wp-content/uploads/2010/12/theme-redmond-540x331.png" alt="the default redmond theme" width="540" height="331" /></a></p>
<p>What we want to do is, to change the light blue of the buttons, infobox headings and breadcrumb line (thats the line just under the header). In other words, we&#8217;re going to change the color theme of the store. The whole process won&#8217;t take more than some minutes, let&#8217;s start</p>
<p><strong>1. Choose a theme from &#8220;themeroller&#8221;</strong></p>
<p>Just go to the jquery-ui page and pick a new theme from <a class="wp-oembed" href="http://jqueryui.com/themeroller/" target="_blank">themeroller</a>. You can take one of the ready themes, you can make adjustements to an existing one or even create your own theme.</p>
<p><img class="aligncenter size-large wp-image-575" title="The jquery ui themeroller" src="http://multimixer.gr/wp-content/uploads/2010/12/themeroller1-540x867.png" alt="The jquery ui themeroller" width="540" height="867" /></p>
<p>There are really many themes to choose from. After you are done click &#8220;download&#8221;. You&#8217;ll be transfered to another screen.</p>
<p><img class="aligncenter size-large wp-image-577" title="Download your new theme" src="http://multimixer.gr/wp-content/uploads/2010/12/themeroller2-540x838.png" alt="Download your new theme" width="540" height="838" /></p>
<p>Leave all components checked and click &#8220;download&#8221; again. You&#8217;ll get a complete copy of jquery ui to your computer. Unzip the file and open the folder.  The folder will look like this</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2010/12/themeroller3.jpg"><img class="aligncenter size-large wp-image-578" title="The themeroller folder" src="http://multimixer.gr/wp-content/uploads/2010/12/themeroller3-540x220.jpg" alt="The themeroller folder" width="540" height="220" /></a></p>
<p>We don&#8217;t need all of it&#8217;s contents, because jquery ui is already installed in osCommerce. The part we need is marked with orange in the above image. It&#8217;s named by the name of the theme we choose. Here we need to do one change, to <span style="text-decoration: underline;">rename the file jquery-ui-1.8.6.custom.css to jquery-ui-1.8.6.css</span></p>
<p><strong>2. upload the theme to your server</strong></p>
<p>Use your favorite FTP program to upload the folder &#8220;ui-darkness&#8221; (the folder name depends on the theme you downloaded from themeroller) to following location</p>
<blockquote style="text-align: center;"><p><strong>[catalog]/ext/jquery/ui/</strong></p></blockquote>
<p><strong>3. activate the new theme</strong></p>
<p>Last step is to &#8220;tell&#8221; to our store to use the new theme. To do this we need to go to file [catalog]/includes/template_top.php and change the path to the theme. This path is set in following line</p>
<pre class="brush:xml; first-line:29">&lt;link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" /&gt;</pre>
<p>This we change to</p>
<pre class="brush:xml; first-line:29">&lt;link rel="stylesheet" type="text/css" href="ext/jquery/ui/ui-darkness/jquery-ui-1.8.6.css" /&gt;</pre>
<p>Only thing we do is, to change the path to go to folder &#8220;ui-darkness&#8221; instead of &#8220;redmond&#8221; which is the default theme. You need ofcourse to set the right name, according to the theme you&#8217;re going to use</p>
<p>Lets see how our store looks now</p>
<div id="attachment_593" class="wp-caption aligncenter" style="width: 550px"><a href="http://multimixer.gr/wp-content/uploads/2010/12/theme-ui-darkness.png"><img class="size-large wp-image-593" title="the new ui-darkness theme" src="http://multimixer.gr/wp-content/uploads/2010/12/theme-ui-darkness-540x331.png" alt="" width="540" height="331" /></a><p class="wp-caption-text">the new ui-darkness theme</p></div>
<p>Yes, we changed the background too, that&#8217;s also very easy to do. You can read about here: <a href="http://multimixer.gr/01/12/2010/how-to-set-backgrounds-in-oscommerce-version-2-3-1/">How to change the background of my store</a>.</p>
<p>Update on 6.1.2011: You will notice when downloading a new theme from themeroller, that the file name is not <span style="text-decoration: underline;">jquery-ui-1.8.6.custom.css </span> but<span style="text-decoration: underline;">jquery-ui-1.8.7.custom.css.</span> This is because jQuery Ui updated their version to 1.8.7 Do not just rename the fileback to 1.8.6. Read here <a href="http://multimixer.gr/06/01/2011/how-to-upgrade-your-jquery-ui-version-in-oscommerce/" target="_self">how to upgrade your jquery UI version easily</a></p>
<p>In case you use mini template system, things are more easy, since you don&#8217;t need to modify any file. Mini template system users, please read here about <a href="http://minitemplatesystem.com/create-and-install-your-own-jquery-ui-theme/" target="_blank">how to install a new jQuery UI theme to your template</a></p>
<p>In case you are interested: Here is how I created a <a href="http://multimixer.gr/16/05/2011/making-a-oscommerce-template-all-the-progress-step-by-step/">complete osCommerce template</a> from scratch</p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://multimixer.gr/02/12/2010/how-to-get-a-new-theme-for-your-oscommerce-store/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>
