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 | |
// index.php | |
/* We assume that a designer will ask us one day to increase/decrease all body texts | |
this website was made in 2010 and we're changing platform now but "sure" this is | |
going to happen soon :D "In the next project" :-d | |
Also Search & replace '1em' is very trixy, cannot be done reaaallly! IMPOSSIBLE! | |
*/ | |
$GLOBALS['fontSizeDefault'] = '1em'; | |
class MixinC { // ... } | |
class MixinB extends MixinC { // ... } |
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
#!/usr/bin/env bash | |
# USAGE: mysqlOptimizeForImports <- before importing | |
# mysqlDefaultSettings <- to go back to normal | |
# Based on https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster/83385#83385 | |
mysqlStateFile="$HOME/mysql.optimized.for.exports" | |
mysqlConfigLocation="/etc/mysql/my.cnf" # <-- change to the correct for your system, should be for global mysql settings |
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
--- ./view/frontend/web/js/catalog-add-to-cart.js 2018-04-16 17:21:32.000000000 +0200 | |
+++ ./view/frontend/web/js/catalog-add-to-cart.js 2018-04-16 17:21:32.000000000 +0200 | |
@@ -33,11 +33,14 @@ | |
_bindSubmit: function() { | |
var self = this; | |
+ this.element.mage('validation'); | |
this.element.on('submit', function(e) { | |
e.preventDefault(); | |
- self.submitForm($(this)); |