Typo3 8: debug queries

Seems like this has changed in the newest typo3 version, so I created a static function in my DebugService: public static function debugQuery($query){ $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(‘TYPO3\\CMS\\Extbase\\Object\\ObjectManager’); $queryParser = $objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters()); }

Magento2: AddFotoramaVideoEvents is not a function

When overriding the catalog_product_view.xml, it seems that the changes in ProductVideo are no longer applied – so the line has to be added manually: <container name=”product.info.media” htmlTag=”div” htmlClass=”product media” after=”product.info.main”> <block class=”Magento\Catalog\Block\Product\View\Gallery” name=”product.info.media.image” as=”media_image” template=”product/view/gallery.phtml”/> <block class=”Magento\ProductVideo\Block\Product\View\Gallery” name=”product.info.media.video” after=”product.info.media.image” template=”product/view/gallery.phtml”/> […]

Magento2: configurable products throw javascript error on click

The following error was thrown when clicking on a configurable product option: Uncaught TypeError: Cannot read property ‘updateData’ of undefined at $.(anonymous function).(anonymous function).updateBaseImage (http://domain.com/pub/static/frontend/Vendor/theme/de_DE/Magento_Swatches/js/swatch-renderer.js:920:28) Googling this problem quickly returns a hint that the parent classes must have the column […]

Magento2: attributes of a product from a custom attribute group

To get all the attributes from a custom group (named “customattributes”), I created a helper that looks like this: class Product extends \Magento\Framework\App\Helper\AbstractHelper { const CUSTOMATTRIBUTE_GROUP_NAME = ‘customattributes’; public $groupCollectionFactory; public function __construct( \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $groupCollectionFactory ){ $this->groupCollectionFactory = $groupCollectionFactory; } […]