Skip to content

Instantly share code, notes, and snippets.

:root {
--add-review-block-title:'ADD REVIEW'
}
[lang="en"] {
--add-review-block-title:'ADD EN'
}
[lang="es"] {
--add-review-block-title:'ADD ES'
}
* Admin > Content > Configuration > Find your theme > Edit > Set Magento Luma
`https://webm.red/YddF.webm`
* Clear cache and test the behavior at default
## Valet
https://github.com/cpriego/valet-linux
#### Valet not found
Add to your `~/.profile` file follow code:
```bash
if [ -d "$HOME/.config/composer/vendor/bin" ] ; then
@rommmka
rommmka / t
Created January 16, 2020 09:02
php -r '$a = include("app/etc/env.php"); extract($a["db"]["connection"]["default"]); $table=$a["db"]["table_prefix"] . "theme"; $query="\"update $table set type=0;\""; echo "mysql -u$username -h$host -p$password --database=$dbname -Bse $query";' | $0
@rommmka
rommmka / 222
Created February 11, 2020 14:42
https://github.com/magento/magento2/blob/2.4-develop/lib/internal/Magento/Framework/Logger/Handler/System.php#L25
change to
protected $loggerType = Logger::NOTICE;
@rommmka
rommmka / repo
Created February 17, 2020 09:13
"0": {
"type": "composer",
"url": "https://repo.magento.com/"
},
Add the code in file
`vendor/magento/framework/DB/Adapter/Pdo/Mysql.php`
line 1846
after line
`case 'smallint':`
add
`case 'smallint unsigned':`
and
after line
`case 'int':`
That is known Magento2 issue with Varnish cache enabled.
Please check the solution on magento repo issue tracker:
https://github.com/magento/magento2/issues/3897
You may check also: http://docs.swissuplabs.com/m2/extensions/navigationpro/troubleshooting/missing-top-navigation-when-varnish-is-used/
@rommmka
rommmka / sdf
Created December 3, 2020 10:25
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --1
php -r "unlink('composer-setup.php');"
php bin/magento config:set dev/css/merge_css_files 1
php bin/magento config:set dev/css/minify_files 1
php bin/magento config:set dev/js/merge_files 1
php bin/magento config:set dev/js/minify_files 1