Posts

Terraform Basics - To get Started

Image
Terraform – Step by Step Pre-requisites Link to download VS Code: https://code.visualstudio.com Link for the vscode terrafor plugin: https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform IAM USER with Administrator access just for learning purpose.  Install AWS CLI - https://aws.amazon.com/cli/  How to install Chocolatey and Terraform? Install Chocolatey : https://chocolatey.org/install Open Windows Powershell and Run as administrator, See screenshot below: Run Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) Once installed, type choco and enter you can see the latest version of chocolatey Install Terraform Install terraform using command -> choco install terraform (Run on windows power shell) https://learn.hashicorp.com/tutorials/terraform/i

Send Promo Code to New Registered Customer in Magento

Image
Hello Guys, Recently I have performed a task for sending a promo code to new registered customers only, So that they can use/redeem this code in their next purchase. Follow Below Steps to achieve this, I am assuming you are aware with the custom module development in magento Step 1: Add below code into your etc/config.xml under global node  <models> <!-- Defines your Model -->             <your_module>                 <class>Your_Module_Model</class>             </your_module>         </models> <template>             <email>               <notify_new_customer1>                     <label>Template to send promo code for new registered customer</label>                     <file>notify_new_customer.html</file>                     <type>html</type>                 </notify_new_customer1>             </email>         </template> Step 2:  After global ta

Show Currencies with their symbol instead of currency switcher in header

Sometimes clients requirement are different and hence we would need to break our heads to fix their requirement ;) We all know that there's a default currency drop down selector (also called as Currency Switcher ) available in magento (displayed in the top right of our header). I would like to replace that with currency symbols like i.e, $ £ €  So I change the code in your themes "directory/currency.phtml", Replace this code in place of dropdown code:           <ul>         <?php foreach ($this->getCurrencies() as $_code => $_name): ?>         <li>           <a onclick="setLocation('<?php echo $this->getSwitchCurrencyUrl($_code) ?>')"><?php echo Mage::app()->getLocale()->currency($_code)->getSymbol()?> - <?php echo $_code ?></a>          </li>         <?php endforeach; ?>         </ul> Hope this Helps .. Cheers !!

For certification study material

Hi, Use below links to crack Magento Certification: 1. http://www.magestudyguide.com/ 2. http://alanstorm.com/category/magento 3. http://makandracards.com/magento 4. http://www.vskills.in/certification/Certified-Magento-Professional-Sample-Questions 5. http://magentoquiz.com/magento-certification/magento-exam-sample-questions/ 6. Standard Form The Standard form of the beta exam contains questions on these ten content areas (listed with the percent of the total exam each area comprises): Basics (5%) Request Flow (7%) Rendering (8%) Working with Database in Magento (12%) Entity-Attribute-Value (EAV) Model (10%) Adminhtml (8%) Catalog (10%) Checkout (15%) Sales and Customers (12%) Advanced features (13%)   **** [Register For Exam] http://www.magentocommerce.com/certification/

Magento Collection Query with AND / OR Operators

For those who are new with magento, below post will help them to understand that how  AND & OR operator  should work with Magento to fetch Collection from Database Please Note: A. I am assuming that you are aware about Magento Model. B. In below Examples, lets considered  $salesorderid =9; Ex:1 - Magento SQL Query with - OR Operator $outstandingCollection= Mage::getModel('adminhtmlmodule/adminhtmlmodule')->getCollection()->addFieldToSelect('salesorderid');                 $outstandingCollection->addFieldToFilter(array('salesorderid','paystatus'), array(                   array('salesorderid','eq'=>$salesorderid),                   array('paystatus','eq'=>'0')              )          ); Output : SELECT `main_table`.`salesorderid` FROM `extracharges` AS `main_table` WHERE ((salesorderid = '9') OR (paystatus = '0')) --- Ex:2 - Magento  SQL Query with -

Change Default Sort Order of Product Listing to Descending

Hi Guys, Many times we need to change default functionality in Magento as per Client requirement. One problem which I have faced is how to " Change Default Sort Order to Descending " in product listing page. The best and simplest solution which works well for me. Just add below highlighted code in your catalog.xml (stored in your THEME LAYOUT) under these catalog_category_default &  catalog_category_layered sections Here is the code : <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <action method="setDefaultDirection"><dir>desc</dir></action> <block type="page/html_pager" name="product_list_toolbar_pager"/> </block>

Add/Remove Product from Wishlist using Ajax in Magento

Hello Guys, There are many custom codes and extension(s) are available on Internet through which we can Add product in "WISHLIST" using Ajax but vice-versa is not available. i.e, we can not Remove product from  WISHLIST  using Ajax.So I have created a custom functionality which works fine for me. Hope this will help some one!! I have extended VS AJAX extension to achieve "Remove Product from wishlist using AJAX".You can find VS AJAX extension @  http://www.magentocommerce.com/magento-connect/vs-ajax-8468.html 1) Download my Attachment  and add it in your respective magento folder structure. 2)   After than Add below code in under your product list page <?php ## Add this in top of your product list page ## $loggedin_cus_id=Mage::helper('customer')->getCustomer()->getEntityId() ; ## Find logged in  sessions user id ## Finding users wishlist ## $wishList = Mage::getSingleton('wishlist/wishlist')->loadByCustomer($loggedin_