Object Oriented Programming

Object-oriented programming(OOP) Language is a programming style, considered more efficient and advanced than procedural language. Object-oriented programming languages include C#, Java, Ruby, PHP, C++. Procedural programming is the standard approach used in traditional computer languages C, FORTAN, Pascal. When our project grow in more complexity, we opt to choose Object-oriented programming rather than Procedural programming.... Continue Reading →

The Class Website Template | HTML5 & CSS3

The Class Website (Homepage),  It’s fully responsive design ready to look stunning on any device. Website based on School Management and Parent/Teachers Communication Application. Features: Minimal Code Responsive Website Template Clean & Fluid HTML5 & CSS3 Supports major browsers. Demo the template using following link.  Demo

PHP Exception Handling

Exception handling is an effective way to handle errors, modern Object oriented extensions use exceptions. Throw an Exception: We have to use PHP built-in class "Exception". To throw an exception with command "throw new Exception()". Write custom error message between brackets(). throw new Exception('Promo value cannot be less than or equal to zero.'); Try/Catch Block:... Continue Reading →

PHP Namespaces

Namespace benefits, avoiding name collision when we integrate from different resources like third party libraries & packages. Define a namespace: We define namespaces at the top of page with "namespace" keyword. No other codes allowed to place before "namespace" keyword - with one exception, "declare" keyword. namespace Le\Product\Age; How to use a namespace class: Example... Continue Reading →

Export Magento categories to CSV

Using the below code, you can export magneto category list as CSV format. Place the code in your root directory, and the exported file will be saved on var/export directory. CSV format includes "Root Category Id", "Category Id", "Category Name", "Category URL", "Category Image", "Category Page Title", "Category Meta Keywords", "Category Meta Description","Category Is Active"... Continue Reading →

Types of Coding in Webdesign | Web Development

Basic web development(Coding types) might consist of: Client side coding: HTML5 and CSS3 Flash Java Script jQuery Microsoft Silverlight AJAX Server side coding: PHP (open source) ASP (Microsoft proprietary) ActiveVFP (open source) CSP, Server-Side ANSI C ColdFusion (Adobe proprietary, formerly Macromedia, formerly Allaire) CGI Erlang, with Linux, Yaws, Mnesia, Erlang (LYME) solution stack Groovy (programming... Continue Reading →

Newsletter Form Template

Newsletter Form, It’s a clean & fluid Subscribe newsletter form template. Features: Minimal Code Responsive Template HTML Form Clean & Fluid HTML5 & CSS3 Supports major browsers. Demo the template using following link.  Demo

Magento: One Page Checkout Order Review

During Magento One Page Checkout, i used to display order details (subtotal, tax, shipping, grand total ) at Payment Information section. Use checkout session, to retrieve order data. //Order Totals $orderDetails = Mage::getSingleton('checkout/session')->getQuote()->getTotals(); //Total object $subtotal = $orderDetails["subtotal"]->getValue(); //Subtotal value $shippingAmount = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingAmount() //Shipping Amount $taxAmount =Mage::helper('checkout')->getQuote()->getShippingAddress()->getData('tax_amount') //Tax Amount if(isset($orderDetails['discount']) && $orderDetails['discount']->getValue()) { $discount =... Continue Reading →


Up ↑