<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 19:51:53 +0000</lastBuildDate>
    <item>
      <title>(CSS) Hide DIV scrollbars with CSS - TheJasonParker</title>
      <link>https://snipplr.com/view/65992/hide-div-scrollbars-with-css</link>
      <description>&lt;p&gt;overflow: hidden; will hide both vertical and horizontal scrollbars&#13;
overflow-y: hidden; will hide the vertical scrollbar&#13;
overflow-x: hidden; will hide the horizontal scrollbar&lt;/p&gt;</description>
      <pubDate>Fri, 06 Jul 2012 19:15:48 UTC</pubDate>
      <guid>https://snipplr.com/view/65992/hide-div-scrollbars-with-css</guid>
    </item>
    <item>
      <title>(JavaScript) Google Analytics Goal Funnels for Magento One Page Checkout - TheJasonParker</title>
      <link>https://snipplr.com/view/65292/google-analytics-goal-funnels-for-magento-one-page-checkout</link>
      <description>&lt;p&gt;Fooman GoogleAnalyticsPlus:&#13;
http://www.magentocommerce.com/magento-connect/fooman-googleanalyticsplus.html&#13;
&#13;
The key to seeing the different steps in your checkout is ensuring a page view is triggered each time one of the sections of the checkout is loaded. To do this we need to edit opcheckout.js this file should be in \skin\frontend\default\YOURTHEME\js if not then copy it there from \skin\frontend\base\default\js&#13;
&#13;
Within this file search for â€œgotoSection: function(section)â€ to find the function we are interested in amending and add in the lines of code shown below.&#13;
&#13;
If you are using the old analytics code then you will need to remove the slashes from the line â€œ//pageTrackerâ€¦.â€ and comment out (add a double slash to the beginning of) the line beginning â€œ_gaq.pushâ€¦â€.&#13;
&#13;
Google Analytic Gaol Setup&#13;
Goal Type: URL Destination&#13;
Match Type: Head Match&#13;
Goal URL: /checkout/onepage/success/&#13;
&#13;
Step 1&#13;
URL: /checkout/onepage/&#13;
Name: Login or Register&#13;
Step 2&#13;
URL: /checkout/onepage/billing/&#13;
Name: Billing Address&#13;
Step 3&#13;
URL: /checkout/onepage/shipping/&#13;
Name: Shipping Address&#13;
Step 4&#13;
URL: /checkout/onepage/shipping_method/&#13;
Name: Shipping Method&#13;
Step 5&#13;
URL: /checkout/onepage/payment/&#13;
Name: Payment Details&#13;
Step 6&#13;
URL: /checkout/onepage/review/&#13;
Name: Confirmation&lt;/p&gt;</description>
      <pubDate>Thu, 31 May 2012 21:19:44 UTC</pubDate>
      <guid>https://snipplr.com/view/65292/google-analytics-goal-funnels-for-magento-one-page-checkout</guid>
    </item>
    <item>
      <title>(PHP) Magento Gallery Image Rollover - TheJasonParker</title>
      <link>https://snipplr.com/view/63974/magento-gallery-image-rollover</link>
      <description>&lt;p&gt;Replace the code below in your templates 'media.phtml' file. This has mouseover and mouseout but can be removed it needed.&lt;/p&gt;</description>
      <pubDate>Sat, 17 Mar 2012 01:04:25 UTC</pubDate>
      <guid>https://snipplr.com/view/63974/magento-gallery-image-rollover</guid>
    </item>
    <item>
      <title>(MySQL) Delete &amp; Recreate a table quickly with mySQL - TheJasonParker</title>
      <link>https://snipplr.com/view/56985/delete--recreate-a-table-quickly-with-mysql</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 21 Jul 2011 21:41:41 UTC</pubDate>
      <guid>https://snipplr.com/view/56985/delete--recreate-a-table-quickly-with-mysql</guid>
    </item>
    <item>
      <title>(MySQL) Drop a table if it exists with mySQL - TheJasonParker</title>
      <link>https://snipplr.com/view/56980/drop-a-table-if-it-exists-with-mysql</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 21 Jul 2011 20:50:34 UTC</pubDate>
      <guid>https://snipplr.com/view/56980/drop-a-table-if-it-exists-with-mysql</guid>
    </item>
    <item>
      <title>(PHP) How to check to see if a table exists in a mySQL database. - TheJasonParker</title>
      <link>https://snipplr.com/view/56969/how-to-check-to-see-if-a-table-exists-in-a-mysql-database</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 21 Jul 2011 20:33:45 UTC</pubDate>
      <guid>https://snipplr.com/view/56969/how-to-check-to-see-if-a-table-exists-in-a-mysql-database</guid>
    </item>
    <item>
      <title>(MySQL) Restore MySQL database in WampServer - TheJasonParker</title>
      <link>https://snipplr.com/view/52323/restore-mysql-database-in-wampserver</link>
      <description>&lt;p&gt;Go to the Windows command line by going to Start -&gt; Run and typing in cmd.&#13;
&#13;
You need to change directory to the MySQL bin directory. On my version, the directory is c:\wamp\bin\mysql\mysql4.1.22\bin.&#13;
&#13;
Therefore, the command to change to this directory is:&#13;
cd wamp\bin\mysql\mysql4.1.22\bin&#13;
&#13;
Put the MySQL dump (SQL file) into the above directory&#13;
&#13;
Create the new database in phpmyAdmin (or on the command line)&#13;
&#13;
The actual restore command is slightly different to normal (see below).&#13;
&#13;
Note that is says mysql.exe rather than the normal mysql.&#13;
When it asks you for a password, just hit enter. There is no password associated with the database that you created (unless you prefer to have one. But as it is local, there is no need).&lt;/p&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:58:12 UTC</pubDate>
      <guid>https://snipplr.com/view/52323/restore-mysql-database-in-wampserver</guid>
    </item>
    <item>
      <title>(Other) Decompress gz files in Linux - TheJasonParker</title>
      <link>https://snipplr.com/view/47859/decompress-gz-files-in-linux</link>
      <description>&lt;p&gt;Gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack programs.&lt;/p&gt;</description>
      <pubDate>Tue, 25 Jan 2011 23:52:33 UTC</pubDate>
      <guid>https://snipplr.com/view/47859/decompress-gz-files-in-linux</guid>
    </item>
    <item>
      <title>(MySQL) Excuting sql files from Linux shell - TheJasonParker</title>
      <link>https://snipplr.com/view/47857/excuting-sql-files-from-linux-shell</link>
      <description>&lt;p&gt;Ftp your *.sql file to the (remote) machine, login via SSH and then go to the directory where your sql file is and run this code.&lt;/p&gt;</description>
      <pubDate>Tue, 25 Jan 2011 23:34:46 UTC</pubDate>
      <guid>https://snipplr.com/view/47857/excuting-sql-files-from-linux-shell</guid>
    </item>
    <item>
      <title>(MySQL) Restoring a backup in Magento - TheJasonParker</title>
      <link>https://snipplr.com/view/47621/restoring-a-backup-in-magento</link>
      <description>&lt;p&gt;Wrap these two sets of commands around your sql backup if it hasn't come from a  backup from the Magento admin interface (Magento adds this).&#13;
&#13;
This stops foreign key checks and then restarts them.&#13;
&#13;
The /*!40101 ---- */ code around the SET commands asks "If this version of mySQL is 4.1.1 or newer then run the SET command else do nothing." Older versions will not understand the statement.&#13;
&#13;
This allows for easier  compatibility with other versions of mySQL.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Jan 2011 02:33:43 UTC</pubDate>
      <guid>https://snipplr.com/view/47621/restoring-a-backup-in-magento</guid>
    </item>
    <item>
      <title>(PHP) Log &amp; Cache Maintenance Script - TheJasonParker</title>
      <link>https://snipplr.com/view/47304/log--cache-maintenance-script</link>
      <description>&lt;p&gt;Save the file to the directory where Magento resides.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jan 2011 22:26:36 UTC</pubDate>
      <guid>https://snipplr.com/view/47304/log--cache-maintenance-script</guid>
    </item>
    <item>
      <title>(PHP) Magento Log File Contents Report - TheJasonParker</title>
      <link>https://snipplr.com/view/47303/magento-log-file-contents-report</link>
      <description>&lt;p&gt;And a now, word on the log.php maintenance script that comes with Magento 1.4 which has one major shortcoming.&#13;
&#13;
It doesnâ€™t maintain your dataflow_batch_* tables, said tables have been seen hiding in the wild at over a Gigabyte in size.&#13;
&#13;
php -f ./shell/log.php help gives you a listing of the various options&#13;
&#13;
php -f ./shell/log.php status gives you a listing of the log tables, how many rows and the size of storage space contained in the tables and indexes.&#13;
&#13;
php -f ./shell/log.php clean --days 15 will clear all but the last 15 days of log contents (minimum 1 day)&#13;
&#13;
php -f ./shell/log.php clean clears everthing per your settings in system setups under log maintenance&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jan 2011 22:20:58 UTC</pubDate>
      <guid>https://snipplr.com/view/47303/magento-log-file-contents-report</guid>
    </item>
    <item>
      <title>(PHP) Magento Memory Leak v1.4.1.1 (The Array of Death) - TheJasonParker</title>
      <link>https://snipplr.com/view/47301/magento-memory-leak-v1411-the-array-of-death</link>
      <description>&lt;p&gt;This fixes the way Magento imports data as it just keeps adding â€˜straight joinâ€™ to the array which uses a lot of memory if your importing a lot of products and will kill the import. &#13;
&#13;
Replace this function in /lib/Varien/Db/Select.php&#13;
&#13;
This has been fixed in the next update and a discussion can be seen here...&#13;
&#13;
http://www.magentocommerce.com/boards/viewthread/113901/&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jan 2011 21:55:41 UTC</pubDate>
      <guid>https://snipplr.com/view/47301/magento-memory-leak-v1411-the-array-of-death</guid>
    </item>
    <item>
      <title>(PHP) Delete All Category Products - TheJasonParker</title>
      <link>https://snipplr.com/view/47163/delete-all-category-products</link>
      <description>&lt;p&gt;Change the category id and store id at the top of the script before running it. You can also remove the echo statements if you donâ€™t want any output.&lt;/p&gt;</description>
      <pubDate>Sat, 15 Jan 2011 02:42:47 UTC</pubDate>
      <guid>https://snipplr.com/view/47163/delete-all-category-products</guid>
    </item>
    <item>
      <title>(Visual Basic) Remove a specific character from the end of a Excel cell - TheJasonParker</title>
      <link>https://snipplr.com/view/47136/remove-a-specific-character-from-the-end-of-a-excel-cell</link>
      <description>&lt;p&gt;Replace 'A1' with the cell and '-' with the character you want to remove.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Jan 2011 22:09:35 UTC</pubDate>
      <guid>https://snipplr.com/view/47136/remove-a-specific-character-from-the-end-of-a-excel-cell</guid>
    </item>
    <item>
      <title>(PHP) Batch create categories - TheJasonParker</title>
      <link>https://snipplr.com/view/46996/batch-create-categories</link>
      <description>&lt;p&gt;First off, create your CSV with 2 columns, the parent ID for the category and the category name â€“ you could easily add more columns for extra options, but it wasnâ€™t necessary for us.&#13;
&#13;
The CSV file should be something like this:&#13;
&#13;
3,subcat&#13;
4,subcat2&#13;
6,subcat3&#13;
&#13;
Then it should be saved in ./var/import/importCats.csv&#13;
&#13;
Then save the following in ./quickCatCreate.php&lt;/p&gt;</description>
      <pubDate>Thu, 13 Jan 2011 00:03:44 UTC</pubDate>
      <guid>https://snipplr.com/view/46996/batch-create-categories</guid>
    </item>
    <item>
      <title>(MySQL) Cleanly delete all categories - TheJasonParker</title>
      <link>https://snipplr.com/view/46993/cleanly-delete-all-categories</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 23:59:02 UTC</pubDate>
      <guid>https://snipplr.com/view/46993/cleanly-delete-all-categories</guid>
    </item>
    <item>
      <title>(PHP) Export categories with ID's - TheJasonParker</title>
      <link>https://snipplr.com/view/46988/export-categories-with-ids</link>
      <description>&lt;p&gt;Simply save the above code in a PHP file in the base Magento directory of your store, and visit the URL in your web browser, simples!&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 23:05:09 UTC</pubDate>
      <guid>https://snipplr.com/view/46988/export-categories-with-ids</guid>
    </item>
    <item>
      <title>(PHP) Mass enable categories - TheJasonParker</title>
      <link>https://snipplr.com/view/46987/mass-enable-categories</link>
      <description>&lt;p&gt;Create a CSV with a maximum of 1 column, with just the Magento category ID.&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:58:35 UTC</pubDate>
      <guid>https://snipplr.com/view/46987/mass-enable-categories</guid>
    </item>
    <item>
      <title>(PHP) Mass delete products for Magento 1.4+ - TheJasonParker</title>
      <link>https://snipplr.com/view/46984/mass-delete-products-for-magento-14</link>
      <description>&lt;p&gt;The easiest way to pull this off is by means of a quick script. The key to this script is that the indexing functionality is disabled entirely for the process, then enabled again at the end â€“ requiring a manual update at the end.&#13;
&#13;
In our case, we filtered the type of products by its â€œData Setâ€ â€“ an attribute assigned to that batch of products, but you can change this to suit any means of filtering.&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:03:15 UTC</pubDate>
      <guid>https://snipplr.com/view/46984/mass-delete-products-for-magento-14</guid>
    </item>
    <item>
      <title>(MySQL) Disable products by category - TheJasonParker</title>
      <link>https://snipplr.com/view/46982/disable-products-by-category</link>
      <description>&lt;p&gt;After the MySQL above has run â€“ youâ€™ll need to let Magento take the reigns back a little to update the category indexes, this is quite straightforward, but a little time consuming.&#13;
&#13;
Login to your admin and go to System &gt; Cache Management, the select Rebuild Catalog Index&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 21:57:26 UTC</pubDate>
      <guid>https://snipplr.com/view/46982/disable-products-by-category</guid>
    </item>
    <item>
      <title>(MySQL) Disable products by sku - TheJasonParker</title>
      <link>https://snipplr.com/view/46981/disable-products-by-sku</link>
      <description>&lt;p&gt;You'll first need to find the attribute_id value for 'status' for your Magento installation and replace 273 in this example.&#13;
&#13;
The easiest way to tell is if you go into:&#13;
&#13;
Admin &gt; Catalog &gt; Attributes &gt; Manage Attributes&#13;
&#13;
Then in the â€œAttribute Codeâ€ box, enter â€œstatusâ€ then press â€œSearchâ€. Click the attribute result â€œstatusâ€ â€“ then look at the digits at the very end of the URL â€¦&#13;
&#13;
catalog_product_attribute/edit/attribute_id/XXX/&#13;
&#13;
In the code below (to be run via command line MySQL or phpMyAdmin), just replace %SKU% with your SKU identifier and use % as a wildcard or _ as a single character wildcard.&#13;
&#13;
This will obviously apply to any other attribute, so just change the code as necessary.&#13;
&#13;
enabled = 1&#13;
disabled = 2&#13;
&#13;
After the MySQL above has run â€“ youâ€™ll need to let Magento take the reigns back a little to update the category indexes, this is quite straightforward, but a little time consuming.&#13;
&#13;
Remove this line to disable all...&#13;
&#13;
AND cpe.sku LIKE '%SKU%'&#13;
&#13;
Login to your admin and go to System &gt; Cache Management, the select Rebuild Catalog Index&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jan 2011 21:52:52 UTC</pubDate>
      <guid>https://snipplr.com/view/46981/disable-products-by-sku</guid>
    </item>
  </channel>
</rss>
