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 MageVision\Blog10\Plugin\Checkout\CustomerData; | |
class DefaultItem | |
{ | |
public function aroundGetItemData( | |
\Magento\Checkout\CustomerData\AbstractItem $subject, | |
\Closure $proceed, | |
\Magento\Quote\Model\Quote\Item $item |
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 MageVision\Blog40\Observer; | |
use Magento\Framework\Event\ObserverInterface; | |
use Magento\Catalog\Api\Data\ProductCustomOptionInterface; | |
use Magento\Catalog\Model\Product\OptionFactory; | |
class CatalogProductSaveBeforeObserver implements ObserverInterface | |
{ |
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
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="breadcrumbs"> | |
<action method="addCrumb"> | |
<argument name="crumbName" xsi:type="string" translate="true">Home</argument> | |
<argument name="crumbInfo" xsi:type="array"> | |
<item name="title" xsi:type="string" translate="true">Home</item> | |
<item name="label" xsi:type="string" translate="true">Home</item> | |
<item name="link" xsi:type="string">{{baseUrl}}</item> | |
</argument> |
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
<vars module="Magento_Catalog"> | |
<var name="gallery"> | |
... | |
<var name="navdir">vertical</var> <!-- Sliding direction of thumbnails (horizontal/vertical) --> | |
... | |
</var> | |
</vars> |
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 MageVision\Blog43\Model; | |
use Magento\Framework\Session\SessionManager; | |
/** | |
* Blog43 session model | |
*/ | |
class Session extends SessionManager | |
{ |
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 MageVision\Blog45\Plugin\Checkout\CustomerData; | |
use Magento\Checkout\Model\Session as CheckoutSession; | |
use Magento\Checkout\Helper\Data as CheckoutHelper; | |
use Magento\Quote\Model\Quote; | |
class Cart | |
{ |
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 MageVision\Blog46\Helper; | |
use Magento\Framework\App\Helper\AbstractHelper; | |
use Magento\Framework\App\Helper\Context; | |
use Magento\Email\Model\ResourceModel\Template\CollectionFactory; | |
use Magento\Email\Model\Template\Config; | |
class Data extends AbstractHelper |
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 MageVision\Blog47\Setup; | |
use Magento\Framework\Setup\UpgradeSchemaInterface; | |
use Magento\Framework\Setup\ModuleContextInterface; | |
use Magento\Framework\Setup\SchemaSetupInterface; | |
use Magento\Framework\DB\Ddl\Table; | |
class UpgradeSchema implements UpgradeSchemaInterface |
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
var config = { | |
config: { | |
mixins: { | |
'mage/validation': { | |
'MageVision_Blog48/js/system/config/validator-rules-mixin': 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 | |
declare(strict_types=1); | |
namespace MageVision\Blog49\Model; | |
use Magento\Sales\Model\ResourceModel\Order\Status\CollectionFactory; | |
class OrderStatus | |
{ |