STEPS
-
Click on Help menu
-
Select Enter License
-
Then paste given KEY given at bottom
-
Finally click on Use License
| <?php | |
| // This is code to return custom error message | |
| // for Youtube tutorial: Laravel 5.4 Additional Login Conditions | |
| // https://www.youtube.com/watch?v=Z8s6uhhD1Pk | |
| namespace App\Http\Controllers\Auth; |
| SELECT sub_query.month_ordered, | |
| sub_query.year_ordered, | |
| SUM(sub_query.base_subtotal) AS sum_base_subtotal, | |
| SUM(sub_query.discount_amount) AS sum_discount_amt, | |
| SUM(sub_query.order_qty) AS sum_total_item_count, | |
| COUNT(sub_query.entity_id) AS total_orders | |
| FROM | |
| (SELECT so.entity_id, | |
| MONTH(so.created_at) AS month_ordered, | |
| YEAR(so.created_at) AS year_ordered, |
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License
| login url | |
| <?php echo Mage::getUrl('customer/account/login'); ?> | |
| logout url | |
| <?php echo Mage::getUrl('customer/account/logout'); ?> | |
| My Account url | |
| <?php echo Mage::getUrl('customer/account'); ?> | |
| Register url |
| //form-validate is the id of the form | |
| var dataForm = new VarienForm('form-validate', true); | |
| if(dataForm.validator.validate()){ | |
| //do stuff here when the form is validated | |
| } |
Create an empty git repo or reinitialize an existing one
$ git init| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
| public static function ansiEncode($array = array(), $fields = array()) { | |
| if(!empty($array)) { | |
| for($i = 0; $i < count($array); $i++) { | |
| foreach($fields as $key => $value) { | |
| try { |
| # v. 20180110 | |
| TARGET=/var/www/B2C_America_PA/html | |
| TMPTARGET=$TARGET/../html-in-progress | |
| BACKUP=$TARGET/../html-backup | |
| USER=apache | |
| GROUP=apache | |
| echo "Temporary folder: $TMPTARGET" | |
| echo "Workspace folder: $WORKSPACE" |
| def getProjectName() { | |
| return 'JenkinsPipeline' | |
| } | |
| def getJDKVersion() { | |
| return 'jdk1.8.0_101' | |
| } | |
| def getMavenConfig() { | |
| return 'maven-config' |