Welcome To Snipplr


Everyone's Recent Snippets



1 ... 206 207 208 209 210 ... 554
Add to .htaccess for seo purposes
0 826 posted 13 years ago by nielsenrc
0 579 posted 13 years ago by filR
0 636 posted 13 years ago by scholli
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. The CSV file should be something like this: 3,subcat 4,s...
0 637 posted 13 years ago by TheJasonParker
I needed to split a decimal number into the integer part and the fraction part and save both of them in different variables
0 1454 posted 13 years ago by bwangila
This piece of code allows to insert text into the tinymce textarea when writing a WordPress plugin for instance.
0 649 posted 13 years ago by tomidle
1 761 posted 13 years ago by krillzip
Zugangsdaten In der wp-config.php lassen sich bestimmte Konstanten definieren, sodass die Abfrage der Zugangsdaten und somit auch die Speicherung nicht mehr nötig ist. Sie lauten wie folgt: define('FTP_HOST', 'ftp.example.org'); define('FTP_USE...
0 708 posted 13 years ago by gabbo
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!
0 655 posted 13 years ago by TheJasonParker
Create a CSV with a maximum of 1 column, with just the Magento category ID.
0 612 posted 13 years ago by TheJasonParker
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. In our case, we...
0 848 posted 13 years ago by TheJasonParker
Overlook sending of emails in Mage_Sales_Model_Order->sendNewOrderEmail(), remove sending to customer from there. (around line 872)
0 673 posted 13 years ago by nico65
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. Login to your admin and go to System > Cache Management, the s...
0 686 posted 13 years ago by TheJasonParker
You'll first need to find the attribute_id value for 'status' for your Magento installation and replace 273 in this example. The easiest way to tell is if you go into: Admin > Catalog > Attributes > Manage Attributes Then in the “Attribute...
0 1016 posted 13 years ago by TheJasonParker
Just add a method like this in a Class that needs to call methods dynamically, without a prior knowledge of whether they exist or not.
0 767 posted 13 years ago by jayarjo
Function to simply generate a random password.
0 896 posted 13 years ago by nsbucky
0 732 posted 13 years ago by BebenKoben
1 750 posted 13 years ago by metoikos
Skeleton for the main panel in a CMSMS module. defaultadmin.php
1 702 posted 13 years ago by krillzip
Put your images in a folder called 'random' in your ROOT directory. Please this script at the top of your page:
1 754 posted 13 years ago by blueocto
You can create a page template that you can apply to pages so only logged in members can view the contents:
0 1089 posted 13 years ago by howardpanton
WordPress shortcode: Display content to registered users only
1 800 posted 13 years ago by howardpanton
0 898 posted 13 years ago by blueocto
1 ... 206 207 208 209 210 ... 554