<?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>Open Script Solution &#187; module</title>
	<atom:link href="http://www.openscriptsolution.com/tag/module/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Sun, 29 Aug 2010 10:35:20 +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>How to Make Currency Selection Working Properly in BankWire Module of PrestaShop</title>
		<link>http://www.openscriptsolution.com/2010/06/05/how-to-make-currency-selection-working-properly-in-bankwire-module-of-prestashop/</link>
		<comments>http://www.openscriptsolution.com/2010/06/05/how-to-make-currency-selection-working-properly-in-bankwire-module-of-prestashop/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 15:02:35 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[BankWire]]></category>
		<category><![CDATA[currency]]></category>
		<category><![CDATA[mata uang]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[payment]]></category>
		<category><![CDATA[pembayaran]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1205</guid>
		<description><![CDATA[Today I realized that when I switched the currency from the current one to another in BankWire module of PrestaShop, then the value of the money in the new currency did not converted properly. For instant, the current one is $ 20, so I switch it to IDR, then the money become Rp 20 instead [...]]]></description>
			<content:encoded><![CDATA[<p>Today I realized that when I switched the currency from the current one to another in BankWire module of PrestaShop, then the value of the money in the new currency did not converted properly. For instant, the current one is $ 20, so I switch it to IDR, then the money become Rp 20 instead of Rp 183,061. So here is a small modification I made in order to fix this problem. Please note that this modification applied only for the bankwire module that implement the following old code. <span id="more-1205"></span></p>
<p>Open your <strong>/modules/bankwire/payment_execution.tpl</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>37
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #339933;">&lt;</span>select id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;currency_payement&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;currency_payement&quot;</span> onChange<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;showElemFromSelect('currency_payement', 'amount_')&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>37
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #339933;">&lt;</span>select id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;currency_payement&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;currency_payement&quot;</span> onChange<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;setCurrency(this.value)&quot;</span><span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Warning: Do not apply this change if the old code you have differs from the old one above!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/06/05/how-to-make-currency-selection-working-properly-in-bankwire-module-of-prestashop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Parent Menu Selected When Child Menu Was Selected in Blockcategories Module of PrestaShop</title>
		<link>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/</link>
		<comments>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:44:25 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[blockcategories]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu highlighted]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[selected menu]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=909</guid>
		<description><![CDATA[This following modification will make the ability to automatically highlight or select the parent menu when the child menu was selected in blockcategories module of PrestShop. This modification applied to the original modification that created by Marghoob Suleman at the PrestaShop Discussion Forum: [module-modified] categories menu modified. You can see its final result demo in: [...]]]></description>
			<content:encoded><![CDATA[<p>This following modification will make the ability to automatically highlight or select the parent menu when the child menu was selected in <strong>blockcategories</strong> module of <a href="http://www.prestashop.com" target="_blank">PrestShop</a>. This modification applied to the original modification that created by Marghoob Suleman at the PrestaShop Discussion Forum: <a href="http://www.prestashop.com/forums/viewthread/10769/P0/modules___development/modulemodified_categories_menu_modified" target="_blank">[module-modified] categories menu modified</a>. You can see its final result demo in: <a href="http://www.e-fila.com/" title="The Real Indonesian Stamps Source" target="_blank">e-fila.com</a>. If you want to implement this modification, then do not forget to backup your original files. <span id="more-909"></span></p>
<ol>
<li>
Open your <strong>\modules\blockcategories\blockcategories.tpl</strong> file, and replace all of the contents of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$isCustomDhtml</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$module_dir}</span>ddsmoothmenu.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$module_dir}</span>ddsmoothmenu.css&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;stylesheet&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span> media<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;all&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$js_dir}</span>tools/treeManagement.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;!--</span> Block categories module <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;categories_block_left&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;block&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span>l s<span style="color: #339933;">=</span><span style="color: #0000ff;">'Categories'</span> mod<span style="color: #339933;">=</span><span style="color: #0000ff;">'blockcategories'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
  <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$isCustomDhtml</span><span style="color: #009900;">&#125;</span>
  <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;smoothmenu1&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ddsmoothmenu&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$blockCategTree</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>blockCategTree<span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>blockCategTree<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
  <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
  	<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;block_content&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tree {if <span style="color: #006699; font-weight: bold;">$isDhtml</span>}dhtml{/if}&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$blockCategTree</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>blockCategTree<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>blockCategTree<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
						<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
						<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>	
  <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> <span style="color: #339933;">/</span>Block categories module <span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\category-tree-branch.tpl</strong> file, and then replace all of the contents of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>li style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0; &quot;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$last</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;!--</span> Begin of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>	
	<span style="color: #339933;">&lt;</span>a id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu_{<span style="color: #006699; font-weight: bold;">$node</span>.children|@count}&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;padding:5px; padding-right:0;&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$node</span>.link|escape:htmlall:'UTF-8'}&quot;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentCategoryId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentParentId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentRootId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;previousselected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
	title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$node</span>.desc|escape:htmlall:'UTF-8'}&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$node</span><span style="color: #339933;">.</span>name<span style="color: #339933;">|</span>escape<span style="color: #339933;">:</span>htmlall<span style="color: #339933;">:</span><span style="color: #0000ff;">'UTF-8'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> <span style="color: #990000;">End</span> of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>children<span style="color: #339933;">|@</span><span style="color: #990000;">count</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #339933;">&lt;!--</span> Begin of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentCategoryId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentParentId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentRootId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!--</span> <span style="color: #990000;">End</span> of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$node</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>categoryTreeBranch<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>categoryTreeBranch<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$tpl_dir</span><span style="color: #339933;">./</span>category<span style="color: #339933;">-</span>tree<span style="color: #339933;">-</span>branch<span style="color: #339933;">.</span>tpl node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
	        		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$tpl_dir</span><span style="color: #339933;">./</span>category<span style="color: #339933;">-</span>tree<span style="color: #339933;">-</span>branch<span style="color: #339933;">.</span>tpl node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'false'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\ddsmoothmenu.css</strong> file, and replace all of the content of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
modified for prestashop
marghoob suleman - marghoobsuleman.com
*/</span>
.ddsmoothmenu<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">12px</span> Verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#414141</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*background of menu bar (default state)*/</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #3333ff;">:inline-</span>block<span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Top level list items*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Top level menu link items style*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*background of menu items (default state)*/</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#smoothmenu1</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">outside</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*IE6 hack to get sub menu links to behave correctly*/</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #E9E9E9; /*background of menu items (default state)*/</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #B9D2E0; /*background of menu items during onmouseover (hover state)*/</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #6666ff;">.previousselected</span><span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #0093f0; */</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #6666ff;">.selected</span><span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FF7F00</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #0093f0; */</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*1st sub level menu*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*collapse all sub menus to begin with*/</span>
<span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Sub level menu list items (undo style from Top level List Items)*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">list-item</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*All subsequent sub menu levels vertical offset after 1st level sub menu */</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Sub level menu links style */</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span> <span style="color: #933;">13px</span> Verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">178px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*width of sub menus*/</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-top-width</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* ######### CSS classes applied to down and right arrow images  ######### */</span>
&nbsp;
.downarrowclass<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.rightarrowclass<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* ######### CSS for shadow added to sub menus  ######### */</span>
&nbsp;
.ddshadow<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">silver</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.toplevelshadow</span><span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*shadow opacity. Doesn't work in IE*/</span>
opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* end menu css */</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\ddsmoothmenu.js</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>12
13
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:['downarrowclass', 'modules/blockcategories/right.gif', 23], right:['rightarrowclass', 'modules/blockcategories/right.gif']},</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>12
13
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:['downarrowclass', '{$module_dir}right.gif', 23], right:['rightarrowclass', '{$module_dir}right.gif']},</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>75
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>75
76
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					//$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
					$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px', display:'block'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>84
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">						this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:this._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>84
85
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">						//this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:this._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)
						this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px', height:this._dimensions.subulh+'px', display:'block'})</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>89
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">				$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>89
90
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">				//$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
				$targetul.css({display:'none'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>94
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					this.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>94
95
96
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					//this.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)
					//alert(this.$shadow + &quot; &quot; + this.$shadow.id);
					this.$shadow.css({display:'none'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>99
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">	$mainmenu.find(&quot;ul&quot;).css({display:'none', visibility:'visible'})</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>99
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">	$($mainmenu).find(&quot;ul&quot;).css({display:'none', visibility:'visible'});</pre></td></tr></table></div>

</li>
</ol>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>