- Generate high-level overview of all the main components
- How are the total item counts for each option generated?
- How is the catalog updated to display the matching products?
- How are options rendered?
- What are the customisation points?
- What events are dispatched?
This file contains hidden or 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
#count files | |
ls -1 | wc -l | |
# | |
find . -maxdepth 1 -type d | while read -r dir | |
do printf "%s:\t" "$dir"; find "$dir" -type f | wc -l; done | |
# find biggest folders | |
du -k /home | sort -n | tail -10 |
This file contains hidden or 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 | |
$locale = 'en_US'; | |
Mage::getSingleton('core/session')->setMyLang($langCode); | |
$locale = Mage::getSingleton('core/session')->getMyLang(); | |
Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true); | |
$defaultStore = Mage::app()->getStore()->getCode(); |
This file contains hidden or 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
# magento 2 disable unused modules | |
bin/magento module:disable Vertex_AddressValidation | |
bin/magento module:disable Vertex_AddressValidationApi | |
bin/magento module:disable Vertex_Tax | |
bin/magento module:disable Temando_ShippingRemover | |
bin/magento module:disable Dotdigitalgroup_Chat | |
bin/magento module:disable Dotdigitalgroup_Email |
This file contains hidden or 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
"shippingDetails": [ | |
{ | |
"@type": "OfferShippingDetails", | |
"shippingRate": { | |
"@type": "MonetaryAmount", | |
"value": "610", | |
"currency": "JPY" | |
}, | |
"shippingDestination": { | |
"@type": "DefinedRegion", |
This file contains hidden or 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
<html> | |
<form method="post"> | |
<input name="url" size="50" /> | |
<input name="submit" type="submit" /> | |
</form> | |
<?php | |
// maximum execution time in seconds | |
set_time_limit (24 * 60 * 60); | |
if (!isset($_POST['submit'])) die(); |
This file contains hidden or 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 | |
namespace Vendor\Module\Plugin; | |
class CsrfValidatorSkip | |
{ | |
/** | |
* @param \Magento\Framework\App\Request\CsrfValidator $subject | |
* @param \Closure $proceed | |
* @param \Magento\Framework\App\RequestInterface $request | |
* @param \Magento\Framework\App\ActionInterface $action |
This file contains hidden or 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 | |
class MyScript | |
extends \Magento\Framework\App\Http | |
implements \Magento\Framework\AppInterface { | |
protected $_productRepository; | |
protected $_productFactory; | |
// Tramite la Dependcy Injection possiamo passare al costruttore delle classi Magento, diverse tipologie di classi |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
$attributeCode = 'faktstock_sklad'; | |
$groupName = 'Для Заказа'; | |
Mage::app(); | |
Mage::getSingleton('core/translate')->setLocale('en_US')->init('frontend', true); |
This file contains hidden or 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 | |
namespace Vendor\ModuleName\Controller\Adminhtml\Export; | |
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection; | |
use Magento\Backend\App\Action\Context; | |
use Magento\Ui\Component\MassAction\Filter; | |
use Magento\Sales\Model\ResourceModel\Order\CollectionFactory; | |
NewerOlder