test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a mock iterator over the given array. | |
* | |
* @param array $a | |
* @param string $class The class to use for the mock, should be/implement/extend Iterator | |
* @param boolean $complete Whether or not to build a complete iteration. This is | |
* used when an exception/break is expected in the middle of the iteration. | |
* @param integer $numElms The number of elements that should be iterated in the case of an | |
* incomplete iteration. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Change EAV Attribute Type from dropdown to multipleselect | |
# - copy old attribute values to new table | |
# | |
dropdown attribute_id = 137 | |
UPDATE eav_attribute SET | |
backend_model = 'eav/entity_attribute_backend_array', | |
frontend_input = 'multiselect', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
//<![CDATA[ | |
Translator.add( | |
<?php echo Mage::helper('core')->jsonEncode(array( | |
'Please use letters only.' => $this->__('Please use letters only.'), | |
'Please use letters only.' => $this->helper('jstranslate')->__('Please use letters only.'), | |
)) ?> | |
); | |
//]]> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aveti aici niste comenzi foarte utile pentru situatiile in care vreti sa evitati sa faceti in mod repetat stash-uri la o serie de fisiere de configurari locale, pe care nu trebuie nici sa le comiteti pe un proiect, si nici sa le puneti in gitignore pentru ca fisierele exista si sunt necesare pe branchurile superioare. | |
In aceste cazuri puteti folosi: | |
### Pentru a opri tracking-ul fisierului | |
```git update-index --assume-unchanged <file>``` | |
On Windows use: | |
```git ls-files -v | grep "^[a-z]"``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot "D:/www/project-name" | |
ServerName local.project-name.net | |
ServerAlias local.project-name.net | |
#SetEnv MAGE_IS_DEVELOPER_MODE "true" | |
<Directory "D:/www/project-name"> | |
Options Indexes FollowSymLinks | |
AllowOverride All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This code only updates the attributes you want to change. | |
* The first paramater is an array of product IDs, | |
* the second is an array of attribute names and values, | |
* and then the third is the store ID you wish to update. | |
* This is MUCH faster than saving the entire model. | |
* Ref Link: http://stackoverflow.com/questions/3669211/saving-in-magento-taking-a-very-very-long-time | |
*/ | |
NewerOlder