SALESmanago plugin for Magento2
-------------------------------
Version 4.18.1 23.10.2026
- Fixed customer creation logging caused by loading a customer without an ID
- Reduced newsletter callback lock contention and added retryable error responses
- Added integration coverage and CI checks for newsletter synchronization after customer save
- Fixed recursive subscriber saves during customer registration with Double Opt-In and plugin-based event handling
- Marked the internal Double Opt-In status change as programmatic and skipped saves for subscribers already in the Unconfirmed status
- Fixed store-scoped selection of plugin or observer newsletter handling and added Double Opt-In regression coverage

Version 4.18.0 02.09.2026
- Fixed issue with multiple products after cart recovery
- Removed gender form product mapping in product catalogs
- Added support for monitoring code Web Push notifications
- Added store-scoped public service worker endpoint for Web Push notifications

Version 4.16.0 29.06.2026
- Rebranded to Manago AI

Version 4.15.1 29.06.2026
- Fixed get quote from cart
- Added reload product per store in product catalogs.
- Re-upsert parent configurable when changing child simple.
- Added coverage for mass update/import/external integrations.
- Added Product Catalogs diagnostics.
- Fixed sync while batch updated product attribute.
- Added support for Magento\Catalog\Model\ResourceModel\Product\Action

Version 4.15.0 08.04.2026
- Added product description for product catalog mapping
- Fixed update customer email
- Update api-sso-util to 3.8.6

Version 4.14.1 25.2.2026
- Changed product image selection logic for simple products: if a simple product has its own image, it is used; if not, the parent product's image is used; if neither has an image, the default or empty image is sent.
- Fixed WARNING log message when CART event is sent without products
- Added InventoryService to retrieve product quantity for Product Catalogs synchronization, and secure using od MSI.

Version 4.14.0 29.10.2025
- Changed the mechanism for retrieving product quantity during Product Catalogs synchronization

Version 4.13.1 25.09.2025
- Fixed view errors in admin panel for product catalogs and exports
- Changed db tables migration mechanism to newer

Version 4.13.0 29.08.2025
- Fixed CART event updates for proper contact when monitored contact has changed
- Added nullable operator for php8.4 compatibility
- Fixed Quantity attribute value in product catalog mapping
- Added events logbook in database
- Added mechanism to prevent duplication of PURCHASE events based on events logbook

Version 4.12.3 25.07.2025
- Fixed after magento marketplace review
- Fixed export time for exported events 

Version 4.12.2 11.06.2025
- Added active module check in observers and plugin methods classes

Version 4.12.1 30.04.2025
- Added check for non logged integration in hooks and plugin methods

Version 4.12.0 16.04.2025
- Added support for product catalog mapping adapted attributes with type boolean
- Added support for product catalog mapping adapted attributes with type textarea
- Added support for product catalog mapping adapted attributes with type multiselect
- Added support for product catalog mapping adapted attributes with type date and price
- Added configurable option for available product flag in product catalogs
- Changed available and active flag logic in product catalogs
- Fixed parent product id in cart

Version 4.11.0 06.03.2025
- Added support for product catalog mapping adapted attributes with type select
- Fixed send attribute text instead of id where it possible in product catalog mapping
- Fixed CART event in cart removal item action
- Removed LocalizedException in ProductCatalogsController
- Update api-sso-util up to 3.7.0

Version 4.10.0 07.11.2024
- Added mapper view for product catalog
- Added listing attributes for product catalog mapper view
- Added save product catalog map
- Added mapping for system and custom details for sync and export products
- Added group product attributes by type in product catalog mapper view
- Added support for product catalog mapping adapted attributes with type text
- Fixed logout for vendor without api v3 key

Version 4.7.1 26.09.2024
- Fixed send order by increment id though asynchronous queue
- Changed to load order by id instead of increment id in order processing strategies

Version 4.7.0, 4.8.0 19.09.2024
- Added Product Catalogs default product category while category is not set
- Changed API v3 Key name to MAGENTO2_time() through update version of service api-sso-util
- Added verification of Product Catalog limits before displaying the Product Catalog creation view
- Changed that only the last 4 characters of the API v3 key are visible in the configuration
- Updated api-sso-util to ^3.3
- Added the ability to set api v3 error webhook url while login to the plugin
- Changed Benhauer\Salesmanago\Model\Event::buildEventDetails() to skip product parents in quote items export
- Changed Model/Exports/Orders to use Model/Event method
- Changed product catalogs refresh labels

Version 4.6.4 16.09.2024
- Fixed cart event transfer for graphql api

Version 4.6.3 03.09.2024
- Added php compatibility with 7.4

Version 4.6.2 13.08.2024
- Removed mixed type declaration in methods

Version 4.6.1 11.07.2024
- Fixed empty CART export
- Fixed mixed parameter in Benhauer\Salesmanago\Helper\Conf::setPurchaseValueWithoutShipment()

Version 4.6.0 25.04.2024
- Changed method duplicationCheck in all models

Version 4.5.0 08.04.2024
- Changed cart recovery url generation
- Added customer change email via plugin method feature
- Fixed system debug - wrong config table name (without prefix)
- Fixed products url while added them to product catalogs
- Fixed products prices while added them to product catalogs
- Fixed count of price for product with type configurable in sm products catalogs
- Fixed products ids while added them to product catalogs

Version 4.4.0 13.03.2024
- Added feature that's calculate event value with no tax
- Added feature that's calculate event value with no shipment
- Changed generation of api v3 error callback url key parameter
- Updated api-sso-util to 3.1.12
- Fixed bug with ApiV3Key generator on empty clientId
- Added customer_delete tag for customer delete action
- Fixed qty for configurable product types in external events
- Added smApp as view only configuration item and monitoring script parameter 
- Changed load configuration by subscriber store id in NewsletterStatusChange observer
- Changed a PurchaseObserver to refactor its methods
- Added magento plugin method to process newsletter subscribers
- Added wrap events details in square brackets feature

Version 4.3.2 08.12.2023
- Fixed ContactFactory creation of dynamic property
- Fixed compatibility with PHP8.2

Version 4.3.1 03.10.2023
- Improved setCookie method in Helper/CookieManager
- Changed text in configuration panel

Version 4.3.0 28.07.2023
- Added processing data through database queues
- Removed api v3 check/validation on admin login

Version 4.2.4 30.06.2023
- Improved exception naming
- Upgraded api-sso-util library to 3.1.8

Version 4.2.3 26.05.2023
- Improved Subscription Confirmation setup in the plugin
- Improved error handling for Magento Observers
- Updated api-sso-util library to 3.1.7

Version 4.2.2 07.04.2023
- Added detail 14 with ids of free products concatenated by comma
- Fixed multiple setting of smclient cookie

Version 4.2.1 22.02.2023
- Added advanced Product Catalog setup form
- Added graphQL support for AddConfigurableProductsToCart

Version 4.2.0 06.02.2023
- Added real-time product synchronization with Product Catalog
- Added API v3 connection and Product Catalog management 
- Added Product export 
- Added option to remove API v3 Key after its expiration
- Fixed cancellation of interrupted export

Version 4.1.9 23.12.2022
- Added configurable product types to be processed;
- Added product types: simple, virtual, downloadable, configurable, grouped, and bundle to be processed by default;
- Added choice of purchase processing mechanism by plugin/interceptor;
- Added alternative method to set shipping description for PURCHASE event;

Version 4.1.8 15.09.2022
- Improved "Enable Monitoring Code" label
- Fixed issue with setting cookies
- Improved error reporting during export
- Improved regex for location field
- Fixed count of failed packages during export

Version 4.1.7 12.07.2022
- Added copy buttons for callback urls in configuration;
- Added system debug tab;
- Fixed contact address country to ISO3166;
- Add configurable connection timeouts;
- Add configurable retry request feature;
- Update api-sso-util to 3.1.1

Version 4.1.6 02.06.2022
- Improved available settings before user is logged-in to SALESmanago account
- Fixed callbacks URLs when using "Add Store Code to URLs";
- Fixed expiry time for cookies;
- Added support for a virtual downloadable product type;
- Added validation for ADOI configuration fields;
- Removed overwriting empty tags field with default values;

Version 4.1.5 16.05.2022
- Added ignoring Contacts with specified email domains;
- Added coupon code (detail11) and discount value (detail12) to PURCHASE Events;
- Fixed transferring Contacts in PWA;
- Added GrandTotal (base) as purchase value to CART and PURCHASE Events;
- Fixed a bug with empty owner list after a first login;
- Fixed synchronization of newsletter statuses for a single session of user

Version 4.1.4 02.02.2022
- fix duplication PURCHASE events on order status changed;
- remove option to send PURCHASE with CRON method;

Version 4.1.3 25.01.2022
- add properties for contact from customer with customer group details;
- add metadata for contacts;
- add MetaDataHelper;

Version 4.1.2 21.01.2022
- refactor for exports;
- small changes with monitoring code;
- fix recovery cart out of stock qty error;
- refactor export js;

Version 4.1.1 10.12.2021
- add update owners list button to configuration;
- add disable monitoring code option in configuration;
- add fix processing CART and PURCHASE with virtual products;

Version 4.1.0 20.11.2021
- add export quotes as CART event;
- fix $shipping description in PURCHASE event while origData is null;
- change PURCHASE event detail4 from base currency code to order currency code;
- add to event CART detail4 with quote currency code;
- add to event PURCHASE detail5 with shipping description;
- add to event PURCHASE detail6 with order payment method;
- add to event PURCHASE detail7 with order shipping address countryId;
- add to events CART and PURCHASE detail8 with categories ids;
- add to events CART and PURCHASE detail9 with store locale;
- add to events CART and PURCHASE detail10 with metadata;

Version 4.0.9 03.11.2021
- fix null shipping_description for checkout_type_multishipping_create_orders_single hook;

Version 4.0.8 21.09.2021
- added configurable redirection after cart recovery;
- added configurable cookieTTl;
- added optionals order states for purchase events export;

Version 4.0.7 26.07.2021
- replace a reference to return type array CartRecovery::convertProductToEntity();
- fixed exports datetime parse;
- fixed add customer form admin panel;
- fixed overwrite empty billingAddress for Contact in Export;
- change product ids in PURCHASE events for configurable product types to exact product variant id;
- remove variant_id option form Event ProductId configuration select;
 
Version 4.0.6 07.07.2021
- fixed set tags to contact after purchase and guest purchase;

Version 4.0.5 25.06.2021
- functionality of cart recovery has been added;
- change product id to child product id in external events for configurable products;

Version 4.0.4 13.05.2021
- getting the shipping method as a SALESmanago 5th detail;
- add change\edit contact email from customer panel;

Version 4.0.3-p2 05.05.2021
 - fixed missing configuration active value;
  
Version 4.0.3.1 29.04.2021
 - fixed export event bug;  

Version 4.0.3 09.04.2021
 - fixed export mechanism;  
 - fixed login to component;
 - fixed add Purchase event for previous contactId;
 - fix set ApiDoubleOptIn while Synchronize from SM functionality is On;

Version 4.0.2 12.03.2021
 - fix purchase events;
 - fix admin create customer; 

Version 4.0.1 12.03.2021
 - removed unnecessary wish list observer;

Version 4.0.0 24.02.2021
 - configuration mechanism changed;
 - add custom endpoint field;
 - remove create account functionality;
 - totally refactored admin controllers and models;
 - change exports;
 - add smbanners and customjs options;
 - refactored hook mechanism;

Version 3.2.1 13.01.2021
 - add editable config location field;
 - add editable location input;
 - fix add customer form admin issue;
 - change monitoring code parent block (place);
 
Version 3.2.0 18.11.2020
 - implementation of new transfer method for contacts and events;
 - fix add smclient;
 - add synchronization;
 - fix config\login username;
 
Version 3.2.0 23.11.2020
 - fix syncRule;
 - fix newsletter subscribers statuses;
 - fix Go to configuration button
 
Version 3.0.9-p2 19.08.2020
 - fix newsletter subscription;

Version 3.0.9 06.08.2020
- fix callback optin/optout - when main config is logout callback not working
- fix sending emails to contact after export
- fix miss province after export

--

Version 3.0.9-RC1 26.07.2020
- fix callback optin/optout - when main config is 
logout callback not working

--

Version 3.0.8 16.07.2020
- fix optin/optout when confirm subscribe from url

--

Version 3.0.7-p1 18.06.2020
- add etc/acl.xml
- change TEST_MAIL value - the error concerns changes on the salesmanago side
- remove pageFactory from In and Out
- add guest purchase tag
- do not send the newsletter tag when the newsletter is not confirmed
- endpoint salesmanago.es

--

Version 3.0.6 21.02.2020
- adjust to magento 2.1.x;
- fix optout contact with guest purchase upsert;
- fix order cancelling;

--

Version 3.0.6-RC1 29.01.2020
- rename namespaces for Observers class;
- adjust to magento 2.1.x;
- fix optout contact with guest purchase upsert; 

--

Version 3.0.5-p1 22.01.2020
- remove sales_order_save_after duplicate hook for OrderStatusChanged;
- remove checkout_submit_all_after duplicate hook for KlarnaCheckout;

--

Version 3.0.5 23.12.2019
- change namespaces for AbstractModel;
- change logo;

--

Version 3.0.4 07.11.2019
- add new purchase events configuration;
- add metrix;
- minor bug fixes;

--

Version 3.0.3 07.10.2019
- UI fixes
- minor bug fixes

--

Version 3.0.2 Refreshed 12.09.2019
- fix welcome ui component error;

--

Version 3.0.1 Refreshed 08.09.2019
- fix exports;

--

Version 3.0.0 Refreshed 14.08.2019
- views upgrade to magento views;

--

Version 2.1.7 Refreshed 14.08.2019
- add new api method;

--

Version 2.1.6 Refreshed 30.07.2019
- add cancel event;
- views update;

--

Version 2.1.5 Refreshed 25.07.2019
- fix CART for new API;

--

Version 2.1.4 Refreshed 24.07.2019
- new API;

--

Version 2.1.3 Refreshed 05.07.2019
- refactoring tags manager;

--

Version 2.1.2 Refreshed 07.06.2019
- refactoring for magento 2.1.6;

--

Version 2.1.1 Refreshed 07.06.2019
- fix contact create;

--

Version 2.1.0 Refreshed 27.04.2019
- add store views;
- add order statuses/types;
- add Klarna-payment catch purchase;
- add storeId to each store views;

--

Version 2.0.7 Refreshed 19.04.2019
- fix newsletter callback;

--

Version 2.0.6 Refreshed 10.04.2019
- update service fix synchronize rule;

--

Version 2.0.5 Refreshed 18.03.2019
- add double opt in;

--

Version 2.0.4 Refreshed 24.01.2019
- add error handling;
- add advanced exports;
- security fixes;

--

Version 2.0.3 Refreshed 08.12.2018
- add error handling for observer;

--

Version 2.0.2 Refreshed 03.12.2018
- added Tagger;
- fix tags repeat;

--

Version 2.0.1 Refreshed 09.10.2018
- updated admin views;
- added synchronize rule to sychronize contact;

--

Version 2.0.0 Refreshed 06.09.2018
- new sso core;

--

Version 1.0.4 Refreshed 12.03.2018
- Remove underscore from variables; 
- Clear spaces;
- Use short array syntactics;
- Add comments;
- Remove clear SQL questions;
- Methods refactor;
- Remove logic from views files;

--

Version 1.0.3 Refreshed 30.03.2018
- Added StoreView tag when client upsert;
- Added CallBacks for optin and optout client;

--

Version 1.0.2 Refreshed 20.03.2018
- newsletter subscription fix

--

Version 1.0.1 Refreshed 09.01.2018
- Fixed package's name in composer ad registration.php + xml's

--

Version 1.0.0 Refreshed 06.10.2017
- New structure for marketplace and composer

--

Version 1.0.0 Released 15.02.2017

Integration Scope:
- Synchronize contact after:
    - Registration,
    - Login,
    - Purchase without register (as a guest),
    - Address modification,
    - Newsletter subscription modification,
- Synchronized external events:
    - Cart ( For signed up members and not - but with cookie )
    - Purchase ( For signed up members and guests )
- Adding "smclient" cookie:
    - For every client synchronization,
- Automatic Sm script adding,
- Standard integration fields, js working timeout and tags fields:
    - Newsletter tags,
    - Registration tags,
    - Purchase tags,
- Plugin translation for:
    - English,
    - Polish
    
Tested on:
    - Magento CE: 2.3.0
    - Magento CE: 2.3.5
    - Magento CE: 2.4.0
