<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2690609657504527202</id><updated>2024-08-29T12:57:15.413-07:00</updated><category term="Magento Certifications"/><title type='text'>Magento Expert</title><subtitle type='html'>Magento expert is all about finding answers of magento at intermediate and expert level. looking for magento post related to magento optimization ,caching,page speed,magento dataflow, magento-memcache , solr , APC ? then magento expert is place where you may find a post related to it. &#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-829158756790129325</id><published>2022-08-03T04:00:00.005-07:00</published><updated>2022-08-03T04:00:45.249-07:00</updated><title type='text'>How to save Mysql Query Result on Adobe Commerce Cloud Environment</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;pager less -S -X&lt;/div&gt;&lt;div&gt;enter &amp;nbsp;(|)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;|tee &amp;gt;&amp;gt; /app/var/result.txt&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/829158756790129325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2022/08/how-to-save-mysql-query-result-on-adobe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/829158756790129325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/829158756790129325'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2022/08/how-to-save-mysql-query-result-on-adobe.html' title='How to save Mysql Query Result on Adobe Commerce Cloud Environment'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-7926167986096782638</id><published>2013-01-23T12:24:00.001-08:00</published><updated>2013-02-07T02:54:48.448-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento Certifications"/><title type='text'>Cracking Magento Certification</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
 
 
 


&lt;br /&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;Are
you &amp;nbsp;the one who is searching extensively on Google to find
&amp;nbsp;about cracking Magento certification exam or possibly searching
for some cheatsheets, question or reference and google got landed you
to this page ? Oh then may be this page wouldn&#39;t be of any help...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;So
your going eh? I wouldn&#39;t stop you, I know this is kinda adrenaline
rush.. searching on Google to find what you want to find. but if you
really want to find about cracking Magento certification you may like
pause for a moment and read on . by my experience I would strongly
recommend this.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Well
then,You decided to hold your horses ?  Congrats you just saved a lot
of precious time that you would be wasting &amp;nbsp;on searching for
shortcuts on cracking Magento Certifications and now will utilize
that time in Magento study instead.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Okay
Well , I passed Magento Certified Developer Plus last month ahem !
and here is how&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Magento
Certification , Is it tough or piece of cake?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;have
you heard of Einstein&#39;s theory of relativity ? I m sure you&#39;ve heard
of it. but what the hell theory of relativity have to do with Magento
Certifications ? and answer is it follows same rule , the more you
dive into Magento Code easier cracking certification exam is. but
does it mean&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;I
need to be one alive phpdoc for &amp;nbsp;Magento code base ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;This
is question that I found real hard to answer myself when I was
preparing for it. and the answer is you dont need to be . Magento
expects you to have knowledge about its data flows , Structure and
overall architecture. This mean you should be able to understand
Magento&#39;s core features and its structure rather than memorize all
functions, classes and syntax , for this we have already invented
computer isnt it? so focus on logic and overall philosophy of magento
code instead of code itself.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;okay
I know its still ambiguous so here is secret(okay its not but still
as important as it could be) , go to &amp;nbsp;&lt;a href=&quot;http://www.magentocommerce.com/certification/&quot;&gt;Magento
Certification page&lt;/a&gt;&amp;nbsp;and click &amp;nbsp;on resources tab and
download &amp;nbsp;free study guide provided by Magento . consider it as
a most important resource for your study preparations. Okay You have
downloaded it. now&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;How
to make best use of study guideline provided by Magento ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;The
guideline lists all possible modules on which questions would likely
to be asked. and the way I used it for my preparations is to go
through each module by following this steps:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;a.
Open Config.xml and find out what are the observers/events are
written for it go through its implementations and make a note of it.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;b.
Open Models files and find out db interactions, resources, and data
manipulations here make a note what you find important here.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;c.
Open Controllers files and study actions&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;d.
and finally go through blocks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;It
should take around 1 Week or less depending on how much time you are
putting into it for prep to go through all modules listed in
guideline. once you have note of all modules just keep revising it
until you get confident.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;You
may be thinking by now (specially If you have landed to this page
searching for some quick cheatsheets or reference ) that I am no way
sounding different then what other so -called&amp;nbsp;ethical&amp;nbsp;guru
preaching about fair exam practices and all isnt it. okay let me
answer why&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;I
should not search and find some quick reference/questions/cheatsheets
for Magento instead of study ?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Okay
you are a developer and &amp;nbsp;have developed some cool Magento apps.
all you need is some recognition and so you want to go for this
certifications. but studying like school kid eh ? no you dont want to
do it . coz you &quot;know&quot; Magento You rather searching for
some reference that would help you get certification. well lets put
it . If you are searching for some quick reference (&amp;nbsp;like I
did&amp;nbsp;initially&amp;nbsp;when I decided to go for cert.) then what I
realized myself I dont actually &quot;Know&quot; Magento. and this
realization led me to go for reality check and study overall
architecture of Magento so I could proudly say I know Magento.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;So
the answer is there is no quick reference/questions/cheatsheets out
there that could help you get certification and most importantly the
divine feeling that you &quot;Know&quot; Magento. so better bet go
for a reality check and get ready to dive into Magento instead of
searching over web for quick reference.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;please
put your comments about your view on it or if this article help you
anyway getting your Magento Certification.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/7926167986096782638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2013/01/cracking-magento-certification.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/7926167986096782638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/7926167986096782638'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2013/01/cracking-magento-certification.html' title='Cracking Magento Certification'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-8147715563796381901</id><published>2012-09-03T11:46:00.001-07:00</published><updated>2012-09-03T11:46:14.098-07:00</updated><title type='text'>Mass Importing of Product using magento faster way</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I was willing to write on some best practices to mass import product in lillte time . then i come to know&lt;br /&gt;
about &lt;a href=&quot;http://sourceforge.net/projects/magmi/&quot; target=&quot;_blank&quot;&gt;magmi&lt;/a&gt; and i got second thought why not just reveal magento&#39;s best kept secret of mass import&lt;br /&gt;
&lt;br /&gt;
so here you go download this from http://sourceforge.net/projects/magmi/ &lt;br /&gt;
the setup and usage is fairly easy and straight forward.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/8147715563796381901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2012/09/mass-importing-of-product-using-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8147715563796381901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8147715563796381901'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2012/09/mass-importing-of-product-using-magento.html' title='Mass Importing of Product using magento faster way'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-6475977284718596696</id><published>2012-08-09T11:48:00.001-07:00</published><updated>2012-08-09T11:48:11.701-07:00</updated><title type='text'>adding link to magento top menu using layout update</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Add link to Magento Top Menu using Layout XML update&lt;br /&gt;
in your custom module&#39;s &amp;nbsp;layout.xml default handle add this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml geshifilter-xml&quot; style=&quot;background-color: whitesmoke; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.148438); color: #444444; font-size: 12px; line-height: 1.3; padding: 0px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;      &amp;lt;reference&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;&quot;root&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
            &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;reference&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;&quot;top.links&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;method&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;&quot;addLink&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;translate&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;&quot;label title&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;label&amp;gt;&lt;/span&gt;&lt;/span&gt;About Us&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;url&amp;gt;&lt;/span&gt;&lt;/span&gt;about&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;/span&gt;  &lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;&amp;lt;!-- can use full url also --&amp;gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;title&amp;gt;&lt;/span&gt;&lt;/span&gt;About Us&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;prepare&amp;gt;&lt;/span&gt;&lt;/span&gt;true&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/prepare&amp;gt;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: grey; font-style: italic;&quot;&gt;&amp;lt;!-- set true if adding base url param --&amp;gt;&lt;/span&gt;
                    &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;urlParams&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;helper&lt;/span&gt;=&lt;span style=&quot;color: red;&quot;&gt;&quot;core/url/getHomeUrl&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
                &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/action&amp;gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;           &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/reference&amp;gt;&lt;/span&gt;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;&amp;lt;/reference&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/6475977284718596696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2012/08/adding-link-to-magento-top-menu-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6475977284718596696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6475977284718596696'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2012/08/adding-link-to-magento-top-menu-using.html' title='adding link to magento top menu using layout update'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-4406744479871329644</id><published>2012-08-09T11:30:00.004-07:00</published><updated>2012-08-09T11:30:59.338-07:00</updated><title type='text'>Using IF-ELSE OR CASE-WHEN  in Magento Collection - Expression based field  by addExpressionAttributeToSelect</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Using IF-ELSE OR CASE-WHEN &amp;nbsp;in Magento Collection - Expression based&amp;nbsp;temporary&amp;nbsp;column field &amp;nbsp;by addExpressionAttributeToSelect&lt;br /&gt;
&lt;br /&gt;
Magento&amp;nbsp;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;addExpressionAttributeToSelect &amp;nbsp;&lt;/span&gt;method can be used to create temporary column in&lt;br /&gt;
collections&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;$_collection&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;Mage&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;getResourceModel&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;&#39;sales/order_collection&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;)&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;addExpressionAttributeToSelect&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;&#39;your_temp_column&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;&#39;CASE order_id WHEN 1 THEN one ELSE TWO END &#39;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #efeff4; color: #007700; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
on printing sql query using getselect&lt;br /&gt;
&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;echo $_collection-&amp;gt;getSelect() ;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;the magento will create query something like this &amp;nbsp;SELECT (&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;CASE order_id WHEN 1 THEN one ELSE TWO END&lt;/span&gt;) AS&amp;nbsp;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;your_temp_column&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The temproary column can be used for sorting and filtering also , please note for filtering&lt;br /&gt;
you need to use &#39;having&#39; &amp;nbsp;instead of builtin addAttributeToFilter method.&lt;br /&gt;
&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;$_collection-&amp;gt;getSelect()-&amp;gt;having(&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #dd0000; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;your_temp_column = &quot;one&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;&#39;);&lt;/span&gt;&lt;span style=&quot;background-color: #efeff4; color: #0000bb; font-family: monospace; font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
hope this helps&lt;br /&gt;
&lt;span style=&quot;color: #dd0000; font-family: monospace;&quot;&gt;&lt;span style=&quot;font-size: 11px; line-height: 18.600000381469727px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/4406744479871329644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2012/08/using-if-else-or-case-when-in-magento.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/4406744479871329644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/4406744479871329644'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2012/08/using-if-else-or-case-when-in-magento.html' title='Using IF-ELSE OR CASE-WHEN  in Magento Collection - Expression based field  by addExpressionAttributeToSelect'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-6206764986938074764</id><published>2010-12-10T22:07:00.000-08:00</published><updated>2010-12-10T22:12:20.719-08:00</updated><title type='text'>Adding TInyMCE Editor in Magento Custom Module</title><content type='html'>I&#39;ve created an custom module from module creator but i couldnot displayed tinymce wysiwyg editor in admin page ?&lt;br /&gt;&lt;br /&gt;though modulecreator guys has added default field of &quot;content&quot; for editor:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; $fieldset-&gt;addField(&#39;contentdesc&#39;, &#39;editor&#39;, array(&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;name&#39;      =&gt; &#39;contentdesc&#39;,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;label&#39;     =&gt; Mage::helper(&#39;getthelooks&#39;)-&gt;__(&#39;Description&#39;),&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;title&#39;     =&gt; Mage::helper(&#39;getthelooks&#39;)-&gt;__(&#39;Description&#39;),&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;style&#39;     =&gt; &#39;width:500px; height:300px;&#39;,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;config&#39; =&gt; Mage::getSingleton(&#39;cms/wysiwyg_config&#39;)-&gt;getConfig(), &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;wysiwyg&#39;   =&gt; true,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;          &#39;required&#39;  =&gt; true,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;      ));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;but even i change wysiwyg to true it didnt worked. module creator has forgot that to enable wysiwyg we also needed js for that&lt;br /&gt;&lt;br /&gt;so here is complete simple layout xml file :&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;?xml version=&quot;1.0&quot;?&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;layout version=&quot;0.1.0&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;default&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;reference name=&quot;head&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;setCanLoadExtJs&quot;&gt;&lt;flag&gt;1&lt;/flag&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;tiny_mce/tiny_mce.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/variables.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/variables.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/wysiwyg/widget.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;lib/flex.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;lib/FABridge.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/wysiwyg/tiny_mce/setup.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/flexuploader.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;mage/adminhtml/browser.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addJs&quot;&gt;&lt;script&gt;prototype/window.js&lt;/script&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addItem&quot;&gt;&lt;type&gt;js_css&lt;/type&gt;&lt;name&gt;prototype/windows/themes/default.css&lt;/name&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;action method=&quot;addItem&quot;&gt;&lt;type&gt;js_css&lt;/type&gt;&lt;name&gt;prototype/windows/themes/magento.css&lt;/name&gt;&lt;/action&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/reference&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/default&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    &lt;getthelooks_adminhtml_getthelooks_index&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;        &lt;reference name=&quot;content&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;            &lt;block type=&quot;getthelooks/adminhtml_getthelooks&quot; name=&quot;getthelooks&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;        &lt;/reference&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    &lt;/getthelooks_adminhtml_getthelooks_index&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/layout&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;change &lt;span style=&quot;font-weight: bold;&quot;&gt;getthelooks&lt;/span&gt; to your custom module name and enjoy!</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/6206764986938074764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/adding-tinymce-editor-in-magento-custom.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6206764986938074764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6206764986938074764'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/adding-tinymce-editor-in-magento-custom.html' title='Adding TInyMCE Editor in Magento Custom Module'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-5474145766666271407</id><published>2010-12-10T03:56:00.001-08:00</published><updated>2010-12-10T03:56:54.513-08:00</updated><title type='text'>Product grid Magento</title><content type='html'>$this-&gt;getLayout()-&gt;createBlock(&#39;adminhtml/catalog_product_grid&#39;, &#39;product.grid&#39;)-&gt;toHtml()</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/5474145766666271407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/product-grid-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/5474145766666271407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/5474145766666271407'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/product-grid-magento.html' title='Product grid Magento'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-1237275987053083776</id><published>2010-12-10T01:55:00.000-08:00</published><updated>2010-12-10T01:56:10.285-08:00</updated><title type='text'>GET ATTRIBUTE VALUE MAGENTO</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;if($_product-&gt;getResource()-&gt;getAttribute(&#39;webexcusive&#39;)-&gt;getFrontend()-&gt;getValue($_product) == &#39;Yes&#39;) {&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/1237275987053083776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/get-attribute-value-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/1237275987053083776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/1237275987053083776'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/get-attribute-value-magento.html' title='GET ATTRIBUTE VALUE MAGENTO'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-6952025008124580552</id><published>2010-12-07T02:48:00.001-08:00</published><updated>2010-12-07T02:49:04.524-08:00</updated><title type='text'>Magento Print your Static BLOCK</title><content type='html'>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock(&#39;cms/block&#39;)-&gt;setBlockId(&#39;BLOCK IDENTIFIER&#39;)-&gt;toHtml() ?&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/6952025008124580552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/magento-print-your-static-block.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6952025008124580552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/6952025008124580552'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/magento-print-your-static-block.html' title='Magento Print your Static BLOCK'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-1096086597871975580</id><published>2010-12-03T03:22:00.001-08:00</published><updated>2010-12-03T03:23:42.784-08:00</updated><title type='text'>static block in categories view magento</title><content type='html'>Display Any static Block  of magento&lt;br /&gt;&lt;br /&gt;$this-&gt;getLayout()-&gt;createBlock(&#39;cms/block&#39;)-&gt;setBlockId(&#39;YOUR BLOCK NAME&#39;)-&gt;toHtml()</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/1096086597871975580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/static-block-in-categories-view-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/1096086597871975580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/1096086597871975580'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/static-block-in-categories-view-magento.html' title='static block in categories view magento'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-7740903704922318967</id><published>2010-12-03T01:23:00.000-08:00</published><updated>2010-12-03T01:24:29.136-08:00</updated><title type='text'>categories view and product listin after particular cat level with quickview product details</title><content type='html'>&lt;script type=&quot;text/javascript&quot; src=&quot;&quot;&gt;getSkinUrl(&#39;js&#39;) ?&gt;/jquery.min.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;&quot;&gt;getSkinUrl(&#39;js&#39;) ?&gt;/jquery.easing.1.3.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;&quot;&gt;getSkinUrl(&#39;js&#39;) ?&gt;/sexylightbox.v2.3.jquery.min.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;$(document).ready(function(){&lt;br /&gt;  SexyLightbox.initialize({color:&#39;black&#39;, dir: &#39;&lt;?php echo $this-&gt;getSkinUrl(&#39;images&#39;) ?&gt;/sexyimages&#39;});&lt;br /&gt;});&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;#quickviewer&lt;br /&gt;{&lt;br /&gt;    width:600px; float:left;&lt;br /&gt;    padding-left:50px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.view, .product&lt;br /&gt;{&lt;br /&gt;    width:518px; float:left; padding-bottom:10px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.proimg&lt;br /&gt;{&lt;br /&gt;    width:115px; float:left;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.prodesc&lt;br /&gt;{&lt;br /&gt;    width:270px; float:right;&lt;br /&gt;}&lt;br /&gt;.divClear {&lt;br /&gt;    clear:both;&lt;br /&gt;    }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;    $_helper    = $this-&gt;helper(&#39;catalog/output&#39;);&lt;br /&gt;    $_category  = $this-&gt;getCurrentCategory();&lt;br /&gt;    $cat = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($_category-&gt;getId());&lt;br /&gt;    $subcats = $cat-&gt;getChildren();  &lt;br /&gt;    $subcat= explode(&#39;,&#39;,$subcats);&lt;br /&gt;    $_columnCount=3;&lt;br /&gt;    $_collectionSize = count($subcat);&lt;br /&gt;   &lt;br /&gt;    $catlevel=$_category-&gt;getLevel();&lt;br /&gt;     // $_category-&gt;setDisplayMode(&#39;PAGE&#39;);&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    if($subcats!=&quot;&quot; &amp;amp;&amp;amp; $catlevel&lt;4){&gt;&lt;br /&gt;&lt;br /&gt;    &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;width: 710px;&quot; valign=&quot;top&quot;&gt;&lt;br /&gt;      &lt;tbody&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;img height=&quot;10&quot; alt=&quot;elf Cosmetics&quot; src=&quot;http://content.eyeslipsface.com/images/spacer.gif&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;    &lt;?php foreach($subcat as $subCatid)&lt;br /&gt;    {&lt;br /&gt;        $_subcategory = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($subCatid);&lt;br /&gt;        if($_subcategory-&gt;getIsActive())&lt;br /&gt;        {   &lt;br /&gt;            $caturl     = $_subcategory-&gt;getURL();&lt;br /&gt;            $this_current_category = Mage::registry(&#39;current_category&#39;);&lt;br /&gt;            $parentCategory = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($_category-&gt;getParentId());&lt;br /&gt;            $products = Mage::getResourceModel(&#39;catalog/product_collection&#39;)-&gt;addCategoryFilter($_subcategory)-&gt;addAttributeToSelect(&#39;*&#39;);&lt;br /&gt;        ?&gt;&lt;br /&gt;            &lt;?php if ($i++%$_columnCount==0): ?&gt;&lt;br /&gt;            &lt;tr&gt;&lt;br /&gt;            &lt;?php endif ?&gt;&lt;br /&gt;                       &lt;br /&gt;                &lt;td class=&quot;deptList_Main&quot; style=&quot;padding-top:25px;&quot;&gt;&lt;br /&gt;                &lt;? if($_subcategory-&gt;getImageUrl()):?&gt;&lt;br /&gt;                &lt;a href=&quot;&quot;&gt;&quot; title=&quot;&lt;?php echo $_subcategory-&gt;getName(); ?&gt;&quot;&gt;&lt;img src=&quot;&quot; /&gt;getImageUrl()?&gt;&quot; width=&quot;193&quot; height=&quot;129&quot;&gt;&lt;/a&gt;&lt;br /&gt;                &lt;? else: ?&gt;&lt;br /&gt;                &lt;a href=&quot;&quot;&gt;&quot; title=&quot;&lt;? echo $_subcategory-&gt;getName(); ?&gt;&quot;&gt;&lt;img src=&quot;&quot; /&gt;/skin/frontend/base/default/images/catalog/product/placeholder/small_image.jpg&quot;&gt;&lt;/a&gt;&lt;br /&gt;                &lt;? endif; ?&gt;&lt;br /&gt;                &lt;/a&gt;&lt;div class=&quot;dept_list_listing1&quot;&gt;&lt;a title=&quot;eyeshadow&quot; href=&quot;&quot;&gt;&quot; style=&quot;text-transform:lowercase;&quot;&gt;&lt;? echo $_subcategory-&gt;getName(); ?&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;                &lt;div class=&quot;dept_list_listing2&quot;&gt;&lt;br /&gt;                &lt;?php&lt;br /&gt;                $subcats1 = $_subcategory-&gt;getChildren();  &lt;br /&gt;                $subcat1= explode(&#39;,&#39;,$subcats1);&lt;br /&gt;                if($subcats1!=&quot;&quot;){&lt;br /&gt;                    foreach($subcat1 as $subCatid1) {&lt;br /&gt;                    $_subcategory1 = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($subCatid1);&lt;br /&gt;                ?&gt;&lt;br /&gt;                        &lt;a title=&quot;eyeshadow&quot; class=&quot;deptNameSub&quot; href=&quot;&quot;&gt;getURL()?&gt;&quot;&gt;&lt;?php echo $_subcategory1-&gt;getName()?&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;                   &lt;br /&gt;                &lt;?php } } ?&gt;&lt;br /&gt;                &lt;/div&gt;&lt;br /&gt;                &lt;/td&gt;&lt;br /&gt;                                       &lt;br /&gt;                   &lt;br /&gt;        &lt;?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?&gt;&lt;br /&gt;            &lt;/tr&gt;&lt;br /&gt;        &lt;?php endif ?&gt;&lt;br /&gt;        &lt;?php    &lt;br /&gt;        }&lt;br /&gt;    }   &lt;br /&gt;?&gt;&lt;br /&gt;     &lt;/tbody&gt;&lt;br /&gt;   &lt;/table&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{  //product display&lt;br /&gt;&lt;br /&gt;    $cat = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($_category-&gt;getId());&lt;br /&gt;    $subcats = $cat-&gt;getChildren();  &lt;br /&gt;    $subcat= explode(&#39;,&#39;,$subcats);&lt;br /&gt;    foreach($subcat as $subCatid){&lt;br /&gt;        $_subcategory = Mage::getModel(&#39;catalog/category&#39;)-&gt;load($subCatid);&lt;br /&gt;        if($_subcategory-&gt;getIsActive())&lt;br /&gt;        {&lt;br /&gt;        //Mage::register(&#39;current_category&#39;, $_subcategory);&lt;br /&gt;        echo &#39;&lt;div class=&quot;pnkTitleTxt&quot; style=&quot;border-top: 1px solid rgb(102, 102, 102);&quot;&gt;&#39;. $_subcategory-&gt;getName().&#39;&lt;/div&gt;&#39;;&lt;br /&gt;         $collection = $_subcategory-&gt;getProductCollection();&lt;br /&gt;        &lt;br /&gt;         $products = Mage::getResourceModel(&#39;catalog/product_collection&#39;)-&gt;addCategoryFilter($_subcategory)-&gt;addAttributeToFilter(&#39;visibility&#39;, 4)-&gt;addAttributeToSelect(&#39;*&#39;);&lt;br /&gt;         $products-&gt;getSelect()-&gt;order(new Zend_Db_Expr(&#39;RAND()&#39;))-&gt;limit(3);&lt;br /&gt;         $products-&gt;load();&lt;br /&gt;         $_product = null;&lt;br /&gt;       &lt;br /&gt;        ////////////////////////////////////////////////&lt;br /&gt;        ?&gt;&lt;br /&gt;        &lt;?php if(!$collection-&gt;count()): ?&gt;&lt;br /&gt;        &lt;p class=&quot;note-msg&quot;&gt;&lt;?php echo $this-&gt;__(&#39;There are no products matching the selection.&#39;) ?&gt;&lt;/p&gt;&lt;br /&gt;        &lt;?php else: ?&gt;&lt;br /&gt;                &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;width: 710px;&quot; valign=&quot;top&quot;&gt;&lt;br /&gt;                &lt;tbody&gt;&lt;br /&gt;                &lt;tr&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;img height=&quot;10&quot; alt=&quot;elf Cosmetics&quot; src=&quot;http://content.eyeslipsface.com/images/spacer.gif&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;                &lt;?php $_collectionSize = $collection-&gt;count() ?&gt;&lt;br /&gt;                &lt;?php $_columnCount = 3; ?&gt;&lt;br /&gt;                &lt;?php $i=0; foreach ($products as $_product): ?&gt;&lt;br /&gt;                &lt;?php if ($i++%$_columnCount==0): ?&gt;&lt;br /&gt;                &lt;tr&gt;&lt;br /&gt;                &lt;?php endif ?&gt;&lt;br /&gt;                &lt;td onmouseout=&quot;&quot;&gt;getId()?&gt;);&quot; onmouseover=&quot;show_sp_button(&lt;?=$_product-&gt;getId()?&gt;);&quot; class=&quot;depttitle dept_box&quot;&gt;&lt;br /&gt;                &lt;div class=&quot;dept_list_div&quot;&gt;&lt;br /&gt;                &lt;div class=&quot;dept_list_img_div&quot;&gt;&lt;br /&gt;                &lt;a href=&quot;&quot;&gt;getProductUrl() ?&gt;&quot; title=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#39;small_image&#39;), null, true) ?&gt;&quot; class=&quot;product-image&quot;&gt;&lt;img src=&quot;&quot; /&gt;init($_product, &#39;small_image&#39;)-&gt;resize(193); ?&gt;&quot; width=&quot;193&quot; height=&quot;129&quot; alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#39;small_image&#39;), null, true) ?&gt;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;                &lt;/div&gt;&lt;br /&gt;                &lt;div class=&quot;dept_list_txt_div&quot;&gt;&lt;br /&gt;                &lt;a title=&quot;liquid eyeshadow&quot; class=&quot;dept_title&quot; href=&quot;&quot;&gt;getProductUrl() ?&gt;&quot;&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), &#39;name&#39;) ?&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;                &lt;a title=&quot;liquid eyeshadow&quot; class=&quot;dept_price&quot; href=&quot;&quot;&gt;getProductUrl() ?&gt;&quot;&gt;&lt;?php echo $this-&gt;getPriceHtml($_product, true) ?&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;                &lt;/div&gt;&lt;br /&gt;                &lt;div id=&quot;dept_reviews&quot;&gt;&lt;br /&gt;                &lt;?php echo $this-&gt;getReviewsSummaryHtml($_product, &#39;short&#39;) ?&gt;&lt;br /&gt;                &lt;/div&gt;&lt;br /&gt;                &lt;div onmouseout=&quot;&quot;&gt;getId()?&gt;);&quot; onmouseover=&quot;show_sp_button(&lt;?=$_product-&gt;getId()?&gt;);&quot; class=&quot;dept_list_sp_div&quot; name=&quot;SP_&lt;?=$_product-&gt;getId()?&gt;&quot; id=&quot;SP_&lt;?=$_product-&gt;getId()?&gt;&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;br /&gt;                &lt;table border=&quot;0&quot; class=&quot;sp_button_table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;                &lt;a href=&quot;&quot; inlineid=&quot;product_detail_&lt;?=&quot;$_product-&quot;&gt;getId()?&gt;&amp;amp;height=450&amp;amp;width=710&quot; rel=&quot;sexylightbox&quot;&gt; &lt;img alt=&quot;sneak peek&quot; class=&quot;link&quot; src=&quot;http://content.eyeslipsface.com/images/quick_view.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;                &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;                &lt;/div&gt;&lt;br /&gt;                &lt;br /&gt;&lt;br /&gt;                &lt;/td&gt;   &lt;br /&gt;                &lt;?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?&gt;&lt;br /&gt;                &lt;/tr&gt;&lt;br /&gt;                &lt;?php endif ?&gt;&lt;br /&gt;               &lt;br /&gt;                &lt;?php endforeach ?&gt;&lt;br /&gt;                &lt;/tbody&gt;&lt;br /&gt;                &lt;/table&gt;&lt;br /&gt;        &lt;?php endif;?&gt;&lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;    &lt;?php&lt;br /&gt;    $script=&#39;&lt;script type=&quot;text/javascript&quot;&gt;&#39;;&lt;br /&gt;    $script.=&#39; var ar = new Array(); &#39;;&lt;br /&gt;    $script.=&#39; var arp = new Array(); &#39;;&lt;br /&gt;    ?&gt;&lt;br /&gt;    &lt;?php $i=0; foreach ($products as $_product): ?&gt;&lt;br /&gt;        &lt;?php&lt;br /&gt;            // First check if the product is configurable&lt;br /&gt;            if($_product-&gt;isConfigurable()){&lt;br /&gt;                        // get the necessary model&lt;br /&gt;                        $optionsarr=array();&lt;br /&gt;                        Mage::app(&#39;base&#39;);&lt;br /&gt;                        $_helper1 = Mage::getModel(&#39;catalog/product_type_configurable&#39;);&lt;br /&gt;                        $optionsarr = $_helper1-&gt;getConfigurableAttributesAsArray($_product);&lt;br /&gt;                        $optionsarr=$optionsarr[0];&lt;br /&gt;                        $childProducts = $_helper1-&gt;getUsedProducts(null,$_product);&lt;br /&gt;                       &lt;br /&gt;                        foreach($childProducts as $cp){&lt;br /&gt;                       &lt;br /&gt;                        $sel = $cp-&gt;getResource()-&gt;getAttribute(&#39;color&#39;)-&gt;getFrontend()-&gt;getValue($cp);&lt;br /&gt;                        $selectedattrb_prod_img[$sel]=Mage::getSingleton(&#39;catalog/product_media_config&#39;)-&gt;getBaseMediaUrl().$cp-&gt;getImage();&lt;br /&gt;                        $selectedattrb_prod_price[$sel]=Mage::helper(&#39;core&#39;)-&gt;currency(number_format($cp-&gt;price,2));&lt;br /&gt;                        $script.=&quot; ar[&#39;&quot;.$sel.&quot;&#39;] = &#39;&quot;.Mage::getSingleton(&#39;catalog/product_media_config&#39;)-&gt;getBaseMediaUrl().$cp-&gt;getImage().&quot;&#39;; &quot;;&lt;br /&gt;                        $script.=&quot; arp[&#39;&quot;.$sel.&quot;&#39;] = &#39;&quot;.Mage::helper(&#39;core&#39;)-&gt;currency(number_format($cp-&gt;price,2)).&quot;&#39;; &quot;;&lt;br /&gt;                       &lt;br /&gt;                        }&lt;br /&gt;                       &lt;br /&gt;                        $defaultattrb=$optionsarr[&#39;values&#39;][0][&#39;label&#39;];       &lt;br /&gt;                        $default_img=$selectedattrb_prod_img[$defaultattrb];&lt;br /&gt;                        $default_price=$selectedattrb_prod_price[$defaultattrb];&lt;br /&gt;            }&lt;br /&gt;       &lt;br /&gt;        ?&gt;&lt;br /&gt;        &lt;div class=&quot;dept_list_div&quot; id=&quot;&quot;&gt;getId()?&gt;&quot; style=&quot;display:none;float:left&quot;&gt;&lt;br /&gt;                              &lt;form action=&quot;&quot;&gt;helper(&#39;checkout/cart&#39;)-&gt;getAddUrl($_product, $additional) ?&gt;&quot; method=&quot;post&quot; name=&quot;product_addtocart_form_&lt;?=$_product-&gt;getId()?&gt;&quot; id=&quot;product_addtocart_form_&lt;?=$_product-&gt;getId()?&gt;&quot; &lt;?php if($_product-&gt;getOptions()): ?&gt; enctype=&quot;multipart/form-data&quot;&lt;?php endif; ?&gt;&gt;&lt;br /&gt;                            &lt;div id=&quot;quickviewer&quot;&gt;&lt;br /&gt;                                &lt;div class=&quot;no-display&quot;&gt;&lt;br /&gt;                                    &lt;input type=&quot;hidden&quot; name=&quot;product&quot; value=&quot;&quot;&gt;getId() ?&gt;&quot; /&gt;&lt;br /&gt;                                    &lt;input type=&quot;hidden&quot; name=&quot;related_product&quot; id=&quot;related-products-field&quot; value=&quot;&quot;&gt;&lt;br /&gt;                                &lt;/div&gt;&lt;br /&gt;                                &lt;div class=&quot;view&quot; id=&quot;quickview&quot; style=&quot;padding-bottom:55px;&quot;&gt;Quick view&lt;/div&gt;&lt;br /&gt;                                &lt;div class=&quot;product&quot;&gt;&lt;br /&gt;                                    &lt;div class=&quot;proimg&quot; id=&quot;&quot;&gt;getId()?&gt;&quot;&gt;&lt;img id=&quot;&quot; /&gt;getId()?&gt;&quot; src=&quot;&lt;?php echo $default_img; ?&gt;&quot;  alt=&quot;&lt;?php echo $this-&gt;stripTags($this-&gt;getImageLabel($_product, &#39;small_image&#39;), null, true) ?&gt;&quot; /&gt;&lt;/div&gt;&lt;br /&gt;                                    &lt;div class=&quot;prodesc&quot;&gt;&lt;br /&gt;                                    &lt;h3&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, $_product-&gt;getName(), &#39;name&#39;) ?&gt;&lt;/h3&gt;&lt;br /&gt;                                    &lt;p class=&quot;navWhite QL_bar&quot; style=&quot;font-size:12px;font-weight:bold;color:#000000&quot;&gt;Add To Cart&lt;/p&gt;&lt;br /&gt;                                    &lt;div&gt;&lt;br /&gt;                                            &lt;?php  if($_product-&gt;isConfigurable()){ ?&gt;       &lt;br /&gt;                                            &lt;p&gt;&lt;br /&gt;                                                &lt;?=$optionsarr[&#39;frontend_label&#39;]?&gt;:&lt;br /&gt;                                               &lt;br /&gt;                                                &lt;select class=&quot;required-entry super-attribute-select&quot; id=&quot;&quot;&gt;&quot; name=&quot;super_attribute[&lt;?=$optionsarr[&#39;attribute_id&#39;]?&gt;]&quot; onchange=&quot;changemimg(this,&#39;&lt;?=$_product-&gt;getId()?&gt;&#39;)&quot;&gt;&lt;br /&gt;                                               &lt;br /&gt;                                                &lt;?php foreach($optionsarr[&#39;values&#39;] as $key=&gt;$_attributes):?&gt;&lt;br /&gt;                                                &lt;option value=&quot;&quot;&gt;&quot;&gt;&lt;?=$_attributes[&#39;label&#39;]?&gt;&lt;/option&gt;&lt;br /&gt;                                                &lt;?php endforeach;?&gt;&lt;br /&gt;                                                &lt;/select&gt;&lt;br /&gt;                                               &lt;br /&gt;                                            &lt;/p&gt;&lt;br /&gt;                                            &lt;?php } ?&gt;&lt;br /&gt;                                            &lt;p&gt;&lt;br /&gt;                                                Price:&lt;span id=&quot;&quot;&gt;getId()?&gt;&quot;&gt;&lt;?php echo $default_price; ?&gt;&lt;/span&gt;&lt;br /&gt;                                            &lt;/p&gt;&lt;br /&gt;                                            &lt;?php if(!$_product-&gt;isGrouped()): ?&gt;&lt;br /&gt;                                            &lt;p&gt;&lt;br /&gt;                                                Qty:&lt;input type=&quot;text&quot; class=&quot;input-text qty&quot; title=&quot;Qty&quot; value=&quot;1&quot; maxlength=&quot;12&quot; id=&quot;qty&quot; name=&quot;qty&quot;&gt;&lt;br /&gt;                                            &lt;/p&gt;&lt;br /&gt;                                            &lt;?php endif; ?&gt;&lt;br /&gt;                                            &lt;p&gt;&lt;br /&gt;                                                &lt;div style=&quot;float:left&quot;&gt;&lt;br /&gt;                                                &lt;input type=&quot;image&quot; class=&quot;button btn-cart&quot; onclick=&quot;&quot;&gt;getId()?&gt;.submit()&quot; name=&quot;addtocart&quot; alt=&quot;Liquid Eyeshadow&quot; src=&quot;http://content.eyeslipsface.com/images/add_to_bag.jpg&quot; style=&quot;border:none;&quot;&gt;&lt;br /&gt;                                                &lt;/div&gt;&lt;br /&gt;                                            &lt;/p&gt;&lt;br /&gt;                                        &lt;/div&gt;&lt;br /&gt;                               &lt;br /&gt;                                    &lt;p class=&quot;navWhite QL_bar&quot; style=&quot;font-size:12px;font-weight:bold;color:#000000&quot;&gt;Description&lt;/p&gt;&lt;br /&gt;                                    &lt;p class=&quot;divClear&quot;&gt;&lt;?php echo $_helper-&gt;productAttribute($_product, substr(nl2br($_product-&gt;getShortDescription()),0,150), &#39;short_description&#39;) ?&gt;&lt;/p&gt;&lt;br /&gt;                                   &lt;br /&gt;                                    &lt;/div&gt;&lt;br /&gt;                                &lt;/div&gt;&lt;br /&gt;                            &lt;/div&gt;&lt;br /&gt;                         &lt;/form&gt;&lt;br /&gt;                        &lt;/div&gt;&lt;br /&gt;        &lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;        //&lt;![CDATA[&lt;br /&gt;        var productAddToCartForm_&lt;?=$_product-&gt;getId()?&gt; = new VarienForm(&#39;product_addtocart_form_&lt;?=$_product-&gt;getId()?&gt;&#39;);&lt;br /&gt;        productAddToCartForm_&lt;?=$_product-&gt;getId()?&gt;.submit = function(){&lt;br /&gt;        if (this.validator.validate()) {&lt;br /&gt;        this.form.submit();&lt;br /&gt;        }&lt;br /&gt;        }.bind(productAddToCartForm_&lt;?=$_product-&gt;getId()?&gt;);&lt;br /&gt;        //]]&gt;&lt;br /&gt;       &lt;br /&gt;        &lt;/script&gt;       &lt;br /&gt;       &lt;br /&gt;    &lt;?php endforeach ?&gt;&lt;br /&gt;       &lt;br /&gt;        &lt;?&lt;br /&gt;        ////////////////////////////////////////////////&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;?&gt;&lt;br /&gt;   &lt;br /&gt;        &lt;?php&lt;br /&gt;        $script.=&quot;&lt;/script&gt;&quot;;&lt;br /&gt;        echo $script;&lt;br /&gt;        ?&gt;&lt;br /&gt;    &lt;script type=&quot;text/javascript&quot;&gt;&lt;br /&gt;        function changemimg(selobj,pid){&lt;br /&gt;        var imgid=&quot;img_&quot;+pid;&lt;br /&gt;        var arpid=&quot;arp_&quot;+pid;&lt;br /&gt;        var selatr=selobj.options[selobj.selectedIndex].innerHTML;&lt;br /&gt;        alert(selatr);&lt;br /&gt;        var price=arp[selatr];&lt;br /&gt;        alert(price);&lt;br /&gt;        var img=ar[selatr];&lt;br /&gt;        //$(&quot;#&quot;+imgid).attr(&quot;src&quot;, img);&lt;br /&gt;        //document.getElementById(imgid).src=img;&lt;br /&gt;        $(&quot;#SLB-Image #&quot;+imgid).attr(&quot;src&quot;, img);&lt;br /&gt;        $(&quot;#SLB-Image #&quot;+arpid).html(price);&lt;br /&gt;        }&lt;br /&gt;       &lt;br /&gt;    &lt;/script&gt;       &lt;br /&gt;&lt;?php&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/7740903704922318967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/categories-view-and-product-listin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/7740903704922318967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/7740903704922318967'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/categories-view-and-product-listin.html' title='categories view and product listin after particular cat level with quickview product details'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-3932798151405408436</id><published>2010-12-03T01:20:00.000-08:00</published><updated>2010-12-03T01:22:36.244-08:00</updated><title type='text'>Product collection magento</title><content type='html'>Get product list of any categories with &quot;not visible individually&quot; filter&lt;br /&gt;&lt;br /&gt;Limit product listing to 3 only&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; $products = Mage::getResourceModel(&#39;catalog/product_collection&#39;)-&gt;addCategoryFilter($_subcategory)-&gt;addAttributeToFilter(&#39;visibility&#39;, 4)-&gt;addAttributeToSelect(&#39;*&#39;);&lt;br /&gt;&lt;br /&gt;         $products-&gt;getSelect()-&gt;order(new Zend_Db_Expr(&#39;RAND()&#39;))-&gt;limit(3);&lt;br /&gt;         $products-&gt;load();</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/3932798151405408436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/12/product-collection-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/3932798151405408436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/3932798151405408436'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/12/product-collection-magento.html' title='Product collection magento'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-8592413818864143493</id><published>2010-08-27T01:23:00.000-07:00</published><updated>2010-08-27T01:24:19.629-07:00</updated><title type='text'>Regex to find smarty data</title><content type='html'>\{((.*?))*\}</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/8592413818864143493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/08/regex-to-find-smarty-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8592413818864143493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8592413818864143493'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/08/regex-to-find-smarty-data.html' title='Regex to find smarty data'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-3161045827142832473</id><published>2010-08-20T01:29:00.000-07:00</published><updated>2010-08-20T01:32:39.249-07:00</updated><title type='text'>magento set continueshoppingurl  from any custom module</title><content type='html'>use this to set continue shopping url from any where in magento without editing any  core files :-&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 153, 0);&quot;&gt;Mage::getSingleton(&#39;checkout/session&#39;)-&gt;setContinueShoppingUrl(Mage::helper(&#39;core/url&#39;)-&gt;getCurrentUrl()); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;for more on magento visit:-&lt;br /&gt;&lt;br /&gt;http://magentoexp.blogspot.com/</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/3161045827142832473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/08/magento-set-continueshoppingurl-from.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/3161045827142832473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/3161045827142832473'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/08/magento-set-continueshoppingurl-from.html' title='magento set continueshoppingurl  from any custom module'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-8401605227654691449</id><published>2010-08-19T07:01:00.000-07:00</published><updated>2010-08-19T07:07:42.810-07:00</updated><title type='text'>Magento – Filter by multiple categories</title><content type='html'>create local copy of this modal:&lt;br /&gt;app\code\local\Mage\Catalog\Model\Resource\Eav\Mysql4\Product&lt;br /&gt;edit collection.php  add this function:-&lt;br /&gt;&lt;br /&gt;public function addCategoriesFilter(array $categories)&lt;br /&gt;    {&lt;br /&gt;       // print_r($categories);&lt;br /&gt;  //echo $this-&gt;getStoreId() ;  &lt;br /&gt;        $this-&gt;_prepareProductLimitationFilters();&lt;br /&gt;        $this-&gt;_productLimitationJoinWebsite();&lt;br /&gt;        $this-&gt;_productLimitationJoinPrice();&lt;br /&gt;        $filters = $this-&gt;_productLimitationFilters;&lt;br /&gt;&lt;br /&gt;        $conditions = array(&lt;br /&gt;            &#39;cat_index.product_id=e.entity_id&#39;,&lt;br /&gt;            $this-&gt;getConnection()-&gt;quoteInto(&#39;cat_index.store_id=?&#39;, $this-&gt;getStoreId())&lt;br /&gt;        );&lt;br /&gt;        if (isset($filters[&#39;visibility&#39;]) &amp;&amp; !isset($filters[&#39;store_table&#39;])) {&lt;br /&gt;            $conditions[] = $this-&gt;getConnection()&lt;br /&gt;                -&gt;quoteInto(&#39;cat_index.visibility IN(?)&#39;, $filters[&#39;visibility&#39;]);&lt;br /&gt;        }&lt;br /&gt;  $conditions[] = $this-&gt;getConnection()&lt;br /&gt;            -&gt;quoteInto(&#39;cat_index.category_id IN(?)&#39;,$categories);&lt;br /&gt;        if (isset($filters[&#39;category_is_anchor&#39;])) {&lt;br /&gt;            $conditions[] = $this-&gt;getConnection()&lt;br /&gt;                -&gt;quoteInto(&#39;cat_index.is_parent=?&#39;, $filters[&#39;category_is_anchor&#39;]);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        $joinCond = join(&#39; AND &#39;, $conditions);&lt;br /&gt;                $this-&gt;getSelect()-&gt;join(&lt;br /&gt;                array(&#39;cat_index&#39; =&gt; $this-&gt;getTable(&#39;catalog/category_product_index&#39;)),&lt;br /&gt;                $joinCond,&lt;br /&gt;                array(&#39;cat_index_position&#39; =&gt; &#39;position&#39;)&lt;br /&gt;            );&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;        $this-&gt;_productLimitationJoinStore();&lt;br /&gt;&lt;br /&gt;        Mage::dispatchEvent(&#39;catalog_product_collection_apply_limitations_after&#39;, array(&lt;br /&gt;            &#39;collection&#39;    =&gt; $this&lt;br /&gt;        ));&lt;br /&gt;&lt;br /&gt;        return $this;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At your module block use this function to get products collection from multiple categories :-&lt;br /&gt;&lt;br /&gt;public function _getProductCollection(){&lt;br /&gt;  $visibility = array(&lt;br /&gt;  Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,&lt;br /&gt;  Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG&lt;br /&gt; );&lt;br /&gt; $categories=array(3,4,5,6,7,8);&lt;br /&gt; $storeId    = Mage::app()-&gt;getStore()-&gt;getId();&lt;br /&gt; $this-&gt;_collection = Mage::getModel(&#39;catalog/resource_eav_mysql4_product_collection&#39;)&lt;br /&gt; -&gt;setStoreId($storeId)&lt;br /&gt; -&gt;addCategoriesFilter($categories)&lt;br /&gt; -&gt;addAttributeToFilter(&#39;visibility&#39;, $visibility)&lt;br /&gt; -&gt;addAttributeToSelect(&#39;*&#39;)&lt;br /&gt; -&gt;setOrder(&#39;created_at&#39;, &#39;desc&#39;)&lt;br /&gt;    -&gt;addAttributeToSelect(&#39;*&#39;);&lt;br /&gt; return $this-&gt;_collection;&lt;br /&gt; &lt;br /&gt; }</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/8401605227654691449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/08/create-local-copy-of-this-modal.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8401605227654691449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8401605227654691449'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/08/create-local-copy-of-this-modal.html' title='Magento – Filter by multiple categories'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2690609657504527202.post-8752954214986755758</id><published>2010-08-19T06:52:00.000-07:00</published><updated>2010-08-19T06:56:08.772-07:00</updated><title type='text'>get attribute value for configurable product</title><content type='html'>//this function will get the configurable products set  &lt;br /&gt;public function getprodco_without_visib(){&lt;br /&gt; $categories=$this-&gt;get_categories();&lt;br /&gt; $storeId    = Mage::app()-&gt;getStore()-&gt;getId();&lt;br /&gt; $this-&gt;_collection = Mage::getModel(&#39;catalog/resource_eav_mysql4_product_collection&#39;)&lt;br /&gt; -&gt;setStoreId($storeId)&lt;br /&gt; -&gt;addCategoriesFilter($categories)&lt;br /&gt; -&gt;addAttributeToSelect(&#39;*&#39;)&lt;br /&gt; -&gt;setOrder(&#39;created_at&#39;, &#39;desc&#39;)&lt;br /&gt;    -&gt;addAttributeToSelect(&#39;*&#39;);&lt;br /&gt; return $this-&gt;_collection;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; function getatt_label_basedoncode($attrb_code,$product){&lt;br /&gt;  $attributeValue = Mage::getModel(&#39;catalog/product&#39;)&lt;br /&gt;       -&gt;load($product-&gt;getId())&lt;br /&gt;       -&gt;getAttributeText($attrb_code);&lt;br /&gt;&lt;br /&gt;  return $attributeValue;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;//GET all product id  with their attribute selected value in an array&lt;br /&gt;&lt;br /&gt; function getproduct_attrbset_array(){&lt;br /&gt; $prodattarr=array();&lt;br /&gt; $prods = $this-&gt;getprodco_without_visib();&lt;br /&gt; foreach ($prods as $product) {&lt;br /&gt; //$product    = Mage::getModel(&#39;catalog/product&#39;)-&gt;load(14);&lt;br /&gt;  $prodattarr[] = array(&lt;br /&gt;  &#39;attset&#39; =&gt; $this-&gt;getatt_label_basedoncode(&#39;your_attrib_code&#39;,$product),&lt;br /&gt;  &#39;prod_id&#39; =&gt;$product-&gt;getId(),&lt;br /&gt; );&lt;br /&gt; }&lt;br /&gt; return $prodattarr;&lt;br /&gt; }</content><link rel='replies' type='application/atom+xml' href='http://magentoexp.blogspot.com/feeds/8752954214986755758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentoexp.blogspot.com/2010/08/get-attribute-value-for-configurable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8752954214986755758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2690609657504527202/posts/default/8752954214986755758'/><link rel='alternate' type='text/html' href='http://magentoexp.blogspot.com/2010/08/get-attribute-value-for-configurable.html' title='get attribute value for configurable product'/><author><name>Anshuman</name><uri>http://www.blogger.com/profile/10257698447545777402</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_xrupTh8RWQ0/Sd7yPMyge5I/AAAAAAAAAAM/tzURd40yS5Y/s1600-R/tb_mecsek_yellow_flower.jpg'/></author><thr:total>0</thr:total></entry></feed>