<?php
$priceInfo = $_product->getPriceInfo();
$tierPrices = $priceInfo->getPrice('tier_price')->getTierPriceList();
$productPriceAmount = $priceInfo->getPrice('final_price')->getAmount();
?>
<?php if (count($tierPrices)) : ?>
<ul class="prices-tier items">
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
| ps -aux | grep '/usr/bin/php' | |
| ps -aux | grep 'php' | |
| ps -aux | grep 'php bin/magento' |
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
| $action = $_POST['action'] ?? 'default'; | |
| // The above is identical to this if/else statement | |
| if (isset($_POST['action'])) { | |
| $action = $_POST['action']; | |
| } else { | |
| $action = 'default'; | |
| } |
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 -m |
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\Framework\Filesystem\Io\File | |
| public function __construct( | |
| \Magento\Framework\Filesystem\Io\File $file | |
| ) { | |
| $this->file = $file; | |
| } | |
| public function streamRead($length = 1024) | |
| public function streamReadCsv($delimiter = ',', $enclosure = '"') |
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
| const XML_PATH_EMAIL_COPY_TO = 'sales_email/order/copy_to'; | |
| $data = $this->getConfigValue( | |
| self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId() | |
| ); | |
| protected $_scopeConfig; | |
| /** | |
| * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig | |
| */ |
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
| use Symfony\Component\Console\Output\OutputInterface | |
| OutputInterface $output | |
| $this->output = $output; | |
| $this->output->writeln((string) __( | |
| '[%1] Order Invoiced order <info>%2 : %3<info>', | |
| date('Y-m-d H:i:s'), | |
| $order->getId(), | |
| $order->getIncrementId()) |
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
| echo 002 > magento_umask | |
| 775 for directories | |
| 664 for files | |
| echo 022 > magento_umask | |
| 755 for directories | |
| 644 for files |
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
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/bin/magento cron:run >/dev/null 2>&1 | |
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/update/cron.php >/dev/null 2>&1 | |
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/bin/magento setup:cron:run >/dev/null 2>&1 | |
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/bin/magento cron:run >> ~/public_html/var/log/cron.log | |
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/update/cron.php >> ~/public_html/var/log/update.cron.log | |
| */5 * * * * /opt/cpanel/ea-php71/root/usr/bin/php ~/public_html/bin/magento setup:cron:run >> ~/public_html/var/log/setup.cron.log |
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
| class HelloWorld extends \Magento\Framework\View\Element\Template | |
| { | |
| public function __construct( | |
| \Magento\Backend\Block\Template\Context $context, | |
| array $data = [] | |
| ) { | |
| parent::__construct($context, $data); | |
| } | |
| /** |