Welcome To Snipplr


Everyone's Recent Snippets Tagged magento



use the magento developer IP
0 1642 posted 14 years ago by nico65
This goes in any phtml file to get the image from the skin folder
0 1305 posted 14 years ago by uteman23
0 1366 posted 14 years ago by ronal
0 1387 posted 14 years ago by ronal
How to create a popup window in Magento
0 1419 posted 14 years ago by ronal
0 1457 posted 14 years ago by TioSolid
0 1393 posted 14 years ago by TioSolid
0 3594 posted 14 years ago by nico65
Inspired by http://subesh.com.np/2010/08/magento-setting-default-shipping-method-cart-page/. Basically Magento requires only countryId in shipment address to show shipment methods (at least in polish case). Very useful if you want user to select shi...
0 1892 posted 15 years ago by ef
0 1443 posted 15 years ago by nico65
works in produktdetail magento 1.4.2 & 1.5.0.1
0 1558 posted 15 years ago by nico65
0 2449 posted 15 years ago by nico65
not fully tested maybe must be like specialprice in this excample
0 1293 posted 15 years ago by nico65
0 3609 posted 15 years ago by nico65
List all orders related to a product id
0 1189 posted 15 years ago by neofreko
2 1473 posted 15 years ago by hotdiggity
Say you don’t want to reset ALL your orders, maybe you want to PRUNE a production database. if that’s the case, this php file (added to a crontab, or ran from your magento root directory) will DELETE all cancelled orders (5000 limit per instance)...
0 1465 posted 15 years ago by hotdiggity
2 1314 posted 15 years ago by alexmargineanu
local.xml snippet
0 1250 posted 15 years ago by nico65
template catalog->layer->view.phtml
0 1493 posted 15 years ago by nico65
After transferring a magento databse or restoring one, you'll most likely have to run this code to correct a few IDs that change automaticly.
0 1218 posted 15 years ago by JustMadMike
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). This stops foreign key checks and then restarts them. The /*!40101 ---- */ code around the SET command...
0 1547 posted 15 years ago by TheJasonParker
Save the file to the directory where Magento resides.
0 1356 posted 15 years ago by TheJasonParker
And a now, word on the log.php maintenance script that comes with Magento 1.4 which has one major shortcoming. It doesn’t maintain your dataflow_batch_* tables, said tables have been seen hiding in the wild at over a Gigabyte in size. php -f...
0 1393 posted 15 years ago by TheJasonParker
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 1295 posted 15 years ago by TheJasonParker
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 1331 posted 15 years ago by TheJasonParker