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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...