2017 © Pedro Peláez
 

magento2-module maximkexternallinks

N/A

image

maximk/maximkexternallinks

N/A

  • Wednesday, March 15, 2017
  • by MaximKitsenko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Synopsis

This extension add external links, such as ebay.com, amazon.com product links to magento products as extension attributes., (*1)

The example of adding extension attributes with plugin could be find in this extension, (*2)

The list of feeds can be accessed at the following url:, (*3)

Extension Attributes can be accessible in product object by path: extension_attributes -> external_links -> [Array of Links could be find here], (*4)

Motivation

To demonstrate how to add extension attributes to product or to list of products, (*5)

Technical features

API

In order to get product or list of products by Magento API you need to do API request to appropriate service. In Response you will see product object with described extension attributes You can find them by path, introduced below, (*6)

Product Repository Plugin

You can find plugin here: {extension_folder}/Model/Plugin/Product/Repository afterGet, afterGetList, afterSave - this methods are listen ProductRepositoryInterface in order to add there own attributes, (*7)

External links are loaded in plugin with ExternalLinks/Loader help. You can get few external links by product id, (*8)

Installation

This module is intended to be installed using composer. After the code is marshalled by composer, enable the module by adding it the list of enabled modules in the config or, if that file does not exist, installing Magento. After including this component and enabling it, you can verify it is installed by going the backend at:, (*9)

STORES -> Configuration -> ADVANCED/Advanced -> Disable Modules Output, (*10)

Once there check that the module name shows up in the list to confirm that it was installed correctly., (*11)

Database

In Database this module is represented by one table: product_external_links and next fields: link_id, link, link_type, product_id, (*12)

Tests

Unit tests are found in the Test/Unit directory. Api Functional Test is stored in the [Test/ApiFunctional] directory You need to create new database for api-functional test In order to run Api Functional Test you need to add it in dev/tests/api-functional/phpunit.xml.dist Also you can run this test directly from your IDE., (*13)

Contributors

Magento Core team, (*14)

License

Open Source License, (*15)

The Versions

15/03 2017

dev-master

9999999-dev

N/A

  Sources   Download

proprietary

The Requires

  • php ~5.6.0|7.0.2|~7.0.6