<?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>MikeCohenMedia.com</title>
	<atom:link href="http://mikecohenmedia.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikecohenmedia.com/blog</link>
	<description>Blog</description>
	<lastBuildDate>Thu, 12 Apr 2012 15:19:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Prestashop Sort Attributes the Easy Way</title>
		<link>http://mikecohenmedia.com/blog/prestashop-sort-attributes-the-easy-way/</link>
		<comments>http://mikecohenmedia.com/blog/prestashop-sort-attributes-the-easy-way/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 06:36:32 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Prestashop Development]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=148</guid>
		<description><![CDATA[Prestashop is a great piece of e-commerce, but one thing I with they would add is the ability to sort attributes in the backend for display on the front end of the web site. As we know, alphabetical order is &#8230; <a href="http://mikecohenmedia.com/blog/prestashop-sort-attributes-the-easy-way/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Prestashop is a great piece of e-commerce, but one thing I with they would add is the ability to sort attributes in the backend for display on the front end of the web site. As we know, alphabetical order is not always the way you might want to display a list of product attributes on a product detail page. For example, a list of sizes like (s,m,l,xl) is best displayed in smaller to larger order, not alphabetical. There are several posts that require editing some of the core classes of Prestashop to sort the attributes by id, basically ordering them in the order they were put in the system.</p>
<p>The method I came up with was to add a function to smarty, the template processor and then sort the array in the product.tpl file. This article is what got me started:</p>
<p>http://www.smarty.net/forums/viewtopic.php?t=1079&#038;postdays=0&#038;postorder=asc&#038;start=0</p>
<p>Here&#8217;s what I did:</p>
<ol>
<li>Created a file called modifier.sortby.php in tools/smarty/plugins/</li>
<li>Place this code in the file
<div id="_mcePaste">&lt;?php</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste"># Modifier: sortby &#8211; allows arrays of named arrays to be sorted by a given field</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">function smarty_modifier_sortby($arrData,$sortfields) {</div>
<div id="_mcePaste">ksort($arrData);</div>
<div id="_mcePaste">return $arrData;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">// You might need this for smarty to load the function, probably not</div>
<div id="_mcePaste">//$smarty-&gt;register_modifier( &#8220;sortby&#8221;, &#8220;smarty_modifier_sortby&#8221; );</div>
<div id="_mcePaste">?&gt;</div>
</li>
<li>Use this foreach loop in your .tpl file &#8211; @sortby:&#8221;key you are sorting by here&#8221;<br />
{foreach from=$group.attributes|@sortby:&#8221;#id_attribute&#8221; key=id_attribute item=group_attribute}</li>
</ol>
<p>Hope this helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/prestashop-sort-attributes-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Ubercart White Screen of Death Problem</title>
		<link>http://mikecohenmedia.com/blog/drupal-ubercart-white-screen-of-death-problem/</link>
		<comments>http://mikecohenmedia.com/blog/drupal-ubercart-white-screen-of-death-problem/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 16:29:23 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=145</guid>
		<description><![CDATA[I nearly went insane trying to solve a problem where adding to cart or doing anything in the cart caused the dreaded White Screen of Death or WSOD. I tried increasing memory limit, checking error logs, to no avail. I &#8230; <a href="http://mikecohenmedia.com/blog/drupal-ubercart-white-screen-of-death-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I nearly went insane trying to solve a problem where adding to cart or doing anything in the cart caused the dreaded White Screen of Death or WSOD. I tried increasing memory limit, checking error logs, to no avail. I narrowed the problem down to the theme I had developed, as Garland didn&#8217;t cause the same problem. For me the solution was super simple. I was editing my theme&#8217;s template.php file in notepad and just saving as the default UTF-8 format. Once I saved as ANSI and uploaded the file, no more WSOD. I have found this to solve a few other problems in other systems as well. Always remember to try this before all the more complex solutions.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/drupal-ubercart-white-screen-of-death-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento URL Mistake No Access to Backend Admin Area</title>
		<link>http://mikecohenmedia.com/blog/magento-url-mistake-no-access-to-backend-admin-area/</link>
		<comments>http://mikecohenmedia.com/blog/magento-url-mistake-no-access-to-backend-admin-area/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 14:51:20 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[base url]]></category>
		<category><![CDATA[break site]]></category>
		<category><![CDATA[E-commerce]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[no access]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=120</guid>
		<description><![CDATA[The urls set in the Magento Admin -&#62; Configuration  -&#62; Web are used to build all the urls to the css and js files, if you make a mistake saving them and they don&#8217;t resolve properly, that means all the references &#8230; <a href="http://mikecohenmedia.com/blog/magento-url-mistake-no-access-to-backend-admin-area/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The urls set in the Magento Admin -&gt; Configuration  -&gt; Web are used to build all the urls to the css and js<br />
files, if you make a mistake saving them and they don&#8217;t resolve properly, that means all the references are off and breaks the site. This means your site won&#8217;t appear or function properly and worse, your admin back end will not function since it depends heavily on js. Without js, you can&#8217;t do anything in the admin, so you can&#8217;t go back in and change back to the old config. Big problem. Here&#8217;s how you solve:</p>
<p>1. Change the config back directly in the db, as of Magento 1.3 the table is core_config_data the SQL used should be something like this, or just use PhpMyAdmin.</p>
<p>UPDATE core_config_data SET value=&#8217;NEW URL&#8217; WHERE value=&#8217;OLD URL&#8217;</p>
<p>Make this change for both the Unsecure Base Url and Secure Base Url</p>
<p>2. Clear the Magento cache &#8211; according to most post on Magento, this solved the problem for most people. Didn&#8217;t for us so there was one additional step that took us a long time to figure out.</p>
<p>3. Magento also has the capability of caching the configuration settings in xml. This file apparently controls how Magento loads config variables, once deleted Magento resorted to using the config values stored in the database.</p>
<p>/app/etc/use_cache.ser</p>
<p>Delete this file, and you should now have your site and admin back to normal. It might be necessary to re-upload the file, not 100% sure about that.</p>
<p>Hope this helps someone save their site and a lot of time. Link to a Magento post on the issue:</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/22420/">http://www.magentocommerce.com/boards/viewthread/22420/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/magento-url-mistake-no-access-to-backend-admin-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Magento Validation</title>
		<link>http://mikecohenmedia.com/blog/changing-magento-validation/</link>
		<comments>http://mikecohenmedia.com/blog/changing-magento-validation/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 14:35:51 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/changing-magento-validation/</guid>
		<description><![CDATA[To change magento checkout validation, you can change the class of the form field to use one of the other validation methods present in js/prototype/validation.js. Just open that file and scroll down to see the methods available. Search fo r &#8230; <a href="http://mikecohenmedia.com/blog/changing-magento-validation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To change magento checkout validation, you can change the class of the form field to use one of the other validation methods present in js/prototype/validation.js. Just open that file and scroll down to see the methods available. Search fo r this Validation.addAllThese and you&#8217;ll see the methods below. Then open up /app/design/frontend/default/YOUR THEME/template/checkout/onepage/billing.html then change the class. For example if the class is class=&#8221;required-entry input-text&#8221; change to class=&#8221;required-entry validate-phoneLax&#8221;. This will now change the validation from simply checking if a value is present to actually checking the format.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/changing-magento-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mystery Space Caused by the Byte Order Mark (BOM)</title>
		<link>http://mikecohenmedia.com/blog/mystery-space-caused-by-the-byte-order-mark-bom/</link>
		<comments>http://mikecohenmedia.com/blog/mystery-space-caused-by-the-byte-order-mark-bom/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:49:11 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BOM]]></category>
		<category><![CDATA[byte order mark]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mystery space]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/mystery-space-caused-by-the-byte-order-mark-bom/</guid>
		<description><![CDATA[This took way too long to figure out, hopefully this will help someone else. If you have a mystery space occurring somewhere in your web site and it is not one of the many CSS bugs out there then the &#8230; <a href="http://mikecohenmedia.com/blog/mystery-space-caused-by-the-byte-order-mark-bom/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This took way too long to figure out, hopefully this will help someone else. If you have a mystery space occurring somewhere in your web site and it is not one of the many CSS bugs out there then the byte order mark might be the culprit. Here&#8217;s a quote taken from the Joomla forums:</p>
<blockquote><p>
Yes, &#8220;ï»¿&#8221; is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.</p>
<p>Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they&#8217;d appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.</p>
<p>The Unicode Consortium&#8217;s FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .
</p></blockquote>
<p>The remedy is to find the offending file, open in notepad, select Save AS, select &#8216;ANSI&#8217; from the &#8216;Encoding&#8217; drop down then re-upload to your site. </p>
<p>To find the problem file, you can probably narrow it down to one of the last files you edited before the problem started occurring. </p>
<p>If not, this shell command can help you find it on the server. Login to your server using SSH. This may or may not be enabled on your hosting account. Please check with your host if you are not sure. If you don&#8217;t know how to connect using SSH, search for Putty which is an easy to use SSH client. Once your are able to login, run this command (type in after the prompt you receive when logging in)</p>
<p>grep -rl $&#8217;\xEF\xBB\xBF&#8217; /home/username/public_html</p>
<p>Where /home/username/public_html is the path to the directory you&#8217;d like to search. You might need to ech o $_SERVER['DOCUMENT_ROOT'] in a php file to find the full machine path to your directory. </p>
<p>Once you enter and run the command, it will display the file(s) that contain the BOM. Save these as described above and re-upload. That should solve your problem. Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/mystery-space-caused-by-the-byte-order-mark-bom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hi Class</title>
		<link>http://mikecohenmedia.com/blog/hi-class/</link>
		<comments>http://mikecohenmedia.com/blog/hi-class/#comments</comments>
		<pubDate>Sun, 03 May 2009 17:38:43 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=110</guid>
		<description><![CDATA[TESTING]]></description>
			<content:encoded><![CDATA[<p>TESTING</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/hi-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing Joomla 1.5 and VirtueMart</title>
		<link>http://mikecohenmedia.com/blog/customizing-joomla-15/</link>
		<comments>http://mikecohenmedia.com/blog/customizing-joomla-15/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 13:15:58 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=106</guid>
		<description><![CDATA[I&#8217;m thinking it might be a good idea to record the changes I&#8217;m making to Joomla 1.5 for posterity. Hopefully I can consult this post when setting up a similar site in Joomla in the future and others can as &#8230; <a href="http://mikecohenmedia.com/blog/customizing-joomla-15/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m thinking it might be a good idea to record the changes I&#8217;m making to Joomla 1.5 for posterity. Hopefully I can consult this post when setting up a similar site in Joomla in the future and others can as well. So here goes.</p>
<p>1. First thing &#8212; installed Joomla, then installed the VirtueMart package. All is right in the universe, install goes well both running fine.</p>
<p>2. Delete all test content from system and all un-necessary menus. Left with topmenu and usermenu. Please note &#8211; top menu is what I consider to be the main menu, some have had the experience of losing their home page. All you have to do is add Home to the menu, indicate it as the front page, then in the Menu Item Manager select it and indicate it as the default. That will then indicate this page as the home page.</p>
<p>3. I like my sites to have a top menu consisting of sections and a left (or right) hand menu that dynamically populates with the categories corresponding to the selected section. To acheive this, I installed the very handy Categoris 1.5 Module, found here <a href="http://extensions.joomla.org/extensions/structure-&amp;-navigation/sections-&amp;-categories/2423/details">http://extensions.joomla.org/extensions/structure-&amp;-navigation/sections-&amp;-categories/2423/details</a>. There are several others like it but from my experimentation this is the only one that auto populates based on selected section. I did edit the helper.php file, as the option to show empty categories didn&#8217;t seem to work, commenting out line 161, which makes sure empty categories show up.</p>
<p>4. Making the VirtueMart module appear when in the products section of the site. I created a menu item on the top menu that points to VirtueMart, when clicked, it takes the user to the VirtueMart part of the site. I only wanted the product categories to show up when in the Products (VirtueMart) section. To get this to work I edited the mod_virtuemart.php file in the mod_virtuemart directory. I simply added the following code to the top of the file, and closed out the if at the end of the file. Basically this excludes the virtuemart code if we are not in the VirtueMart part of the site.</p>
<p>if($option==&#8217;com_virtuemart&#8217;){</p>
<p>5. Enabling Search Engine Friendly URLs &#8211; used this <br />
<a href="http://e-fusionsoft.com/downloads/category/1-extension-specific-plugin.html">http://e-fusionsoft.com/downloads/category/1-extension-specific-plugin.html<br />
</a>to make SEF Urls for Joomla.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/customizing-joomla-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Site Maintenance Overview</title>
		<link>http://mikecohenmedia.com/blog/web-site-maintenance-overview/</link>
		<comments>http://mikecohenmedia.com/blog/web-site-maintenance-overview/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 21:59:33 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Maintenance and Promotion]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=53</guid>
		<description><![CDATA[Web site maintenance is the ongoing process of updating content, design and functionality of a web site. The options for web site maintenance are: DIY &#8211; Do it yourself. You can learn the relevant technologies and software programs that will &#8230; <a href="http://mikecohenmedia.com/blog/web-site-maintenance-overview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Web site maintenance is the ongoing process of updating content, design and functionality of a web site. <span id="more-53"></span>The options for web site maintenance are:</p>
<ul>
<li>DIY &#8211; Do it yourself. You can learn the relevant technologies and software programs that will enable you to update all aspects of your site.</li>
<li>Content Management System &#8211; If your site has some sort of content management functionality you should be able to make most content additions and updates yourself. Design changes and functionality enhancements will probably require a call to your web developer.</li>
<li>Contract with web developer &#8211; Part of your agreement with your web developer might include a monthly or quarterly fee that covers a basic amount of updating of some or all aspects of your site.</li>
<li>Pay per event &#8211; pay your web developer hourly for updates on an as-needed basis. Major functionality upgrades or changes might require a new proposal and contract with a set project rate.</li>
</ul>
<p><strong> </strong></p>
<h3>Content Management Options</h3>
<p>It is possible to manage most content changes on your own, whether you have a static site or a database-driven site.</p>
<ul>
<li>Static site &#8211; a static site means that content changes will have to be entered into the HTML file, meaning you must be familiar with HTML or be able to use a program such as Macromedia Dreamweaver to update content and re-upload the file. Alternatively, <strong>Macromedia Contribute</strong> is a desktop application that allows you to manage web pages in with a much less technical interface than Dreamweaver and is a viable option for managing a small to medium-sized sites, not a good option for larger sites.</li>
<li>Database-driven site &#8211; a database-driven site will have a user-friendly interface that makes adding and updating content easy. This is essential for a large site with many pages.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/web-site-maintenance-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Planning a Web Site Project</title>
		<link>http://mikecohenmedia.com/blog/planning-a-web-site-project/</link>
		<comments>http://mikecohenmedia.com/blog/planning-a-web-site-project/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 21:59:03 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Design/Development]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=36</guid>
		<description><![CDATA[This phase occurs before hiring a designer/developer/company. Before requesting a proposal from a potential designer/developer/company you will need to collect and summarize your ideas about your project. A document like the Project Profiler will help you communicate your goals, ideas &#8230; <a href="http://mikecohenmedia.com/blog/planning-a-web-site-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This phase occurs before hiring a designer/developer/company. Before requesting a proposal from a potential designer/developer/company you will need to collect and summarize your ideas about your project.<span id="more-36"></span> A document like the Project Profiler will help you communicate your goals, ideas and requirements to the designer/developer/company so they can give you a comprehensive and accurate proposal for your site. This information will also be used by the designer/developer/company to plan and execute the project.</p>
<p>In general you should define/provide as much information as you can about the following:</p>
<ul>
<li>Company, Industry Background</li>
<li>Project      Overview, Project Goals</li>
<li>Intended      Audience</li>
<li>Design</li>
<li>Content</li>
<li>Functionality</li>
</ul>
<ul type="disc">
<li>Web Hosting      and E-mail</li>
<li>Maintenance</li>
<li>Promotion</li>
<li><strong>Sites you like and why<br />
</strong>This will give the designer/developer/company a feel for the style and      level of design you expect for your project. It will also communicate      information about audience, content and functionality that may not have      been communicated previously.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/planning-a-web-site-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Site Promotion Overview</title>
		<link>http://mikecohenmedia.com/blog/web-site-promotion-overview/</link>
		<comments>http://mikecohenmedia.com/blog/web-site-promotion-overview/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 21:58:05 +0000</pubDate>
		<dc:creator>Mike Cohen</dc:creator>
				<category><![CDATA[Maintenance and Promotion]]></category>

		<guid isPermaLink="false">http://mikecohenmedia.com/blog/?p=55</guid>
		<description><![CDATA[Web site promotion is the continuing process to promote a web site to attract more visitors to the web site. This process is an ongoing and fluid process and could be a combination of most of the methods listed below. &#8230; <a href="http://mikecohenmedia.com/blog/web-site-promotion-overview/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Web site promotion is the continuing process to promote a web site to attract more visitors to the web site. <span id="more-55"></span>This process is an ongoing and fluid process and could be a combination of most of the methods listed below.</p>
<ul>
<li>Search engine optimization (SEO)</li>
<li>PPC Advertising with Google and/or Overture</li>
<li>Social Media Optimization</li>
<li>Affiliate programs</li>
<li>Shopping Search Engines</li>
<li>E-mail list (self developed or purchased)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mikecohenmedia.com/blog/web-site-promotion-overview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

