Author Archives: storeteam

Magento 2: How to Call CMS Static Block in Phtml File

To load static block into phtml file first create a Static block in admin area then past this this code into your phtml file and change your contact-store-info to what ever you is your block name which you created in admin area<getLayout()->createBlock(‘Magento\Cms\Block\Block’)->setBlockId(‘contact-store-info’)->toHtml(); ?>

How to add Facebook Open Graph to Magento

How to add Facebook Open Graph to Magento At Nailedit Design, as you may know, we love Magento and use it to build all our ecommerce stores. So we thought we would show you how to get “og:” tags into all the important pages of your Magento shop. Go to app/design/frontend/default/YOURTHEME/template/page/html/head.phtml Add this code snippet below into this file. This code can.

How to call static block in left sidebar in a page in Magento 2

Do you want to call static block into page or in a phtml page In Magento 2 Follow the instructions bellow  For CMS Pages Use bellow Code {{block class=”Magento\\Cms\\Block\\Block” block_id=”block_identifier”}} If you want to call block into phtml file use this code  Replace block_identifier with your orginal block identifier  <?php echo $block->getLayout()->createBlock(‘Magento\Cms\Block\Block’)->setBlockId(‘block_identifier’)->toHtml();?>

Magento PWA Progressive Web Applications Studio

Magento is becoming a Progressive Web Application platform mean now you can Builds Mobile Application to give better Shopping Experiences that Deliver Higher Mobile Conversion Rates to merchants Magento Commerce, the worldwide leader eCommerce Solution platform announced today April 24, 018 Magento (PWA) Studio, a suite of tools for building online stores like Android &.

magento 1.9.x.x.x refresh Cache with cron job automatically

without wasting time i would tell you how you can refresh magento cache with cron job first create a file in your magento root with name refreshcache.php or what ever name you want and past bellow code script into that file , <?php //increase execution time ini_set(‘max_execution_time’, 900); //900 seconds = 15 minutes //require Magento.

Magento CE 1.9.3.1 Seach is totally dead returning no result?

Magento CE 1.9.3.1 Seach is totally dead returning no result? Solution is Here Go to location /app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext/Collection.php Change Query where with orwhere Change below protected function _applySearchFilters() { $foundIds = $this->getFoundIds(); if (!empty($foundIds)) { $this->addIdFilter($foundIds); } else { $this->getSelect()->where(‘FALSE’); } $this->_isSearchFiltersApplied = true; return $this; } To protected function _applySearchFilters() { $foundIds = $this->getFoundIds(); if.

Migrate shopping price rules from old version to New version 1.9.xxx

Are you looking for solution for migration of shopping cart rules if yes here is the solution i am sharing for those who have been tired searching solution. Here is Quick Solution you import and export Rules (1) Create Advance  profile Go to System Configuration > Import and export  > Dataflow-Advanced Profile For export CSV file.

Load youtube videos in popup when click on thumbnail

how to play youtube video in popup window using jquery <script type=”text/javascript” src=”http://www.youtube.com/player_api”></script> <script src=”http://code.jquery.com/jquery-latest.min.js” type=”text/javascript”></script><span onclick=”playvideo(‘1’);player1.playVideo();” class=”yt-link”><h1>Play</h1></span> <div style=”display: none;” id=”pop_1″ class=”video-popup”> <span onclick=”closevideo(‘1’);player1.pauseVideo();” class=”closed”>X</span> <iframe width=”800″ height=”600″ frameborder=”0″ allowfullscreen=”true” onload=”player1=new YT.Player(this)” src=”http://www.youtube.com/embed/8HQIKJBUsQk?rel=0&amp;enablejsapi=1″ id=”if_”></iframe> </div> <span onclick=”playvideo(‘2’);player2.playVideo();” class=”yt-link”><h1>Play</h1></span> <div style=”display:none;” id=”pop_2″ class=”video-popup”> <span onclick=”closevideo(‘2’);player2.pauseVideo();” class=”closed”>X</span> <iframe width=”800″ height=”600″ frameborder=”0″ allowfullscreen=”true” onload=”player2=new YT.Player(this)” src=”http://www.youtube.com/embed/X71R64AdoOo?rel=0&amp;enablejsapi=1″ id=”if_”></iframe>.