Trigger .trigger('contentUpdated')
on the element where dynamic content is injected.
$.ajax({
url: 'https://www.example.com',
method: 'POST',
data: {
id: '1'
/** | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
* @author Phuong LE <[email protected]> <@> | |
* @copyright Copyright (c) 2018 Menincode (http://www.menincode.com) | |
*/ | |
/** MyNamespace/MyModule/view/frontend/web/js/call-custom-js-everywhere.js */ | |
/** check the requirejs-config.js file */ |
brew cask reinstall vagrant | |
# this might take a long time | |
vagrant plugin update |
find -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \ | |
| xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g' | |
find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \ | |
| xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g' |
Validation.addAllThese([ | |
['validate-zip-fr', 'Please enter a valid zip code. For example 75001.', function (v) { | |
return Validation.get('IsEmpty').test(v) || /(^\d{5}$)/.test(v); | |
}], | |
['validate-mobile-fr', 'Please enter a valid cellphone number. For example 0601020304.', function (v) { | |
return Validation.get('IsEmpty').test(v) || /(^[0][6-7]\d{8}$)/.test(v); | |
}], | |
['validate-fix-fr', 'Please enter a valid cellphone number. For example 0101020304.', function (v) { | |
return Validation.get('IsEmpty').test(v) || /(^[0]([1-5]|9)\d{8}$)/.test(v); | |
}], |
This patch is not to be confused with the SUPEE-7405 that was released on January 20th, 2016. This is a fix for that patch.
"Yo dawg, we heard you like patching so here's a patch for your patch so you can patch while you're patching." - Xzibit, MCD+
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd"> | |
<acl> | |
<resources> | |
<resource id="Magento_Backend::admin"> | |
</resource> | |
</resources> | |
</acl> | |
</config> |
<?php | |
/** | |
* Retrieve the next business day with an optional leadtime. | |
* If leadtime = 1 => find the next business day | |
* If leadtime = 2 => find the "next next" business day | |
* etc... | |
* | |
* @param int $leadtime | |
* @return string|bool | |
*/ |
<?php | |
// app/code/local/Ikonoshirt/Shared/Model/Adminhtml/ | |
class Ikonoshirt_Shared_Model_Adminhtml_ConfigAsXml | |
extends Mage_Core_Model_Config_Data | |
{ | |
protected function _afterLoad() | |
{ | |
/** @var $xml Mage_Core_Model_Config */ |
Sometimes you may have a run away reindex process that aborted due to a MySQL connection error of some sorts. It may be useful to use the following MySQL commands to aid in debugging.
Magento Enterprise labels the reindex lock via the constant REINDEX_FULL_LOCK in app/code/core/Enterprise/Index/Model/Observer.php
SELECT IS_FREE_LOCK('mydatabase_name.reindex_full')
Returns 1 is specified lock is free and can be acquired, 0 if it’s in use, NULL if an error occurs.