What is the DDL class in Magento?

The only DDL class in Magento is Varien_Db_Ddl_Table. The DDL class consists of a const variable corresponding with types of data (Boolean, small int, integer) and some keywords in SQL (CASCADE, RESTRICT,…) The DDL class includes functions to work with the Table object in the database such as: addColumn() addForeignKey() addIndex() Some important functions in the DDL class: addColumn($name, $type, …

Continue Reading

Fatal error: Unsupported operand types in Magento

Fatal error: Unsupported operand types in /public_html/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 657 It has very simple solution. Please follow below step. Just open /app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php file Find : $dataRow += $stockItemRows$productId; Replace with : $dataRow = array_merge($dataRow,$stockItemRows$productId);   Enjoy it.

Continue Reading

Magento SEO guideline

Search Engine Optimization (SEO) is a set of actions merchants take to make sure their e-commerce store shows up when customers search for their products through a search engine, whether it be Google or any other search engine. This can make a big difference in your strore’s visibility and sales. Ragan.com, specializing in communications, put together key points that cleary …

Continue Reading