Welcome To Snipplr


Everyone's Recent Snippets



1 ... 206 207 208 209 210 ... 553
0 939 posted 14 years ago by filR
0 999 posted 14 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 1053 posted 14 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 2206 posted 14 years ago by bwangila
This piece of code allows to insert text into the tinymce textarea when writing a WordPress plugin for instance.
0 1052 posted 14 years ago by tomidle
1 1376 posted 14 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 1128 posted 14 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 1068 posted 14 years ago by TheJasonParker
Create a CSV with a maximum of 1 column, with just the Magento category ID.
0 982 posted 14 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 1323 posted 14 years ago by TheJasonParker
Overlook sending of emails in Mage_Sales_Model_Order->sendNewOrderEmail(), remove sending to customer from there. (around line 872)
0 1126 posted 14 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 1092 posted 14 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 1519 posted 14 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 1318 posted 14 years ago by jayarjo
0 1168 posted 14 years ago by wnasich
Function to simply generate a random password.
0 1438 posted 14 years ago by nsbucky
0 1173 posted 14 years ago by BebenKoben
1 1239 posted 14 years ago by metoikos
Skeleton for the main panel in a CMSMS module. defaultadmin.php
1 1175 posted 14 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 1195 posted 14 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 1891 posted 14 years ago by howardpanton
WordPress shortcode: Display content to registered users only
1 1268 posted 14 years ago by howardpanton
0 2353 posted 14 years ago by blueocto
1 ... 206 207 208 209 210 ... 553