Reversing a string in JavaScript
-
zendnwar
-
August 13, 2015
-
Others
-
0 Comments
Method-1: var myString = $(‘#your_id’).val(); var reverseString= myString .split(“”).reverse().join(“”); Method-2: function reverse(s) { var o = ; for (var i = 0, len = s.length; i <= len; i++) o.push(s.charAt(len – i)); return o.join(”); } alert(reverse(‘rawnA niassoH’));
Continue Reading
How to disable skype in Firefox browser?
-
zendnwar
-
August 13, 2015
-
Others
-
0 Comments
Step 1 Click the Firefox button in the upper left corner of the Firefox window and select “Add-ons” to open the Add-ons Manager tab. Step 2 Select “Extensions” from the left pane and your Firefox extensions are displayed in the right pane. Step 3 Click the Skype extension’s name to select it. Step 4 Click the “Disable” button if you …
Continue Reading
How to get data from Magento System Configuration?
-
zendnwar
-
July 30, 2015
-
Magento
-
0 Comments
<?php Mage::getStoreConfig(‘sectionName/groupName/fieldName’); ?>
Continue Reading
How to get attribute set name in Magento?
-
zendnwar
-
July 30, 2015
-
Magento
-
0 Comments
<?php Mage::getModel(‘eav/entity_attribute_set’)->load($_product->getAttributeSetId())->getAttributeSetName(); ?>
Continue Reading
Get custom attribute value in Magento
-
zendnwar
-
July 22, 2015
-
Magento
-
0 Comments
$attribute=$_product->getResource()->getAttribute(‘custom_attribute_code’); if ($attribute) { echo $attribute_value = $attribute ->getFrontend()->getValue($_product); } Hope it will you.
Continue Reading
How to add checkbox field in Admin custom module form and populate the checkbox
-
zendnwar
-
June 16, 2015
-
Magento
-
0 Comments
$fieldset->addField(‘checkbox_name’, ‘checkbox’, array( ‘name’ => ‘ checkbox_name ‘, ‘onclick’ => ‘this.value = this.checked ? 1 : 0;’, ‘tabindex’ => 1 )); How to re-populate the checkbox on Edit page: Just add the extra line in ablove code like below: $fieldset->addField(‘checkbox_name’, ‘checkbox’, array( ‘name’ => ‘ checkbox_name ‘, ‘onclick’ => ‘this.value = this.checked ? 1 : 0;’, ‘tabindex’ => 1 ))->setIsChecked($model->getCheckboxName());
Continue Reading
How to disable Merge JavaScript Files on db in magento
-
zendnwar
-
June 16, 2015
-
Magento
-
0 Comments
Table: core_config_data path:dev/js/merge_files path:dev/css/merge_css_files
Continue Reading
License key PhpStorm 8
-
zendnwar
-
June 12, 2015
-
Others
-
195 Comments
License Key PhpStorm 8 User Name : EMBRACE ===== LICENSE BEGIN ===== 43136-12042010 00002UsvSON704l”dILe1PVx3y4″B3 49AU6oSDJrsjE8nMOQh”8HTDJHIUUh gd1BebYc5U”6OxDbVsALB4Eb10PW8″ ===== LICENSE END ===== User Name : TorReviver ===== LICENSE BEGIN ===== 09574-12042010 00000N7tVkjChpCjDvLjvELNOsgIeH 1POKglQCIddVHUwb6RDtMpzpzeXi0Z RGN7yqI340MhKOu1odUVLb40g5HUF4 ===== LICENSE END ===== User Name : Learn Programming ===== LICENSE BEGIN ===== 63758-12042010 00000Ryqh0NCC73lpRm!XVcxFChJ2g TUR2lZtlLXrPLbQ66Gs8MHs51RvF2y agoDlzne08Zm8VXbts1UMKE!EW4v8G ===== LICENSE END ===== ===========WebStorm 10.0.1============== username: webstorm ===== LICENSE BEGIN …
Continue Reading
Database server does not support the InnoDB storage engine in Magento
-
zendnwar
-
May 30, 2015
-
Magento
-
0 Comments
It is very simple solution. Please follow the below step: Go To the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php Replace : public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs(‘SHOW VARIABLES’); return (!isset($variables‘have_innodb’) || $variables‘have_innodb’ != ‘YES’) ? false : true; } With : public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs(‘SHOW ENGINES’); return (isset($variables‘InnoDB’) && $variables‘InnoDB’ != ‘NO’); }
Continue Reading
Why Should I Use AngularJS ?
-
zendnwar
-
April 29, 2015
-
AngularJS
-
3 Comments
If you haven’t tried AngularJS yet, you’re missing out. The framework consists of a tightly integrated toolset that will help you build well structured, rich client-side applications in a modular fashion—with less code and more flexibility. AngularJS extends HTML by providing directives that add functionality to your markup and allow you to create powerful dynamic templates. You can also create …
Continue Reading