Categories
magento 2

magento 2 display sub category with image at category

app/design/frontend/Themeness/minu/Magento_Catalog/templates/category/products.phtml

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
?>
<?php
/**
 * Category view template
 *
 * @var $block \Magento\Catalog\Block\Category\View
 */
?> 
<?php $category = $block->getCurrentCategory(); ?>
<?php $subcategories = $category->getChildrenCategories(); ?>
<?php $_helper = $this->helper('Magento\Catalog\Helper\Output'); ?>
<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); ?>
<?php if(count($subcategories) > 0): ?>
    <div class="products wrapper grid products-grid">
        <ol class="products list items product-items">
            <?php foreach($category->getChildrenCategories() as $subcategory): ?>
                <?php $subcategory = $objectManager->create('Magento\Catalog\Model\Category')->load($subcategory->getId()); ?>
                <li class="item product product-item">
                    <div class="product-item-info">
                        <?php if ($_imgUrl = $subcategory->getImageUrl()): ?>
                            <a href="<?= $subcategory->getUrl() ?>" class="product photo product-item-photo">
                                <span class="product-image-container">
                                    <?php $_imgHtml = '<img src="' . $_imgUrl . '" />'; ?>
                                    <?php echo $_imgHtml = $_helper->categoryAttribute($subcategory, $_imgHtml, 'image'); ?>
                                </span>
                            </a>
                        <?php endif; ?>
                        <div class="product details product-item-details">
                            <strong class="product name product-item-name">
                                <a class="product-item-link" href="<?= $subcategory->getUrl() ?>"><?= $subcategory->getName() ?></a>
                            </strong>
                        </div>
                    </div>
                </li>
            <?php endforeach; ?>
        </ol>
    </div>
<?php else: ?>
    <?php if (!$block->isContentMode() || $block->isMixedMode()): ?>
        <?= $block->getProductListHtml() ?>
    <?php endif; ?>
<?php endif; ?>
Categories
magento 2

Magento 2 move product title at product description page.

<move element="page.main.title" destination="product.info.main" before="-"/>
Categories
bigcommerce Child theme cms wordpress wordpress

wordpress remove customize section – child theme

stupid like me want such change 😛

#bookmark #remove #customize #section #wordpress

function remove_customize_register() {
global $wp_customize;
$wp_customize->remove_section( 'colors' ); //Modify this line as needed
}

add_action( 'customize_register', 'remove_customize_register', 11 );
Categories
catalina clover hackintosh

stable #clover #5107

stable #clover #5107

https://github.com/CloverHackyColor/CloverBootloader/releases/tag/5107

Categories
EFI hackintosh

GOLDEN BUILD – HD 520 ::: BACKUP – #bookmark #clover #EFI #backup #catalina #macOS before 10.15.4

#bookmark #clover #EFI #backup #catalina #macOS before 10.15.4

https://drive.google.com/file/d/1Rv_ko34k7FcwHsrTRuvp81ON675rUStN/view?usp=sharing

 

Categories
bash node

fix node path bash_profile #node #path #bash

fix node path bash_profile #node #path #bash
I had the same issue until I added the following lines to my .bash_profile

export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
Categories
lyrics

Protected: ए माया

This content is password protected. To view it please enter your password below:

Categories
haiku Udhauli

Udhauli haiku

#Udhauli#haiku

everest mist
cover the sun —
udhauli

udhauli –
welcoming ancestors
with chindo full wine.

Categories
software

beloved app – #designer #freeruler #pascal

beloved app – #designer #freeruler #pascal

http://www.pascal.com/software/freeruler/

Categories
ecommerce magento Nginx

magento 2 permission 2018

sudo chown -R rawi:www-data Magento-CE-2
find /var/www/html/magento/Magento-CE-2 -type f -print0 | xargs -r0 chmod 640
find /var/www/html/magento/Magento-CE-2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/html/magento/Magento-CE-2/app/etc
chmod -R g+w /var/www/html/magento/Magento-CE-2/var
chmod -R g+w /var/www/html/magento/Magento-CE-2/generated
chmod -R g+w /var/www/html/magento/Magento-CE-2/vendor
chmod -R g+w /var/www/html/magento/Magento-CE-2/pub