Add custom attribute with validation using setup script

Custom attributes can be added through Magento Admin Panel > Catalog > Attributes > Manage Attributes , but you can also add attributes through the SQL setup file of your module. Example List of allowed parameters for attributes Extracted from Mage_Eav_Model_Entity_Setup::addAttribute: entity_type_id attribute_code backend_model backend_type backend_table frontend_model frontend_input frontend_input_renderer frontend_label frontend_class source_model is_global is_visible is_required…

MySQL Foreign key constraint fails

You are here because of: Cannot resolve table name close to (id) Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails What to check when you have MySQL foreign key related errors Table should be of same engine (InnoDB) Table fields should be of same type Pay attention…

Samsung SCX-3405W WPA2 AES issues

Samsung SCX-3405W WPA2 AES Wireless connection problems Problem with Samsung SCX-3405W WPA2 AES wireless security setting, failing to connect to a WPA2 wireless router. Test setup Samsung SCX-3405W Main Firmware Version V3.00.01.13 MAY-18-2012 Network Firmware Version V6.01.00(SCX-3400 Series) IP Core Software Version 22.01.NW Stack Version Engine Firmware Version V1.00.06 11-14-2011 SPL Firmware Version SPL 5.58 03-14-2012 Apple…

Amasty Address Attributes Magento Extension Bug

Amasty Address Attributes Notice Bug Using Amasty Attributes to add Address attributes, the following error occurs after first save of Titles/Labels: Notice: Array to string conversion in /home/company/project/site/web/ app/design/adminhtml/default/default/template/ amaddressattr/attribute/options.phtml on line 46 #0 …/app/design/adminhtml/default/default/template/ amaddressattr/attribute/options.phtml(46): mageCoreErrorHandler(8, ‘Array to string conversion’, ‘…/app/design/adminhtml/default/default/template/ amaddressattr/attribute/options.phtml’, 46, Array) Test system configuration Magento CE 1.7.0.2 Amasty Address Attributes 1.0.1 Quick…

XDebug Netbeans NGINX Magento

Setting up XDebug to work with Netbeans IDE Stack Windows 7 NetBeans IDE 8.0 VirtualBox Debian NGINX PHP5-FPM Magento   Configuring XDebug php.ini nano /etc/php5/fpm/conf.d/yourcustom.ini # Integrating XDebug with NetBeans [XDebug] xdebug.remote_host=192.168.56.102 xdebug.idekey=”netbeans-xdebug” xdebug.remote_autostart=off #xdebug.remote_autostart=on # Prevent delay in output of debugged scripts output_buffering = Off # Prevent 504 Gateway timeout when debugging default_socket_timeout = 3600…

Roy Rubin leaving Magento

Roy Rubin leaves Magento Roy Rubin, co-founder and former CEO of Magento had his last day at Magento and eBay on Friday, May 16. This is just after the Magento’s 4th annual Imagine eCommerce Conference, which took place on 12-14th of May, in Las Vegas, where Malcolm Gladwell was featured keynote speaker to address 2,000 attendees.…

VirtualBox CPU Core Performance tuning

VirtualBox performance issues on Multi-core CPU Tweaking

VirtualBox performance issues solution for Multi-core CPUs This article explains in detail how you can vastly improve performance of VirtualBox on latest generation Multi Core processors, by tuning VirtualBox and system settings to ensure correct operation and overcoming compatibility issues. VirtualBox sluggish performance on hyper-threading multi-core Intel Haswell, IvyBridge, SandyBridge Low performance issue Running a development…

Magento GoogleCheckout Error after upgrade

Magento Googlecheckout error after upgrading Magento Warning: include(/home/*/public_html/includes/src/Mage_Googlecheckout_Helper_Data.php): failed to open stream: No such file or directory in /home/*/public_html/includes/src/Varien_Autoload.php on line 93 (with compilation enabled) Warning: include(Mage/Googlecheckout/Helper/Data.php): failed to open stream: No such file or directory in /home/*/public_html/lib/Varien/Autoload.php on line 93 (With compilation disabled) Solution Delete all files except config.xml from the following directory: app/code/core/Mage/GoogleCheckout/etc/ app/code/core/Mage/GoogleCheckout/etc/adminhtml.xml app/code/core/Mage/GoogleCheckout/etc/system.xml app/code/core/Mage/GoogleCheckout/etc/wsdl.xml…

Marketing prin cuvinte cu rezonanta obscena

Un nou curent poate fi observat in marketing, in reclamele TV rulate in perioada martie-aprilie 2014. Pentru a atrage atentia, sunt folosite cuvinte a caror pronuntie suna a cu totul altceva, suna nepotrivit, suna obscen, iar astfel se atrage atentia publicului neatent si plictisit. “Ce a zis ?! Care e legatura ?!” Reclama Tic Tac,…

Tweak and Tune Magento Development Environment

Mandatory Magento Development Environment Settings Disable caching System > Cache Management > Disable All Recommended Open .htaccess and set SetEnv MAGE_IS_DEVELOPER_MODE “true” at the end of the file Open .htaccess and set php_value display_errors On somewhere within <IfModule mod_php5.c> Rename errors / local.xml.sample to errors / local.xml Convenience Enable Logging System > Configuration > Advanced > Developer > Log Settings > Enabled [ Yes ] Enable Debug Profiler System >…

Gigabyte GC-MSMP mSATA and miniPCIe

What is Gigabyte GC-MSMP ?

GC-MSMT Expansion Board? On the Gigabyte’s GA-Q87N specifications page, they tell us that mSATA modules can be used in the Mini-PCIe slot with the help of an GC-MSMP expansion board, but no links are provided to this product, neither Google has any info on this expansion board. Asked Gigabyte and waiting for a response, so…