2017 © Pedro Peláez
 

magento2-module magento2-module-core

Studio Emma Core module, with general functionality used in Magento 2 project

image

studioemma/magento2-module-core

Studio Emma Core module, with general functionality used in Magento 2 project

  • Tuesday, November 21, 2017
  • by studioemma
  • Repository
  • 19 Watchers
  • 5 Stars
  • 2,141 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 18 % Grown

The README.md

StudioEmma_Core

General

The purpose of this module is to offer general functionality that is usefull for different Magento 2 projects., (*1)

Functions

Product

getCurrentCategory

You can get the current category by using this code in the view template:, (*2)

helper('StudioEmma\Core\Helper\Product');
$currentCategory = $_helper->getCurrentCategory();

echo $currentCategory->getName();
?>

getCurrentProduct

You can get the current product by using this code in the view template:, (*3)

helper('StudioEmma\Core\Helper\Product');
$currentProduct = $_helper->getCurrentProduct();

echo $currentProduct->getName();
?>

Store

getCurrentStore

Return the current store, (*4)

<?php
$_helper = $this->helper('StudioEmma\Core\Helper\Store');
$currentStore = $_helper->getCurrentStore();
?>

getLocale

Return the current locale associated with the current store., (*5)

<?php
$_helper = $this->helper('StudioEmma\Core\Helper\Store');
echo $_helper->getLocale();
?>

Customer

isLoggedIn

Checks if the customer is logged in, (*6)

<?php
$_helper = $this->helper('StudioEmma\Core\Helper\Customer');
$isLoggedIn = $_helper->isLoggedIn();
?>

getCurrentCustomer

Returns the current customer if logged in. If not logged in, it will return false., (*7)

<?php
$_helper = $this->helper('StudioEmma\Core\Helper\Customer');
$customer = $_helper->getCurrentCustomer();
?>

The Versions

21/11 2017

dev-master

9999999-dev

Studio Emma Core module, with general functionality used in Magento 2 project

  Sources   Download

OSL-3.0

The Requires

  • magento/framework >=100.0.0
  • magento/module-catalog >=100.0.0
  • php ~5.6.0|~7.0.0|~7.1.0

 

21/11 2017

2.1.2

2.1.2.0

Studio Emma Core module, with general functionality used in Magento 2 project

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6.0|~7.0.0|~7.1.0
  • magento/framework >=100.0.0
  • magento/module-catalog >=100.0.0

 

11/01 2017

2.1.1

2.1.1.0

Studio Emma Core module, with general functionality used in Magento 2 project

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~5.6.0|~7.0.0
  • magento/framework >=100.0.0
  • magento/module-catalog >=100.0.0