Reduce the original product image size to 1000×1000 dimension in Magento 2 Use imagemagick. for f in find . -name “*.jpg” do convert $f -resize… Read More →
What is my magento admin login url
May 13, 2022
Run the following command to see Magento admin login url php bin/magento info:adminuri You can also view the Admin URI in <your Magento install dir>/app/etc/env.php…. Read More →
How to get date of tomorrow in magento2
May 13, 2022
Object Manager Method to get date of tomorrow in magento2 : $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objDate = $objectManager->create(‘\Magento\Framework\Stdlib\DateTime\DateTime’); $date = $objDate->date(‘Y-m-d’); $nextdate = $objDate->date(‘Y-m-d’, strtotime($date.” +1… Read More →
Magento 2 log : Replacement for Mage::log method
May 13, 2022
Magento 2 log : Replacement for Mage::log method protected $logger; public function __construct(\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } //Show $this->logger->info($message); $this->logger->debug($message); In magento2… Read More →
Author Templates – WordPress | Author page
May 13, 2022
WordPress author page Linking to Author Pages from Posts <p>Written by: <?php the_author_posts_link(); ?></p> List of Authors with Links <h2>List of authors:</h2> <ul> <?php wp_list_authors(); ?> </ul>… Read More →
Simple WordPress Loop
May 13, 2022
The Loop <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); <!– Test if the current post is in category 3. –>… Read More →