All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Reset ecommerce
dataLayer
everywhere - Use
window.dataLayer
instead ofdataLayer
- Add currency and value to
view_cart
event
- Fix undeclared
$scopeConfig
in PHP 8.2
- Add additional
magento_sku
andmagento_id
to products
- Fix Invisible Cart Items #131 (@stijntrinos)
- Better fix for product edit pages
- Cast prices to float in orders and order items #133 (@lfolco)
- Also support product edit pages
- Optimise GetProductsFromCategoryBlockPlugin #135
- Prevent unknown
$html
argument in plugin to cause Fatal Error, not reported here, not duplicated
- Use tax config for prices in cart/order events #129 (@samicoman)
- Return prices as numbers instead of strings #128 (@samicoman)
- Make sure array does not get converted to string #125
- Removed duplicate IFRAME #126 (@elioermini)
- Use
Magento\Checkout\Model\Cart
instead ofCartInterface
#122
- Use core method instead of custom filter #123 (@sprankhub)
- Prevent duplication of items in the
view_item_list
event #119 (@samicoman)
- Prevent TypeError with final price #120
- Fix purchase event
- Prevent duplication of items in the purchase event when configurable product were ordered (@samicoman)
- Prevent failure when no eav attribute set in the config #117 (@samicoman)
- Use
sku
instead ofid
asitem_id
#114 (@samicoman) - Properly format product price #114 (@samicoman)
- Add categories per product #114 (@samicoman)
- Make sure to calculate value with right price in cart events #115 (@samicoman)
- Handle configurable products in purchase event #116 (@samicoman)
- Prevent reloading order per order-item
- Render debugging block only if available
- Finalize product clicks for Hyva
- Fix typo in payment validator
- Hyva event handling
- Basic compatibility with Hyva
- Backend model prevents saving container ID
- GA4 support
- Removed GA4/UA/EE support
- Extensibility via XML layout
- Support for EAV attributes of products and categories
- Click events
- Cart & checkout events
- Integration Tests
- Update ecommerce attributes #95 (@BorisovskiP)
- Prevent adding quote data to success page #91
- Add additional field for ecommerce push #93 (@sprankhub)
- Prevent adding quote data to success page #91
- Add additional field for ecommerce push #93 (@sprankhub)
- Prevent adding quote data to success page #91
- Add additional field for ecommerce push #93 (@sprankhub)
- Add ecommerce push on checkout success #90 (@sprankhub)
- Fix Duplicate Product Tracking #88 (@sprankhub)
- Add parent SKU #89 (@sprankhub)
Fix duplicate product loading #85 (@sprankhub)
- Prevent Fatal Error with
Amasty_Xlanding
- Fix error on cart configure page (@Irinina)
- Make sure \Yireo\GoogleTagManager2\ViewModel\Product::getProductPrice() always returns float
- Various styling issues (PHPCS, PHPStan)
- Increase framework requirement to 101.2 because of ViewModel bug
- Enabled debugging in JS (dumping attributes and config)
- New Attributes ViewModel to collect data after initialize output
- Add API interfaces to guarantee backwards compatibility in future
- Added XML layout container
gooogletagmanager_container
for most datalayer blocks - Added debug utility class
- Renamed existing plugin interceptors
- Rewrite x-magento-init into simple require() for performance
- Refactored
Category
block to no longer depend ononLoadedProductCollection
- Removed all block classes (
Script
,Category
,Product
,Generic
,Custom
) - Remove
\Yireo\GoogleTagManager2\Util\GetCurrentProduct
- Remove
\Yireo\GoogleTagManager2\Util\GetCurrentCategory
- Remove helper
- Remove container model
- Remove entire observer-based input method
- Remove ViewModelFactory
Re-add CSP whitelisting
- Fix block retrieval with Layout instead LayoutFactory (@sprankhub)
- Make sure view model is set correctly (@sprankhub)
- Fix error when block is not present
- Category Sort By not working properly with 2.4.X because of weird product loading (70)
- Refactored legacy Registry into request
- Move Config class to new namespace
- PHPCS fixes for Magento Marketplace compliance
- Magento 2.4 support
- Legacy CustomerData class
- Dev dependency with Mockery
- Upgrade PHPUnit to be 2.4 compatible
- Bumped minimum PHP to 7.2
- Add a new CSP whitelist for M2.3.5+
- Some small code quality things
- Add ACL file for configuring access to config
- Major rewrite to remove custom sections in favor of DI plugin
- No more reloading of sections
- Use currency code instead of currency symbol (@nicolas-medina)
- Move cookie-restriction-mode to JS to work with FPC
- Fix duplicate code
- Add compatibility with Magento 2.2 again (2.1 is dropped permanently)
- Fix invalid template path
- Fix reloading issues with quote
- First release with Changelog
- See GitHub commits for earlier messages