All Projects → nans → Magestudy

nans / Magestudy

Licence: mit
Magento 2 extension samples

Projects that are alternatives of or similar to Magestudy

Rxjava2 Android Samples
RxJava 2 Android Examples - Migration From RxJava 1 to RxJava 2 - How to use RxJava 2 in Android
Stars: ✭ 4,950 (+8900%)
Mutual labels:  samples, example
Dotmailer Magento2 Extension
The official Engagement Cloud for Magento2 extension
Stars: ✭ 33 (-40%)
Mutual labels:  magento2, magento2-extension
Magento2 Module Mailcatcher
Magento 2 Module to catch, log and redirect emails on Local and Dev Servers
Stars: ✭ 14 (-74.55%)
Mutual labels:  magento2, magento2-extension
Grid.blazor
Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
Stars: ✭ 335 (+509.09%)
Mutual labels:  crud, grid
Magento2 Plugin
Speed up your Magento 2 webshop. Optimize your JPEG and PNG images automatically with TinyPNG.
Stars: ✭ 38 (-30.91%)
Mutual labels:  magento2, magento2-extension
Ui
Low-code Framework for Web Apps in PHP
Stars: ✭ 335 (+509.09%)
Mutual labels:  crud, grid
Storecodebodyclass
🏪 This Magento 2 Plugin adds the store & website code to the body class
Stars: ✭ 28 (-49.09%)
Mutual labels:  magento2, magento2-extension
m2.Breadcrumbs
Magento2. Extension add breadcrumbs to pages in Magento2 that by default do not have breadcrumbs.
Stars: ✭ 17 (-69.09%)
Mutual labels:  magento2, magento2-extension
M2 Opcache Monitor
Monitor PHP OpCache from the Admin
Stars: ✭ 38 (-30.91%)
Mutual labels:  magento2, magento2-extension
Module Rocketjavascript
Stars: ✭ 37 (-32.73%)
Mutual labels:  magento2, magento2-extension
Cleancheckout
A drop-in replacement for the Magento 2 checkout.
Stars: ✭ 280 (+409.09%)
Mutual labels:  magento2, magento2-extension
Magento2 Google Address Lookup
Provides an address lookup service on a Magento 2 store powered by the Google Places API
Stars: ✭ 46 (-16.36%)
Mutual labels:  magento2, magento2-extension
Examples
Many examples of Raku code
Stars: ✭ 276 (+401.82%)
Mutual labels:  samples, example
Magento2 Frontools
Set of front-end tools for Magento 2 based on Gulp.js
Stars: ✭ 416 (+656.36%)
Mutual labels:  magento2, magento2-extension
magento2-webappmanifest
A Magento 2 extension that adds a Web App Manifest to the store.
Stars: ✭ 19 (-65.45%)
Mutual labels:  magento2, magento2-extension
Magento2 Form Field Manager
Customer and Address Form Fields Manager for Magento2
Stars: ✭ 21 (-61.82%)
Mutual labels:  magento2, magento2-extension
magento-2-layered-navigation
Magento 2 Layered Navigation extension Free optimizes the navigation process, redirects users to product catalog pages, and makes finding products easier
Stars: ✭ 16 (-70.91%)
Mutual labels:  magento2, magento2-extension
magento2-auto-instagram-post
Magento 2 extension Auto Instagram Post allows you add your products immediately to Instagram after publishing it on Magento site, share your thoughts, product information, brand news and latest to your friends by an action, mass action or schedule a post by cron jobs
Stars: ✭ 30 (-45.45%)
Mutual labels:  magento2, magento2-extension
Magento2 Easy Template Path Hints
Magento 2 Easy Template Path Hints
Stars: ✭ 36 (-34.55%)
Mutual labels:  magento2, magento2-extension
Magento2 Faq
This module adds an easy way to use FAQ Section to your Magento store with jQuery Accordion. In this module, admin can add and update FAQ. Admin can also create FAQ group with group icon.
Stars: ✭ 43 (-21.82%)
Mutual labels:  magento2, magento2-extension

Magestudy - Magento 2 Example extensions

Tested on version 2.3.5
Branch for Magento 2.1 - 2.3
Master branch for Magento 2.3

Installation Instruction

  • Copy the content of the repo to the Magento 2: app/code/Magestudy
  • Run command: php bin/magento setup:upgrade
  • Run Command: php bin/magento cache:flush

(On installing on Magento 2.2 need to uncomment rows at Magestudy\ProductExtensionAttribute\Setup\InstallData.php)

SimpleCrud

Shows how create simple CRUD: grid and form (ui component) without deprecated methods
Sample
Sample

ConfigExample

Sample
Shows how create and update Configuration in Magento 2 (programmatically)
Admin panel: Menu - Stores - Settings - Configuration - Magestudy example

ConsoleCommand

Shows how create console command in Magento 2
Sample
Command 1: magestudy:first_test_command
Command 2: magestudy:fullname FirstName LastName

Controller

Shows how create controller in Magento 2
Links:
yourDomain/index.php/controller/hello
yourDomain/index.php/controller/hello/world
yourDomain/index.php/controller/test
yourDomain/index.php/controller/test/check

CronExample

Shows how to create Cron tasks and Cron groups in Magento 2
Result in /var/log/.debug.log: "Cron task was started at ..."

Answer on question: How are scheduled jobs configured?

Event

Shows how use events in Magento 2
Documentation

Links:
yourDomain/index.php/event/example/index
yourDomain/index.php/event/example/second

LogRepository

Shows how use repository pattern in Magento 2

Menu

Sample
Shows how create menu in Magento 2 admin panel
Admin panel: Menu - MAIN LABEL

Page

Sample
Shows how create simple page (frontend) in Magento 2
Link: http:://YOUR_SITE.domain/index.php/page/test/

Rest

Shows how create REST API in Magento 2
Links for test in \Magestudy\Rest\Model\Shop.php

UnitTestExample

Shows how create Unit test in Magento 2
In \dev\tests\unit\phpunit.xml (remove .dist if file name is phpunit.xml.dist)
Add line: ../../../app/code/Magestudy/UnitTestExample/Test/Unit
To block: testsuite
Run command in console:

  • Go to magento directory (like: cd /home/admin/web/mage23.local/public_html/dev/tests/unit)
  • Run command: php ../../../vendor/phpunit/phpunit/phpunit

Customjs

Sample
Shows how use RequireJS and Knockout.js (bindings) in Magento 2
Result in console: yourDomain/index.php/customjs/test
Frontend: yourDomain/index.php/customjs/test/simple

Crud

Admin panel: Menu - CRUD
Frontend, url: yourDomain/index.php/crud

Shows how create CRUD in Magento 2:

  • Validation;
  • Image loading;
  • Table relations;
  • UI Component;
  • Event;
  • Custom form validation;
  • Highlight rows in grid;
  • Create DB schema;
  • Admin menu;
  • Repository pattern.

Note, this module contains a lot of unnecessary abstractions for Adminhtml controllers.
SimpleCrud extension has simple and clean controllers.

PluginExample

Sample

Commands for test:

magestudy:get_product
magestudy:save_product
magestudy:set_product_price
magestudy:set_product_title
magestudy:set_product_image
###Cases:
Login as customer adds next message: "This text added before customer authenticate."
Create new customer: "This text added after customer create account."

CustomerAttribute - Customer

Sample
Sample
Shows how add new customer (custom) attribute to grid and create/edit form.

AddCustomerAddressField

Sample
Answer on question: How do you add another field to the customer address entity using a setup script?

SystemCustomField

Sample
Shows how add custom fields in Stores->Settings->Configuration
Backend: Stores -> Settings -> Configuration -> Magestudy example -> Field with custom model

CustomerAccountTab

Sample
Shows how add new tab (page, menu item) in customer account (frontend).
Answer on question: Describe how to customize the “My Account” section. How do you add a menu item?

CustomerEditButton

Sample
Shows how add new button in customer edit page (admin panel).

CustomerEditTab

Sample
Shows how add new tab\page\menu item in customer edit section (admin panel).

PaymentMethod

Sample
Shows how create new payment method in Magento 2.
Sample
Sample

ShippingMethod

Shows how create simple shipping method in Magento 2.
Sample
Sample

HideCustomerMenuItem

Shows how hide/remove menu items in (frontend) customer account page in Magento 2 (programmatically)
Sample

ProductEditButton

Shows how add button to product create/edit page in Magento 2
Sample

LoggerExample

Shows how create custom logger and write data to new file in Magento 2
Sample
Sample of injection and using here: Magestudy\LoggerExample\Helper\Data

SearchCriteria

Shows how to configure and create a SearchCriteria instance using the builder for repositories
Sample
Sample here: Magestudy\SearchCriteria\Controller\Hello\Index.php
Frontend url: .../index.php/SearchCriteria/hello/index

ExtensionAttributes

Shows how to use Extension Attributes
Sample
Frontend url: .../index.php/ExtensionAttribute/hello/index

ProductExtensionAttribute

Shows how to use Extension Attributes for products
Added sales information to product object (before test need to create order for selected product)
Sample
Frontend url: .../index.php/ProductExtensionAttribute/hello/index
Sample here: Magestudy\ProductExtensionAttribute\Controller\Hello\Index.php

Widget

Shows how create simple widget
Sample

  • Go to CONTENT -> Widgets -> Add Widget
  • Select "Magestudy Sample Widget" as type and choose your theme
  • Click on continue and fill all fields (in "Widget Options" set some data to label and limit)
  • Go to CONTENT -> Pages -> Home Page: add widget to page
  • Go to main page for result

Mixins

Shows how to use mixins in Magento 2:

  • Add new method
  • Override method
    Sample
    Frontend url: .../index.php/mixin/index

CustomizeOrderHistoryPage

Sample
Answer on question: How do you customize the order history page?

Router

An implementation of RouterInterface to create a custom router.
Sample
Frontend url: .../index.php/sample

Declarative Schema

Migrate install/upgrade scripts to declarative schema
Develop data patches
Sample

Recently Viewed Widget field

Added new field to recently viewed widget
Sample
Sample

Add new params to window.checkout and window.checkoutConfig

Add new params to use in JS files
Sample
Sample

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].