Magento Developer Certification Preparation Study Group

Session Eight

Andreas Mautz || @mautz_et_tong

webvisum GmbH

Was?

Preisregeln, API

Wer?

  • Andreas Mautz
  • programmiert seit 16 Jahren
  • macht magento seit 2008
  • beschäftigt sich mit Deployment-Prozessen, Entwicklungsinfrastrukturen und Wissensmanagement seit 2011
  • Vorbereitung Zertifizierung
  • Lehren und Lernen Stoff zusammenzufassen

Location

brandung

Ablauf

Was machen wir denn heute Schönes?

  • Hausaufgaben besprechen
  • Preisregeln
  • API
  • neue Aufgaben
  • PAUSE?!
  • Checkout
  • neue Aufgaben II
  • Sonstiges

Hausaufgaben aus Session 6:

Create an adminhtml integration for the flat table comments entity that supports all CRUD operations.

Create the same for the EAV version, utilizing the semi-automatic adminhtml form field generation through the adminhtml/widget_form block.

Create a system configuration option with a new system.xml section that enables/disables the adminhtml option to create new comments.

On the product edit page, create a new tab containing a grid of all comments associated with this products detall page. Make records removable directly from the grid as a mass action. For this you may want to add a product_id attribute to the comment entities.

In the comments grids, use a renderer to ensure that the backend display is XSS safe.

In the main comments grid, display the entity type associated with the comments page. Create a custom column renderer and filter for the column display and filter.

Create a custom system configuration control that allows you to render your own template.

Create a custom 24-hour and minute time picker control for the comments entity using a custom form element type.

Hausaufgaben aus Session 6:

Create an adminhtml integration for the flat table comments entity that supports all CRUD operations.

Create the same for the EAV version, utilizing the semi-automatic adminhtml form field generation through the adminhtml/widget_form block.

Hausaufgaben aus Session 7:

Rewrite the catalog search full-text indexer to include product tags.

Create a custom indexer with a custom index for comment to category associations. This index contains references to all the comments associated with a specific category detail page. You might want to add a category_id attribute to the comment entities for this.

Integrate the comment indexer into the adminhtml indexer interface.

Make the comment indexer process individual entity updates immediately (if not set to manual).

Set the indexer status to “requires reindex” whenever a comment on the frontend is edited, and update automatically whenever a category is edited in the admin area.

Create an action controller action method that adds a configurable product to the cart using a default set of options (single click add-to-cart for configurable products).

Create a product type that lets the customer specify the price he wants pay when adding such a product to the cart, and use that price during checkout. Use the standard product price attribute as a suggested price for the product

Hausaufgaben aus Session 7:

Rewrite the catalog search full-text indexer to include product tags.

Preisregeln | Overview

  • Katalogpreisregeln
  • Warenkorbpreisregeln

Preisregeln | Katalogpreisregeln

Architektur

Preisregeln | Warenkorbpreisregeln

Architektur

API | Overview

  • Third Party Integrations
  • Vorteile
  • Nachteile

Hausaufgaben zum nächsten Mal I

  • Create a coupon programmatically that can be used multiple times on specific product types.
  • Automatically add and remove coupons from the cart items.
  • Implement an automatic import of coupon codes from a third-party system. Use a simple scenario where there is a file in which codes, discounts, and products are listed.
  • Implement a custom condition for sales price rules that activates a sales price rule on a specific weekday.

Hausaufgaben zum nächsten Mal II

  • Implement a getOnlineCustomers() API resource action that returns the number of customers currently online. Make it work in the SOAP v1 and v2 (non WSI- compliant) flavors of the Magento API for authorized users who are assigned to a role that includes this action.
  • Implement a getInstanceVersion() resource action that returns the Magento version. Make it work in the SOAP v1 and v2 (non WSI-compliant) flavors of the Magento API for authorized users who are assigned to a role that includes this action.

Sonstiges

Quellen && nützliche Links

Magento

Danke!