Welcome To Snipplr


Everyone's Recent Snippets Tagged magento



login issue in development server (copy site from live site) site url is different
0 1560 posted 15 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 1344 posted 15 years ago by TheJasonParker
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 1362 posted 15 years ago by TheJasonParker
Create a CSV with a maximum of 1 column, with just the Magento category ID.
0 1265 posted 15 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 1600 posted 15 years ago by TheJasonParker
Overlook sending of emails in Mage_Sales_Model_Order->sendNewOrderEmail(), remove sending to customer from there. (around line 872)
0 1438 posted 15 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 1367 posted 15 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 1845 posted 15 years ago by TheJasonParker
I’ve implemented something similar a couple of months ago. What we wanted was to prevent the cart from the old session from merging into the cart of the current session at the point when the customer login. If that describes what you want as well,...
0 1322 posted 15 years ago by TioSolid
0 1356 posted 15 years ago by dmistriotis
Use Mage::register() to add an entry into registry, Mage::registry() to retrieve data and Mage::unregister() to delete registry entry.
0 1215 posted 15 years ago by vrnet
nice post, would do it a bit differently but using it currently as-is.
0 1566 posted 15 years ago by dmistriotis
The "design/header/logo_src" matches the path column in the core_config_data table in the database. You can use the path value to load the value of any config row.
0 1471 posted 15 years ago by TioSolid
0 1327 posted 15 years ago by dmistriotis
Following sql statement collect product sku with store url select catalog_product_entity.sku,catalog_product_entity_varchar.value from catalog_product_entity,catalog_product_entity_varchar where catalog_product_entity_varchar.attribute_id=87 an...
0 2720 posted 15 years ago by aashvi
How to retrieve product attributes outisde the product page in Magento
0 1270 posted 15 years ago by TioSolid
Return a list of all store Categories
0 1702 posted 15 years ago by TioSolid
run mysql query direct on your magento script
0 1449 posted 15 years ago by aashvi
How to get a custom product attribute inside a view (.phtml) file.
0 1483 posted 15 years ago by TioSolid
Allows you to read any config in the magento database based in its path. The path is defined inside the system.xml file of the module. The table is core_config_data
0 1680 posted 15 years ago by TioSolid
Replace "getMyAttribute" with "get" followed by the attribute name in camel case.
0 1404 posted 15 years ago by Groove
Grabbed from parsing magento's source code
0 1442 posted 15 years ago by dmistriotis
0 1542 posted 15 years ago by Groove
originally from Naryan Varma
1 1656 posted 15 years ago by dmistriotis