Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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. 
Replace this function in /lib/Varien/Db/Select.php
This h...
        
        
        
            0 
        
        
            1016 
        
                    posted 14 years ago by TheJasonParker
            WP Functions
Step 1: Upload the logo you want into the theme images folder
Step 2: Add the following code to your theme functions.php file
        
        
        
            3 
        
        
            1221 
        
                    posted 14 years ago by silentpro
            Uploading multiple files at once used to be strictly in the realm of flash or required javascript to crate multiple upload forms as needed. The first method has the problems with the general incompatibility of flash. The second, well, it's a very low...
        
        
        
            0 
        
        
            1694 
        
                    posted 14 years ago by FatFolderDesigner
            If post has featured image, use it.. If not, pick out the first in the post.. Still not working? Stick with the default one..
        
        
        
            3 
        
        
            1764 
        
                    posted 14 years ago by Wendelboe
            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.
        
        
        
            0 
        
        
            1025 
        
                    posted 14 years ago by TheJasonParker
            login issue in development server (copy site from live site)
site url is different
        
        
        
            0 
        
        
            1182 
        
                    posted 14 years ago by aashvi
            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 
        
        
            980 
        
                    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 
        
        
            2047 
        
                    posted 14 years ago by bwangila
            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 
        
        
            1056 
        
                    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 
        
        
            994 
        
                    posted 14 years ago by TheJasonParker
            Create a CSV with a maximum of 1 column, with just the Magento category ID.
        
        
        
            0 
        
        
            927 
        
                    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 
        
        
            1244 
        
                    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 
        
        
            1035 
        
                    posted 14 years ago by nico65
            Skeleton for the main panel in a CMSMS module. defaultadmin.php
        
        
        
            1 
        
        
            1096 
        
                    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 
        
        
            1121 
        
                    posted 14 years ago by blueocto
            
            PHP
        
            You can create a page template that you can apply to pages so only logged in members can view the contents:  
        
                    You can create a page template that you can apply to pages so only logged in members can view the contents:
        
        
        
            0 
        
        
            1794 
        
                    posted 14 years ago by howardpanton
            
