<?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-1522593622630004481</id><updated>2024-10-06T21:12:18.718-07:00</updated><title type='text'>Magento Fun</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-3147738307648709769</id><published>2020-03-18T11:34:00.001-07:00</published><updated>2020-03-18T11:35:50.690-07:00</updated><title type='text'>Installing Stripe for magento 2</title><content type='html'>On this occasion and in some future posts for brevity I will cut the extraneous text and just list the sequence of commands I had to follow / steps taken. I find when following other peoples&#39; guides I get frustrated when the extra &quot;fluff&quot; distracts me from the few commands I need to enter. Explanations will be given where needed, but no fluff.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Download the plugin from&amp;nbsp;&lt;a href=&quot;https://stripe.com/docs/plugins/magento/install#download&quot;&gt;https://stripe.com/docs/plugins/magento/install#download&lt;/a&gt;&lt;br /&gt;
I downloaded the composer version&lt;br /&gt;
&lt;br /&gt;
2. Place the file in the same directory as your composer.json. Typically this is the &lt;b&gt;root magento folder&lt;/b&gt;. Copy it by FTP or whatever.&lt;br /&gt;
&lt;br /&gt;
3. SSH into the machine or if a dev instance using docker then docker exec -it &amp;lt;magento2dev&amp;gt; bin/bash to get to the console (I test using docker - I will document this later also, highly recommended).&lt;br /&gt;
&lt;br /&gt;
4. Switch to the folder you put the file in and&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;span class=&quot;token function&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace; margin: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;tar&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt; -xvf stripe&lt;/span&gt;&lt;span class=&quot;token option&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace; margin: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;magento2&lt;/span&gt;&lt;span class=&quot;token option&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace; margin: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;-x&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;.x.&lt;/span&gt;&lt;span class=&quot;token url&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace; font-weight: 600; margin: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;x.tgz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;-webkit-box-flex: 1; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px 0px 4px 4px; border: 0px; box-sizing: border-box; flex: 1 1 0%; line-height: 19px; overflow-wrap: break-word; overflow: auto; padding: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;5.&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;composer require stripe/stripe&lt;/span&gt;&lt;span class=&quot;token option&quot; style=&quot;border: 0px; box-sizing: border-box; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace; margin: 0px; overflow-wrap: break-word; padding: 0px;&quot;&gt;-php&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;:^6&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;6.&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;php bin/magento setup:upgrade&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;code class=&quot; language-bash&quot; style=&quot;border: 0px; box-sizing: border-box; display: inline-block; font-family: menlo, consolas, monospace; margin: 0px; min-width: 100%; overflow-wrap: break-word; padding: 12px 14px 12px 64px; position: relative; z-index: 2;&quot;&gt;php bin/magento cache:flush&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;php bin/magento cache:clean&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: menlo, consolas, monospace;&quot;&gt;7&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;php bin/magento setup:di:compile&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;php bin/magento setup:static-content:deploy&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;php&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: menlo, consolas, monospace;&quot;&gt;bin/magento setup:static-content:deploy&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot; , &amp;quot;consolas&amp;quot; , monospace;&quot;&gt;Then go to the backend and configure it from stores-&amp;gt;configuration. &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/3147738307648709769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2020/03/installing-stripe-for-magento-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3147738307648709769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3147738307648709769'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2020/03/installing-stripe-for-magento-2.html' title='Installing Stripe for magento 2'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16889854447632339355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7uN7lyXuOzyziNe0-qK_BF5eoRdl39HyseZZq9V6Ri5BlVGJbaQKJb5ET34AyHKcTwxs9L2cKNVHyIIja61GzsnRXZdQpl-WsG9nwbEqnjxM-KvyiUhcmKaPrjEECg/s151/DSC00308.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-1020366273331718330</id><published>2020-03-18T06:25:00.001-07:00</published><updated>2020-03-18T06:25:18.503-07:00</updated><title type='text'>Starting and stopping magento batch duties. </title><content type='html'>As we are learning about magento 2, we are becoming increasingly aware that many of the tasks that worked fine on magento 1 don&#39;t always seem to want to work on magento 2. Exporting CSV files, bulk editing items, it simply doesn&#39;t work, with messages telling you these actions are queued on various lists. Even if you have cron configured correctly it still doesn&#39;t work.&lt;br /&gt;
&lt;br /&gt;
Well, this is a note to remember how to start services, I will add as I discover new issues and the corresponding services.&lt;br /&gt;
&lt;br /&gt;
1. Export CSV doesn&#39;t start.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Bulk edit attributes product grid, doesn&#39;t start processing.&lt;br /&gt;
&lt;br /&gt;
You need to start: &lt;b&gt;bin/magento&amp;nbsp;queue:consumer:start product_action_attribute.update&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/1020366273331718330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2020/03/starting-and-stopping-magento-batch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1020366273331718330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1020366273331718330'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2020/03/starting-and-stopping-magento-batch.html' title='Starting and stopping magento batch duties. '/><author><name>Admin</name><uri>http://www.blogger.com/profile/16889854447632339355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7uN7lyXuOzyziNe0-qK_BF5eoRdl39HyseZZq9V6Ri5BlVGJbaQKJb5ET34AyHKcTwxs9L2cKNVHyIIja61GzsnRXZdQpl-WsG9nwbEqnjxM-KvyiUhcmKaPrjEECg/s151/DSC00308.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2542027310514687071</id><published>2019-11-12T04:59:00.003-08:00</published><updated>2019-11-12T04:59:34.607-08:00</updated><title type='text'>Magento 2 catalog page images taking too long to load and failing. </title><content type='html'>If you&#39;ve upgraded or cleared the image caches for magento 2, you may notice that every catalog page loads the images at a snail pace, and if you have any load balancers that restrict php processes (like &lt;a href=&quot;https://support.hypernode.com/changelog/release-4735-upper-limit-active-php-requests-per-ip/&quot;&gt;hypernode &lt;/a&gt;does), it may not load more than say 9 images on the page before giving up and showing broken links.&lt;br /&gt;
&lt;br /&gt;
The short version of why this is happening, is because after you clear the cached thumb/small/etc images, you are only left with base images at full size (at least as far as magento is concerned) and so every time it wants to display a smaller image, it has to reprocess it on the fly, this uses php code, and this is why we encounter problems, we&#39;re asking too much of magento and a server by using more than our share of php processes to convert every single image on the catalog page.&lt;br /&gt;
&lt;br /&gt;
You can obviously minimise the issue by limiting the items per page to 9 or 12 or whatever, but this is a workaround not a solution.&lt;br /&gt;
&lt;br /&gt;
As it happens, magento has thought about this and provided a function to &quot;pre-warm&quot; the image cache and generate &lt;b&gt;all &lt;/b&gt;the necessary images in all sizes.&lt;br /&gt;
&lt;br /&gt;
You should know that a) you need shell access and b) you need a while (on our server, 10k products took about 4 hours).&lt;br /&gt;
&lt;br /&gt;
The function is as follows. You should really only be doing this if you are familiar with the magento binary.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;/bin/magento catalog:images:resize&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Pretty simple, when you know, and when it works.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2542027310514687071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2019/11/magento-2-catalog-page-images-taking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2542027310514687071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2542027310514687071'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2019/11/magento-2-catalog-page-images-taking.html' title='Magento 2 catalog page images taking too long to load and failing. '/><author><name>Admin</name><uri>http://www.blogger.com/profile/16889854447632339355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7uN7lyXuOzyziNe0-qK_BF5eoRdl39HyseZZq9V6Ri5BlVGJbaQKJb5ET34AyHKcTwxs9L2cKNVHyIIja61GzsnRXZdQpl-WsG9nwbEqnjxM-KvyiUhcmKaPrjEECg/s151/DSC00308.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2107477352316396736</id><published>2019-05-09T05:30:00.001-07:00</published><updated>2019-05-09T09:22:52.361-07:00</updated><title type='text'>Magento 2 - Attention! Something went wrong! </title><content type='html'>&lt;h2&gt;
Something went wrong with processing the default view and we have restored the filter to its original state.&lt;/h2&gt;
So says the &lt;i&gt;product grid&lt;/i&gt; in the backend of Magento 2 when you&#39;re innocently trying to edit stuff.&lt;br /&gt;
This is something to do with filtering although I don&#39;t entirely (yet) know how to trigger it.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
The Fix:&amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;
Well, looking around, I found&lt;a href=&quot;https://magento.stackexchange.com/questions/232021/magento2-error-something-went-wrong-with-processing-the-default-view-and-we-ha&quot;&gt; this page&lt;/a&gt;&amp;nbsp;on stackexchange which has a couple of solutions, but for me the solution appears (because you never want to fully commit in magento 2!) to solve this.&lt;br /&gt;
&lt;br /&gt;
Go to &lt;span style=&quot;color: blue;&quot;&gt;phpmyadmin&lt;/span&gt;, table &lt;i&gt;admin_user&lt;/i&gt;, and figure out the &lt;i&gt;user_id&lt;/i&gt; of the affected user by just looking at the table. Write that down.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Then&lt;/u&gt; go to table &lt;b&gt;ui_bookmark&lt;/b&gt; and find the row for &lt;i&gt;any other&lt;/i&gt; user_id, copy the contents of key &lt;b&gt;config &lt;/b&gt;for namespace &lt;b&gt;product_listing&lt;/b&gt; identifier &lt;b&gt;current&lt;/b&gt;, into the same field of the affected &lt;b&gt;user_id&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Or to try to put it simply, copy across the contents of the config field from one that works for another user.&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmXPe2Jn_MX-7K8dcNFgaqHHqGDpMRXCUIJgRloqTw0Ivcnl-CYRp311qKPEyOMIraqp9CiK5WV77qx6FSxNUXu1PNsjNV3iSEL2eWGG7gmQgINO8eE8_F7rB9XrxRkDFAICSUyiLv7Bw/s1600/magento_fix_filter_prod_grid.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;448&quot; data-original-width=&quot;1384&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmXPe2Jn_MX-7K8dcNFgaqHHqGDpMRXCUIJgRloqTw0Ivcnl-CYRp311qKPEyOMIraqp9CiK5WV77qx6FSxNUXu1PNsjNV3iSEL2eWGG7gmQgINO8eE8_F7rB9XrxRkDFAICSUyiLv7Bw/s640/magento_fix_filter_prod_grid.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
I feel like you ought to be able to just delete the line for the affected user_id too, as I notice they&#39;re not generated for pages you haven&#39;t looked at before, so it should regenerate it, but I felt that my way of copying the data would be safer without looking at how the code works.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
This field contains a load of information on which fields were last sorted and filtered it seems. Resetting that with good data fixes this, without having to clear any caches or reindex.&lt;br /&gt;
&lt;br /&gt;
Looks harder than it is, trust me.&lt;br /&gt;
&lt;br /&gt;
Oh and don&#39;t forget to backup your database first!&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Update:&amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;
&lt;b&gt;It kept happening.&lt;/b&gt; Digging a bit further it seems it&#39;s being caused or partly caused by having &quot;sku&quot; to &quot;Null&quot; on some values in the &lt;i&gt;catalog_product_entity &lt;/i&gt;table.&lt;br /&gt;
&lt;br /&gt;
props to&lt;a href=&quot;https://www.linderobrands.com/blog/attention-something-went-wrong/&quot;&gt; this site &lt;/a&gt;for figuring that out somehow&lt;br /&gt;
&lt;br /&gt;
If you go into phpmyadmin, load up catalog_product_entity, and sort based on sku column, you might (probably will!) see some values of SKU with &quot;Null&quot;.&lt;br /&gt;
&lt;br /&gt;
The reason this happened is because in magento 1 at least, if you duplicate a product, it creates a duplicate with blank SKU. If you then save it and don&#39;t enter an SKU, or don&#39;t save it, I think you get these null sku products.&lt;br /&gt;
&lt;br /&gt;
Hmm.</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2107477352316396736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2019/05/magento-2-attention-something-went-wrong.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2107477352316396736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2107477352316396736'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2019/05/magento-2-attention-something-went-wrong.html' title='Magento 2 - Attention! Something went wrong! '/><author><name>Admin</name><uri>http://www.blogger.com/profile/16889854447632339355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN7uN7lyXuOzyziNe0-qK_BF5eoRdl39HyseZZq9V6Ri5BlVGJbaQKJb5ET34AyHKcTwxs9L2cKNVHyIIja61GzsnRXZdQpl-WsG9nwbEqnjxM-KvyiUhcmKaPrjEECg/s151/DSC00308.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmXPe2Jn_MX-7K8dcNFgaqHHqGDpMRXCUIJgRloqTw0Ivcnl-CYRp311qKPEyOMIraqp9CiK5WV77qx6FSxNUXu1PNsjNV3iSEL2eWGG7gmQgINO8eE8_F7rB9XrxRkDFAICSUyiLv7Bw/s72-c/magento_fix_filter_prod_grid.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2707743124737758313</id><published>2019-05-09T05:04:00.000-07:00</published><updated>2019-05-09T05:04:22.615-07:00</updated><title type='text'>Magento 2 fun!</title><content type='html'>Well, I wouldn&#39;t really call it fun, honestly.&lt;br /&gt;
It&#39;s now May 2019, Magento 2 was released, or perhaps we should say it escaped, several years ago, so I thought it must be ready for production, surely.&lt;br /&gt;
&lt;br /&gt;
Well, depends on your opinion I guess.&lt;br /&gt;
&lt;br /&gt;
Anyway - this blog is getting revived - because it needs to be. Here goes.&lt;br /&gt;
&lt;br /&gt;
Woop.</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2707743124737758313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2019/05/magento-2-fun.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2707743124737758313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2707743124737758313'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2019/05/magento-2-fun.html' title='Magento 2 fun!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-5920832247170598017</id><published>2013-08-06T02:45:00.001-07:00</published><updated>2013-08-06T02:45:42.514-07:00</updated><title type='text'>Editing Magento&#39;s Checkout Success Page - A Great Tip (Stop the page from clearing on refresh!)</title><content type='html'>Here&#39;s a great tip I picked up. On checkout completion, the page shows once with &quot;Checkout Success&quot; etc.&lt;br /&gt;
&lt;br /&gt;
However, when you press F5 or refresh, you get dumped to an empty cart and have to go through the whole thing again.&lt;br /&gt;
&lt;br /&gt;
But you can stop this.&lt;br /&gt;
&lt;br /&gt;
Go to:&lt;br /&gt;
&lt;br /&gt;
app\code\core\Mage\Checkout\controllers\OnepageController.php&lt;br /&gt;
&lt;br /&gt;
and comment out line 227:&lt;br /&gt;
&lt;br /&gt;
//$session-&amp;gt;clear();&lt;br /&gt;
&lt;br /&gt;
Now, next time you go through checkout, you can refresh the page as much as you like, and get all your CSS layout, xml, etc all sorted in one go.&lt;br /&gt;
&lt;br /&gt;
Fantastic.&lt;br /&gt;
&lt;br /&gt;
Don&#39;t forget to change it back though!!&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/5920832247170598017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2013/08/editing-magentos-checkout-success-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5920832247170598017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5920832247170598017'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2013/08/editing-magentos-checkout-success-page.html' title='Editing Magento&#39;s Checkout Success Page - A Great Tip (Stop the page from clearing on refresh!)'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-1181310949634474763</id><published>2013-06-11T20:58:00.000-07:00</published><updated>2013-06-11T21:03:01.604-07:00</updated><title type='text'>Adding a CMS static block into nearly any page (example: cms block on contact us page)</title><content type='html'>Easier than it sounds, this. It only works with phtml files, I think.&lt;br /&gt;
&lt;br /&gt;
1) Go to your backend, cms -&amp;gt; static blocks. Create a block with the content you wish to display and the important bit, NOTE the Identifier, that&#39;s the key we use to call the block.&lt;br /&gt;
In this example I created a block and called it &quot;contactusblock&quot;.&lt;br /&gt;
&lt;br /&gt;
2) Open the phtml file, in this case app\design\frontend\&amp;lt;yourname&amp;gt;\default\template\contacts\form.phtml&lt;br /&gt;
&lt;br /&gt;
Add:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;?php echo $this-&amp;gt;getLayout()-&amp;gt;createBlock(&#39;cms/block&#39;)-&amp;gt;setBlockId(&#39;contactusblock&#39;)-&amp;gt;toHtml() ?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;anywhere you like in the phtml file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Clear any caches, etc.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Good to go.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/1181310949634474763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2013/06/adding-cms-static-block-into-nearly-any.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1181310949634474763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1181310949634474763'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2013/06/adding-cms-static-block-into-nearly-any.html' title='Adding a CMS static block into nearly any page (example: cms block on contact us page)'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-7686419949095765566</id><published>2013-03-20T10:36:00.001-07:00</published><updated>2013-03-20T10:36:30.819-07:00</updated><title type='text'>Help! My magento checkout button stopped working</title><content type='html'>This is a short but weird one.&lt;br /&gt;
&lt;br /&gt;
I had a problem where the site worked perfectly up to the checkout button. Which would do nothing. Nothing at all.&lt;br /&gt;
&lt;br /&gt;
After pulling my hair out, I realised the cause.&lt;br /&gt;
&lt;br /&gt;
In the database, in table &quot;core_config_data&quot;, the secure website url had a single carriage return after it.&lt;br /&gt;
&lt;br /&gt;
Would have saved me hours of work if someone had posted that online. So here I am, posting it.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/7686419949095765566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2013/03/help-my-magento-checkout-button-stopped.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/7686419949095765566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/7686419949095765566'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2013/03/help-my-magento-checkout-button-stopped.html' title='Help! My magento checkout button stopped working'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-1545670342015710068</id><published>2013-03-20T07:15:00.000-07:00</published><updated>2013-03-20T08:47:47.345-07:00</updated><title type='text'>Using magento on a dev or test server, with proper domain names instead of IP addresses. Virtual Host setup guide.</title><content type='html'>There are times when you need to run magento on a local dev server or WAMP installation or just anywhere, and you don&#39;t want an IP address, but instead you want to use a proper domain name.&lt;br /&gt;
&lt;br /&gt;
For example I came across a particularly ridiculous problem with a module&#39;s licence; the module would only work on the root domain, and any subdomains of that. For example it worked on www.rubbishmodule.com and shop.rubbishmodule.com but if you moved your site to a dev server, eg 192.168.1.100/rubbishmodule/ it no longer worked.&lt;br /&gt;
&lt;br /&gt;
Something had to be done. And it was easier than I thought. The process is:&lt;br /&gt;
&lt;br /&gt;
1) Set up apache to use &quot;Name based virtual hosting&quot;&lt;br /&gt;
2) Edit the necessary files on magento&lt;br /&gt;
3) Setup hosts file on pc, or a trick, the router&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
1. Apache&lt;/h3&gt;
&lt;br /&gt;
Apache is a cleverpants. You can use two types of routing to &quot;fake&quot; a web domain on a dev server or any other server running apache. I won&#39;t go into it, because you&#39;re likely to only ever need Name Based variety.&lt;br /&gt;
&lt;br /&gt;
So - easy peasy. Open up your httpd.conf. On CentOS, it&#39;s probably in /etc/httpd/conf/httpd.conf. Remember you need to be superuser or you&#39;ll be frustrated when you can&#39;t save the file ;)&lt;br /&gt;
&lt;br /&gt;
Scroll to the bottom.&lt;br /&gt;
&lt;br /&gt;
Find and uncomment:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;# Use name-based virtual hosting.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;NameVirtualHost *.80&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add below somewhere:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;VirtualHost *.80&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;DocumentRoot /var/www/html/ &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #990000;&quot;&gt;&amp;lt;- this is the absolute path to your dev website root&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;ServerName test.rubbishmodule.com &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #990000;&quot;&gt;&amp;lt;- this is the web domain you want to &quot;fake&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;ErrorLog /var/www/rubbishmodule_error_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp;&amp;lt;- this can be anywhere&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;CustomLog /var/www/rubbismodule_access_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #990000;&quot;&gt;&amp;lt;- likewise.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That&#39;s that. You can add as many entries as you like, thats how name based works, apache will just route to the right DocumentRoot for the ServerName you&#39;ve given. Genius.&lt;br /&gt;
&lt;br /&gt;
Oh. You need to restart apache too. Usually&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;service httpd restart&lt;/span&gt;&lt;br /&gt;
will do the trick. Google it if you&#39;re stuck here.&lt;br /&gt;
&lt;br /&gt;
But it won&#39;t work until you do steps 2 and 3...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
2. Magento&lt;/h3&gt;
&lt;br /&gt;
You need to go into phpmyadmin and browse the core_config_data table. Find the entry for&amp;nbsp;&lt;span style=&quot;background-color: #ccffcc; font-family: Courier New, Courier, monospace; font-size: 13px;&quot;&gt;web/unsecure/base_url&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 13px;&quot;&gt;It&#39;s a big table, but its there.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: sans-serif; font-size: 13px;&quot;&gt;Change the data to http://test.rubbishmodule.com/&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif; font-size: x-small;&quot;&gt;DONT forget the trailing forward slash. If you do, all manner of naughty breaks loose&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now clear /var/cache and /var/session folders in your magento root&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
3. Hosts&lt;/h3&gt;
&lt;br /&gt;
Now you need to tell your PC where to find this server. This is by editing your hosts file. Plenty on this if you google it, but the basics are in Windows:&lt;br /&gt;
&lt;br /&gt;
open c:\windows\system32\drivers\etc\hosts&lt;br /&gt;
Go to the bottom&lt;br /&gt;
Add in&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;192.168.1.100 test.rubbishmodule.com &lt;/span&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #990000;&quot;&gt;&amp;lt;- ip of your dev server, your fake domain&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Bingo. All works.&lt;br /&gt;
&lt;br /&gt;
Now, as an extra, if you have a dd-wrt router, you can do this on the router, so every PC can see the test site!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px;&quot;&gt;
Go to&amp;nbsp;&lt;code style=&quot;background-color: #f7f7f9; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #dd1144; font-family: Menlo, Monaco, &#39;Courier New&#39;, monospace; font-size: 12px; padding: 2px 4px;&quot;&gt;Services -&amp;gt; Services -&amp;gt; DNSMasq&lt;/code&gt;:&amp;nbsp;&lt;a href=&quot;http://192.168.1.1/Services.asp&quot; style=&quot;color: #0088cc; text-decoration: none;&quot;&gt;http://192.168.1.1/Services.asp&lt;/a&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint linenums&quot; style=&quot;-webkit-box-shadow: rgb(251, 251, 252) 40px 0px 0px inset, rgb(236, 236, 240) 41px 0px 0px inset; background-color: #f7f7f9; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(225, 225, 232); box-shadow: rgb(251, 251, 252) 40px 0px 0px inset, rgb(236, 236, 240) 41px 0px 0px inset; font-family: Menlo, Monaco, &#39;Courier New&#39;, monospace; font-size: 12.025px; line-height: 18px; margin-bottom: 18px; padding: 8px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;ol class=&quot;linenums&quot; style=&quot;list-style-image: initial; list-style-position: initial; margin: 0px 0px 0px 33px; padding: 0px;&quot;&gt;
&lt;li class=&quot;L0&quot; style=&quot;padding-left: 12px; text-shadow: rgb(255, 255, 255) 0px 1px 0px;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; font-family: Menlo, Monaco, &#39;Courier New&#39;, monospace; padding: 0px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: #48484c;&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #93a1a1;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #dd1144;&quot;&gt;/test.rubbishmodule.com/&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&lt;span style=&quot;color: #195f91;&quot;&gt;192.168.1.100&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/1545670342015710068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2013/03/setting-magento-to-virtual-host-locally.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1545670342015710068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/1545670342015710068'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2013/03/setting-magento-to-virtual-host-locally.html' title='Using magento on a dev or test server, with proper domain names instead of IP addresses. Virtual Host setup guide.'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2473190480848707099</id><published>2012-05-05T12:17:00.001-07:00</published><updated>2012-05-05T12:17:45.192-07:00</updated><title type='text'>Magento multiple stores and per store pricing, including tier pricing. Yes, it&#39;s all possible!</title><content type='html'>All you need to do is change one flag:&lt;br /&gt;
&lt;br /&gt;
system -&amp;gt; configuration -&amp;gt; catalog -&amp;gt; catalog and change price &amp;gt; price scope to &quot;website&quot;.&lt;br /&gt;
&lt;br /&gt;
Then you can set prices per store, and tier prices per store.&lt;br /&gt;
&lt;br /&gt;
Magic</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2473190480848707099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/05/magento-multiple-stores-and-per-store.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2473190480848707099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2473190480848707099'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/05/magento-multiple-stores-and-per-store.html' title='Magento multiple stores and per store pricing, including tier pricing. Yes, it&#39;s all possible!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-5759035381118592297</id><published>2012-05-05T10:39:00.001-07:00</published><updated>2012-05-05T10:44:24.834-07:00</updated><title type='text'>Multiple Stores on Magento 1.6+ (possibly 1.4+) and with CPANEL and shared hosting</title><content type='html'>Right, most of the guides out there on multi store setup in magento are a bit techy, plus they also tend to assume that you have, and want, to mess about with stuff like virtual hosts.&lt;br /&gt;
Well none of that is necessary.&lt;br /&gt;
&lt;br /&gt;
I have two domain names registered, lets call them http://www.fantastic.co.uk and http://www.rubbish.co.uk&lt;br /&gt;
(those arent my domains, dont follow the links!)&lt;br /&gt;
&lt;br /&gt;
So my magento store is all set up with the default store of fantastic.co.uk and working nicely.&lt;br /&gt;
&lt;br /&gt;
Now I want to add a new website for rubbish.co.uk, and only have my rubbish products on show. lol.&lt;br /&gt;
&lt;br /&gt;
This is how you do it.&lt;br /&gt;
&lt;br /&gt;
1) point rubbish.co.uk at your DNS server for the same as fantastic.co.uk. Exactly the same.&lt;br /&gt;
&lt;br /&gt;
2) go to cpanel for fantastic.co.uk and go to addon domains. Add rubbish.co.uk and set the username to anything. but importantly, set the document root to your magento root folder. This may be public_html, it may be public_html/magento. This is very important to get right.&lt;br /&gt;
&lt;br /&gt;
3) Note that you may have to wait for rubbish.co.uk to propagate before it works. This can take up to 48 hours. Go do stuff. Read an entire book or something.&lt;br /&gt;
&lt;br /&gt;
4) Go to magento backend. Go to catalog-&amp;gt; categories and add a new root category, call it what you like. I called mine rubbish. Make sure it&#39;s active, anchor, etc.&lt;br /&gt;
&lt;br /&gt;
5) Go to system -&amp;gt; manage stores. Add a new website, store and store view in that order. Remember the &quot;code&quot; you enter though for website, you&#39;ll need that soon. Point the store to your new root category.&lt;br /&gt;
&lt;br /&gt;
6) Go to system -&amp;gt; configuration. Choose website scope for &quot;rubbish&quot; in the drop down combo box. Thats the one in grey (the top level for &quot;rubbish&quot;). &amp;nbsp;Go to Configuration-&amp;gt; general-&amp;gt; web on the left side, and change these (untick and enter your own url):&lt;br /&gt;
&lt;br /&gt;
Unsecure Base URL: http://www.rubbish.co.uk&lt;br /&gt;
Secure Base URL: https://www.rubbish.co.uk&lt;br /&gt;
Use Secure URLs in Frontend: NO (you cant have 2 ssl certs on one hosting account*)&lt;br /&gt;
(later you can come back and change also CMS home page, but thats for later)&lt;br /&gt;
&lt;br /&gt;
*well, you can in theory, but I have yet to find a host that will entertain theory.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Now save this. Oh, its IMPERATIVE that you include the www above. Otherwise it doesnt work.&lt;br /&gt;
&lt;br /&gt;
7) now we need to redirect any traffic that DOESNT include the www. Go to cpanel and go to REDIRECTS. Add &quot;rubbish.co.uk&quot;, leave the / box blank, and set &quot;redirects to &quot; to &quot;http://www.rubbish.co.uk&quot;. Important: set the radio button to &quot;Do not redirect www&quot; and leave wildcard blank. Save this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8) phew. Now to see any products, you need to:&lt;br /&gt;
- add some products/categories to that root category you created in step 4. You also need to go to the products themselves, and in the Websites tab, enable them for rubbish.co.uk.&lt;br /&gt;
&lt;br /&gt;
9) clear all magento caches, reindex all files.&lt;br /&gt;
&lt;br /&gt;
10) go to magento root folder, and open index.php for editing. Add this line at the bottom before &quot;/* Store or website code */&quot; (line 74 for me)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if ($_SERVER[&#39;HTTP_HOST&#39;] == &quot;www.rubbish.co.uk&quot;){&lt;br /&gt;
$_SERVER[&quot;MAGE_RUN_CODE&quot;] = &quot;rubbish&quot;; &amp;nbsp; &amp;lt;--this is the code you made up in step 5&lt;br /&gt;
$_SERVER[&quot;MAGE_RUN_TYPE&quot;] = &quot;website&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then you should see your website when you type in either http://www.rubbish.co.uk or http://rubbish.co.uk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/5759035381118592297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/05/multiple-stores-on-magento-16-possibly.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5759035381118592297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5759035381118592297'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/05/multiple-stores-on-magento-16-possibly.html' title='Multiple Stores on Magento 1.6+ (possibly 1.4+) and with CPANEL and shared hosting'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-3268861538383037333</id><published>2012-04-30T16:22:00.005-07:00</published><updated>2012-04-30T16:22:45.021-07:00</updated><title type='text'>SSL, getSkinUrl and ARGGGH broken padlock or missing images in chrome/ie! Solution...</title><content type='html'>As above. The issue is, that when using getSkinUrl in Magento to plonk an image anywhere, if you also use SSL, on the https:// versions of the page, you sometimes (not always!) get a NON secure image.&lt;br /&gt;
&lt;br /&gt;
i.e. and chrome dont like this one bit. They&#39;ll warn the customer that you&#39;re totally unsafe, and shouldn&#39;t be trusted. Hmm. A bit extreme, to say the least.&lt;br /&gt;
&lt;br /&gt;
The solution is, well, the reason first. getSkinUrl seems to be caching the images in question. So the solution is to tell it to refresh that image.&lt;br /&gt;
I can&#39;t say I understand this 100%, but I took it from &lt;a href=&quot;http://blog.baobaz.com/en/blog/https-magento-cache-internet-explorer-no-image&quot;&gt;here&lt;/a&gt;&amp;nbsp;(in the comments):&lt;br /&gt;
&lt;br /&gt;
file to edit: &lt;br /&gt;
app/code/local/Mage/Catalog/Block/Navigation.php&lt;br /&gt;
(if you dont have the above, copy it from app/code/core - NEVER edit core files, always copy them over to app/code/local)&lt;br /&gt;
&lt;br /&gt;
line to add (in magento 1.6 at least!) :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;public function getCacheKeyInfo()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $shortCacheId = array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;CATALOG_NAVIGATION&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::app()-&amp;gt;getStore()-&amp;gt;getId(),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::getDesign()-&amp;gt;getPackageName(),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::getDesign()-&amp;gt;getTheme(&#39;template&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mage::getSingleton(&#39;customer/session&#39;)-&amp;gt;getCustomerGroupId(),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;template&#39; =&amp;gt; $this-&amp;gt;getTemplate(),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;name&#39; =&amp;gt; $this-&amp;gt;getNameInLayout(),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;getCurrenCategoryKey(),&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;getSkinUrl()&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $cacheId = $shortCacheId;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $shortCacheId = array_values($shortCacheId);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $shortCacheId = implode(&#39;|&#39;, $shortCacheId);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $shortCacheId = md5($shortCacheId);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $cacheId[&#39;category_path&#39;] = $this-&amp;gt;getCurrenCategoryKey();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $cacheId[&#39;short_cache_id&#39;] = $shortCacheId;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $cacheId;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/3268861538383037333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/04/ssl-getskinurl-and-argggh-broken.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3268861538383037333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3268861538383037333'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/04/ssl-getskinurl-and-argggh-broken.html' title='SSL, getSkinUrl and ARGGGH broken padlock or missing images in chrome/ie! Solution...'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-8217360128534812893</id><published>2012-03-04T03:43:00.000-08:00</published><updated>2012-03-04T03:43:02.421-08:00</updated><title type='text'>How to kill a cron job that&#39;s hanging around</title><content type='html'>If like me, you have your magento on a server, you might find that you&#39;re constantly nagged by &quot;excessive resouce usage: &quot; messages from lfd/csf firewall.&lt;br /&gt;
&lt;br /&gt;
Or you may just notice that cron jobs aren&#39;t finishing.&lt;br /&gt;
&lt;br /&gt;
To kill them you need two things&lt;br /&gt;
1) SSH access under the same user as the cron job is running (usually just your cpanel username)&lt;br /&gt;
2) the process ID (PID)&lt;br /&gt;
&lt;br /&gt;
Then it&#39;s simple&lt;br /&gt;
&lt;br /&gt;
$ Kill -9 PID&lt;br /&gt;
&lt;br /&gt;
All done.&lt;br /&gt;
&lt;br /&gt;
Course, you shouldnt kill active processes. Kill -9 is very harsh, and can cause problems if the cron job was actually half way through doing something. Better to wait maybe a day or so before killing processes!&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/8217360128534812893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/03/how-to-kill-cron-job-thats-hanging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/8217360128534812893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/8217360128534812893'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/03/how-to-kill-cron-job-thats-hanging.html' title='How to kill a cron job that&#39;s hanging around'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-3159028012683007518</id><published>2012-02-07T13:33:00.000-08:00</published><updated>2012-02-07T13:35:03.739-08:00</updated><title type='text'>Show an image in any .phtml file with a RELATIVE link, i.e. not hardcoded!</title><content type='html'>Thing about magento you learn pretty soon in...&lt;br /&gt;
&lt;br /&gt;
...how you code stuff is VERY dependent on where you&#39;re putting the code.&lt;br /&gt;
&lt;br /&gt;
This works in .phtml files. Or I guess, any files where php will be parsed. Maybe.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;img src=&quot;&amp;lt;?php echo $this-&amp;gt;getSkinUrl(&#39;images/&lt;i&gt;btn_trash.gif&lt;/i&gt;&#39;) ?&amp;gt;&quot; alt=&quot;&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Of course, the image is in your &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;skin/frontend/&amp;lt;yourtemplate&amp;gt;/images/&lt;/span&gt; folder&lt;br /&gt;
&lt;br /&gt;
nice, neat way of making your site not break if you move it ;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/3159028012683007518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/show-image-in-any-phtml-file-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3159028012683007518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3159028012683007518'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/show-image-in-any-phtml-file-with.html' title='Show an image in any .phtml file with a RELATIVE link, i.e. not hardcoded!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-3451715310692735284</id><published>2012-02-06T16:43:00.001-08:00</published><updated>2012-02-06T16:43:24.618-08:00</updated><title type='text'>Another way of doing a bog standard link</title><content type='html'>Sometimes an &amp;lt;a&amp;gt; tag isn&#39;t appropriate.&lt;br /&gt;
&lt;br /&gt;
You can also use:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal; line-height: 18px; margin-bottom: 15px; margin-top: 15px; text-align: justify;&quot;&gt;
onClick=&quot;location.href=&#39;index.html&#39;&quot;&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
inside any other tag.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
example&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;img src=&quot;photo of a dog eating a cow.jpg&quot;&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 18px; text-align: justify;&quot;&gt;onClick=&quot;location.href=&#39;index.html&#39;&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 18px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;awesome.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #0000c0; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/3451715310692735284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/another-way-of-doing-bog-standard-link.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3451715310692735284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/3451715310692735284'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/another-way-of-doing-bog-standard-link.html' title='Another way of doing a bog standard link'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-6978948227052393951</id><published>2012-02-05T15:07:00.001-08:00</published><updated>2012-02-05T15:07:31.739-08:00</updated><title type='text'>Search boxes anywhere!</title><content type='html'>A quickie:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?=$this-&amp;gt;getLayout()-&amp;gt;getBlock(&#39;top.search&#39;)-&amp;gt;toHtml()?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will put a search box anywhere you want!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/6978948227052393951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/search-boxes-anywhere.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/6978948227052393951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/6978948227052393951'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/search-boxes-anywhere.html' title='Search boxes anywhere!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-8532741802933713626</id><published>2012-02-05T05:50:00.000-08:00</published><updated>2012-02-05T05:50:57.613-08:00</updated><title type='text'>Backing up your Magento DB. Go Take a Dump. Literally</title><content type='html'>Pun intended.&lt;br /&gt;
&lt;br /&gt;
Cpanel db backup, mysql export, they&#39;re all rubbish with large databases (i.e. &amp;gt;10mb). I don&#39;t know why they bother.&lt;br /&gt;
&lt;br /&gt;
To do it properly, you *need* ssh access to the server, or some other shell access. If you dont have it, get it. Seriously.&lt;br /&gt;
&lt;br /&gt;
Once you&#39;re in the shell:&lt;br /&gt;
&lt;br /&gt;
~&amp;gt; # mysqldump -u [your cpanel login] -p [FULL_dbname] &amp;gt; backup.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then you have yourself a proper reliable sql file.&lt;br /&gt;
&lt;br /&gt;
Remember to turn off the foreign key check before you import!</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/8532741802933713626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/backing-up-your-magento-db-go-take-dump.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/8532741802933713626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/8532741802933713626'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/backing-up-your-magento-db-go-take-dump.html' title='Backing up your Magento DB. Go Take a Dump. Literally'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2374278167786122054</id><published>2012-02-05T02:12:00.000-08:00</published><updated>2012-02-05T02:12:20.530-08:00</updated><title type='text'>Oh no! Easy tabs messes up my product view page!</title><content type='html'>Now, this one can be a little infuriating.&lt;br /&gt;
&lt;br /&gt;
After installing the awesome easy tabs plugin&lt;br /&gt;
&lt;a href=&quot;http://www.magentocommerce.com/magento-connect/magento-easytabs.html&quot;&gt;http://www.magentocommerce.com/magento-connect/magento-easytabs.html&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
You suddenly find that any mods you&#39;ve previously done to your product view page disappear.&lt;br /&gt;
&lt;br /&gt;
Like say, a lightbox mod.&lt;br /&gt;
&lt;br /&gt;
Oh no!&lt;br /&gt;
&lt;br /&gt;
Simple answer: easy tabs uses this file:&lt;br /&gt;
&lt;br /&gt;
app\design\frontend\yourtemplate\default\template\easytabs\catalogproductview.phtml&lt;br /&gt;
&lt;br /&gt;
instead of what you would have been using before:&lt;br /&gt;
&lt;br /&gt;
app\design\frontend\yourtemplate\default\template\catalog\product\view.phtml.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So there you go. Copy your code across.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2374278167786122054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/oh-no-easy-tabs-messes-up-my-product.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2374278167786122054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2374278167786122054'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/oh-no-easy-tabs-messes-up-my-product.html' title='Oh no! Easy tabs messes up my product view page!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-4598248186495198000</id><published>2012-02-03T02:15:00.000-08:00</published><updated>2012-02-05T08:44:33.560-08:00</updated><title type='text'>Jquery and Magento</title><content type='html'>OK, a quick one. Magento and Jquery can work together very well, but there&#39;s a couple of things you have to do.&lt;br /&gt;
&lt;br /&gt;
1) Jquery, make sure you have the latest version&lt;br /&gt;
&lt;br /&gt;
2) prototype.js (part of magento) has to also be the latest version [on magento 1.6 it&#39;s v1.7 of prototype which IS the latest version. woop.]&lt;br /&gt;
&lt;br /&gt;
Once you have the latest Jquery (1.6 at time of writing I think?) - open the file, and add:&lt;br /&gt;
jQuery.noConflict();&lt;br /&gt;
&lt;br /&gt;
right down at the bottom.&lt;br /&gt;
&lt;br /&gt;
I believe that the order you call scripts may be important - so if you still have gripes, try to make sure the &amp;lt;script&amp;gt; tag for jquery is ABOVE the one for prototype.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/4598248186495198000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/jquery-and-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/4598248186495198000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/4598248186495198000'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/jquery-and-magento.html' title='Jquery and Magento'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-5916724888517468667</id><published>2012-02-02T11:32:00.000-08:00</published><updated>2012-02-02T11:36:58.182-08:00</updated><title type='text'>What&#39;s My Base URL? How to use a relative path on an image or file in magento!</title><content type='html'>Simple question really. Lets say you have an image file in:&lt;br /&gt;
&lt;br /&gt;
/home/you/magento/media/myimage.jpg&lt;br /&gt;
&lt;br /&gt;
Now, http://www.you.com points to magento/&lt;br /&gt;
&lt;br /&gt;
But we all know that absolute links like&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;img src=&quot;http://www.you.com/media/myimage.jpg&quot;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
are naughty&lt;br /&gt;
&lt;br /&gt;
so you really want to say is&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;img src=&quot;&amp;lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);?&amp;gt;media/myimage.jpg&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And I just gave it away.&lt;br /&gt;
&lt;br /&gt;
So here&#39;s the lowdown for an html file in magento.&lt;br /&gt;
&lt;br /&gt;
Mage::getBaseUrl is the magento root folder.&lt;br /&gt;
&lt;br /&gt;
Mage::getSkinUrl and Mage::getImageUrl should also work, to the skin and mediaimages folders respectively.&lt;br /&gt;
&lt;br /&gt;
(note the &quot;should&quot; - I havent tried them yet!)&lt;br /&gt;
&lt;br /&gt;
Note this only works in html files, for the scripty type files you would use something else, like&lt;br /&gt;
&lt;span style=&quot;background-color: #fdfdfd; font-family: Arial, sans-serif; font-size: 12px; font-style: italic; line-height: 18px; text-align: left;&quot;&gt;$this-&amp;gt;getSkinUrl()&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18px;&quot;&gt;Or thats what I&#39;m guessing.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/5916724888517468667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/whats-my-base-url-how-to-link-image-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5916724888517468667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/5916724888517468667'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/whats-my-base-url-how-to-link-image-to.html' title='What&#39;s My Base URL? How to use a relative path on an image or file in magento!'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1522593622630004481.post-2891013578323320001</id><published>2012-02-02T03:23:00.000-08:00</published><updated>2012-02-02T03:28:11.452-08:00</updated><title type='text'>Fun when copying magento installs to local WAMP installation</title><content type='html'>Here we go again. All I want to do is some quick mods to the skin on a magento installation, so I install WAMP locally on my PC.&lt;br /&gt;
&lt;br /&gt;
I do an sql dump and as usual I create a db in WAMP and go to import.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;c:\wamp\bin\mysql\mysqlx.xx.xx\bin&amp;gt;&amp;nbsp;mysql -u root &amp;lt;dbname&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mysql&amp;gt; source &amp;lt;filename.sql&amp;gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So it&#39;s failing again. It always fails. What now?&lt;br /&gt;
Foreign keys. Of course. Error 150. Foreign Key Constraints.&lt;br /&gt;
So I paste this into the top:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET NAMES utf8;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=&#39;NO_AUTO_VALUE_ON_ZERO&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
pretty standard fare.&lt;br /&gt;
&lt;br /&gt;
Still not working. Why?&lt;br /&gt;
&lt;br /&gt;
Try all sorts. Still not working.&lt;br /&gt;
&lt;br /&gt;
Well guess what 2 hours has taught me. Don&#39;t use source.&lt;br /&gt;
&lt;br /&gt;
This is how you import a magento sql dump:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;c:\wamp\bin\mysql\mysqlx.xx.xx\bin&amp;gt; mysql -u root [dbname] &amp;lt; [filename.sql]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Then it actually uses the disable foreign key thing !!!&lt;br /&gt;
&lt;br /&gt;
Why it ignores it using source I don&#39;t know.&lt;br /&gt;
&lt;br /&gt;
So - great, then we get this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ERROR 2006 (HY000) at line 6027: MySQL Server has gone away.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Fantastic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well the solution to this is to increase the max_allowed_packet to 10M (from 1M) in my.ini (right click your WAMP icon and go to it that way)&lt;br /&gt;
&lt;br /&gt;
Worked. Finally.&lt;br /&gt;
&lt;br /&gt;
Hopefully this will save someone else 2 hours of work.</content><link rel='replies' type='application/atom+xml' href='http://magentofun.blogspot.com/feeds/2891013578323320001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://magentofun.blogspot.com/2012/02/fun-when-copying-magento-installs-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2891013578323320001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1522593622630004481/posts/default/2891013578323320001'/><link rel='alternate' type='text/html' href='http://magentofun.blogspot.com/2012/02/fun-when-copying-magento-installs-to.html' title='Fun when copying magento installs to local WAMP installation'/><author><name>magento fun</name><uri>http://www.blogger.com/profile/11642787281755754886</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>