Posts

Add a Custom Link to the Magento 2 Top Menu

Magento’s top menu is compromised of categories chosen within the admin under the Catalog -> Categories menu. By default, this menu will only contain categories and nothing else, and therefore a common request from merchants is how to add a custom link to the Magento 2 top menu, usually a CMS page link.
Magento builds ...

Best Way of Upgrading Magento 1

Magento 1 applications were never made easy to upgrade, whether that was upgrading a minor version (1.9.0 to 1.9.1) or a major version (1.8.0 to 1.9.0). A lot of discussions between users online involved long winded methods, such as copying across product, customer and order data which carried major risks in corrupting the database. The ...

Zend PHP 7 Certification – Data Formats and Types – Date and Time

This post covers the Date and Time section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
Date and time functions retrieve date and time data from the PHP server.
The date() function formats a local time/date. There are several options of the format you can output. Some of ...

Zend PHP 7 Certification – Data Formats and Types – JSON and AJAX

This post covers the JSON and AJAX section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
JSON is an acronym for JavaScript Object Notation and it is a lightweight data-interchange format. PHP provides a JSON extension that is enabled by default, and contains some useful functions to use.

Add a Grand Total Condition in Magento

When setting up a Shopping Cart Price Rule in Magento, you can choose to base the condition on which the rule with apply on the subtotal. There are occasions where merchants may want to base the conditions on the final price, or the price that includes the subtraction of any other discounts applied. The code ...

Zend PHP 7 Certification – Data Formats and Types – REST

This post covers the REST section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
REST is an acronym for Representational State Transfer. It is a design standard (not an extension) and consists of a set of architectural principles for designing web pages and services.
REST applications are supposed ...

Zend PHP 7 Certification – Data Formats and Types – SOAP

This post covers the SOAP section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
The SOAP (Simple Object Access Protocol) extension can be used to write SOAP Servers and Clients. SOAP requires the libxml extension enabled (it usually is by default).
You can instantiate a new SoapClient class ...

Zend PHP 7 Certification – Data Formats and Types – DOM

This post covers the DOM section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
The Document Object Model (DOM) extension allows you to operate on XML documents through its DOM API.
Similar to XML Parser, it requires the libxml extension to be enabled (which it usually is by ...

Zend PHP 7 Certification – Data Formats and Types – SimpleXML

This post covers the SimpleXML section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object.
Basic SimpleXML usage includes being XML strings by passing the string in to the SimpleXML class or ...

Zend PHP 7 Certification – Data Formats and Types – XML Extension

This post covers the XML Extension section of the Data Formats and Types chapter when studying for the Zend PHP 7 Certification.
The XML Parser extension in PHP is enabled by default, however it may be disabled by using the --disable-xml option at compile time.
This extension also requires the libxml PHP extension, which ...