geschrieben von Danijel Vrgoc
am 19. Juli 2017 - 11:58

This article will cover the fundamentals of validating any form in Magento 2.

The contact form on Contact us page will be used and modified for the purpose of the article. The form itself can be found in the following paths, depending on the type of installation you are using:

  • app/code/Magento/Contact/view/frontend/templates/form.phtml
  • vendor/magento/module-contact/view/frontend/templates/form.phtml

In order to demonstrate how to get the forms to be validated, let’s create a validation-free form with some fields. Copy the file from one of the paths above and paste it into your theme:

  • app/code/VENDOR/THEME/Magento_Contact/frontend/templates/form.phtml

Next, paste the following code inside of it:

<form class="form contact-inchoo" action="<?php /* @escapeNotVerified */ echo $block->getFormAction(); ?>" id="contact-form" method="post" data-hasrequired=…
geschrieben von ehansen
am 19. Juli 2017 - 3:02

Artificial Intelligence Marketing is coming. What will it bring? 

geschrieben von Elizabeth Van Dyke
am 18. Juli 2017 - 21:46

New learning management system offers robust features to facilitate training

geschrieben von Olena Sadoma
am 18. Juli 2017 - 15:18

Atwix is a distributed company. But once a year we break all our rules… Well, almost all :). For the whole year Atwix heroes work hard and from anywhere they want, except during one summer weekend when we all take a break together at the annual offsite meeting. This is an informal event that brings all our teammates, no matter where they are located, together for a long weekend – to spend time together and communicate face-to-face. Last year we had a pilot offsite, and since then we are committed to doing it annually.

This year, we wanted to improve our experience, and came up with some basic principles for holding a successful offsite.

Location

Free to decide on location, we were considering different options – go to the previous location, go somewhere else in Ukraine, pick a European place, or simply gather everybody at our Ukrainian office location.

When you have…

geschrieben von Elizabeth Van Dyke
am 18. Juli 2017 - 1:01

Proven strategies for an intelligent approach to holiday readiness

geschrieben von
am 17. Juli 2017 - 22:46
Re: A Declarative Approach for Database Schema Upgrades It sounds like Magento’s planning a pretty radical overhaul of how it handles schema and data upgrades between versions. The looks to be a fiat from on high (vs. the community driven approach they’ve been using for bug fixes). If you’re making schema/data changes that aren’t in Magento’s core or Marketplace code bases, you’ll want to pay attention to this – your deck chairs may need shifting about.
geschrieben von
am 17. Juli 2017 - 22:46
Re: A Declarative Approach for Database Schema Upgrades:

It sounds like Magento’s planning a pretty radical overhaul of how it handles schema and data upgrades between versions. The looks to be a fiat from on high (vs. the community driven approach they’ve been using for bug fixes). If you’re making schema/data changes that aren’t in Magento’s core or Marketplace code bases, you’ll want to pay attention to this – your deck chairs may need shifting about.

geschrieben von
am 17. Juli 2017 - 22:39
Menu Editor to Replace Category Based Menus in Magento 2. Feels like I can recommend checking out stuff from SnowdogApps, sight unseen.
geschrieben von
am 17. Juli 2017 - 22:39
Menu Editor to Replace Category Based Menus in Magento 2.:

Feels like I can recommend checking out stuff from SnowdogApps, sight unseen.

geschrieben von Marketing Team
am 14. Juli 2017 - 1:02

The new holiday commerce guide from Magento shows you how

geschrieben von Fabian Blechschmidt
am 13. Juli 2017 - 18:39
How to add an attribute to product_flat_table

Either one of the following attribute settings is true:

  • backend_typ = 'static'
  • is_filterable > 0
  • used_in_product_listing = 1
  • is_used_for_promo_rules= 1
  • used_for_sort_by = 1

Or you add it manually by observing this event:
catalog_product_flat_prepare_columns

Attribute is not added - source models

If you attribute is still not added it might be, because \Mage_Eav_Model_Entity_Attribute_Abstract::getFlatColumns is called on the attribute, which checks wether a source model exists.

public function getFlatColumns() { // If source model exists - get definition from it if ($this->usesSource() && $this->getBackendType() != self::TYPE_STATIC) { return $this->getSource()->getFlatColums(); } // ... }

As you can see, getFlatColums is called on your source model, which default implementation is:

// \…
geschrieben von Marketing Team
am 11. Juli 2017 - 17:10

As the eCommerce giant celebrates “Prime Day” here are two key takeaways for online businesses of any size

geschrieben von Goran Kolak
am 11. Juli 2017 - 13:54

It’s highly unlikely that there are some frontend developers involved in a responsive website development who are not familiar with the concept of CSS Media queries. In this post, I’ll be looking at Magento 2 way of implementing this functionality in its default theme development workflow.

How do Magento 2 media queries work?

In the heart of Magento 2 media queries mechanism, defined in Magento UI library, is a .media-width() mixin.

.media-width(<@extremum>, <@break>);

@extremum: max|min – sets whether to use min-width or max-width in media query condition

@break: value – sets the value of breakpoint to compare with in media query condition

We can see the practical…

geschrieben von
am 11. Juli 2017 - 0:11
Create a PHPUnit Dashboard With New Relic Not strictly Magento related, but if you’re using New Relic it looks like they can automatically detect test runs and give you useful metrics about your tests. Neat!
geschrieben von
am 11. Juli 2017 - 0:11
Create a PHPUnit Dashboard With New Relic:

Not strictly Magento related, but if you’re using New Relic it looks like they can automatically detect test runs and give you useful metrics about your tests. Neat!

geschrieben von ehansen
am 10. Juli 2017 - 22:51

Customer experience was the driving force behind Canon Australia’s recent site transformation. Aman Bhalla, the brand’s Director of Digital Commerce, shared her key insights on this transformation during a fireside chat at the Imagine conference in April. Here are five useful takeaways. 

geschrieben von
am 10. Juli 2017 - 22:16
This entry is part 12 of 12 in the series Modern PHP. Earlier posts include Bypassing a Slow Composer Repository, Slow Composer Followup, Getting Started with PHP Composer and Magento, PHP: The Right Way; A Review, PSR and Code Style Guidelines, Sellvana: Developer's Alpha Review, PHP Primer: Type Hints, PHP Primer: Namespaces, PHP Primer: Interfaces, Design Patterns, PHP, and Magento, and PHP-FPM and File Permissions. This is the most recent post in the series. In the past — three? four? let’s call it n — years, there’s been a lot written about PHP’s renaissance. The PSR standard(s), Composer’s day job […]
geschrieben von Stanislav Mihic
am 10. Juli 2017 - 10:38

Today is even impossible to imagine a good product detail page without product video/s. In Magento 2, adding videos to the product details page is quite easy. The major problem is in most cases with an initial setup. Most of the product videos already exist online, either on youtube.com or vimeo.com. In the first case, it’s the most popular video publishing platform and for vimeo.com we can say it is more or less dedicated to professionals and photo/video enthusiast.

Google, company behind youtube, set few rules regarding sharing and embedding videos to other domains, in our case our online store. They require to have enabled youtube API key if you want to use embedding youtube videos beyond simple grabbing embed code from youtube videos page.

  • In Magneto 2 first step is to configure youtube API key under settings. So first we go and enable google API key for youtube videos. https://developers.google.com/youtube/registering_an_application.

geschrieben von Covos
am 10. Juli 2017 - 10:33
Generell kann im Magento Backend unter System > Konfiguration > Kunden / Kundenkonfiguration > Anmeldeoptionen hinterlegt werden, ob der Kunde nach dem erfolgreichen Login in sein Benutzerkonto geleitet werden soll oder aber auf der Seite bleiben soll auf der er … Weiterlesen →
geschrieben von ehansen
am 7. Juli 2017 - 5:10

A note from Magento Commerce CEO, Mark Lavelle, on the newest MagentoLive venture in Europe.