Skip to content

Releases: remp2020/crm-products-module

2.6.0

25 May 08:35
Compare
Choose a tag to compare
  • Added shop payments success widget space. remp/crm#2811

2.5.0

21 Apr 12:26
Compare
Choose a tag to compare
  • BREAKING: Changed tracking from Universal Analytics to Google Analytics 4.
    • Removed ga() calls and added data layer events.
    • Include Google Tag Manager in your page header code (/admin/config-admin/ -> Shop page) to process data layer.
  • Fixed disabling of validation of billing address in checkout, previously billing address was validated even if it was not processed. remp/heldpdesk#1825
  • Fixed deprecation warning when searching products by tags (search string was empty and str_replace complained). remp/crm#2831
  • Fixed checkout of empty cart (eg. products were removed in other tab). remp/crm#2829

2.4.0

24 Mar 07:52
Compare
Choose a tag to compare
  • Fixed saving empty tag or tag that already exists. remp/crm#2800
  • IMPORTANT: Added transformation of products.code to URL friendly string before storing it into database. remp/crm#2628
    • All new products and all changes to code property will result in URL friendly string. It won't be transformed if code is not changed while updating product.
    • IMPORTANT: In future we will enforce URL friendly UNIQUE code for all products. You'll have to manually redirect old URLs which do not fulfill these conditions to new URLs.
      // example route for redirection of old canonical URL to new canonical URL
      // (see all supported routes in ProductsModule.php)
      $router->prepend(new Route($shopHost . '/<action show>/1234/mäkčene-a-dĺžne-ľščťžýáíé', [
          'module' => 'Products',
          'presenter' => 'Shop',
          'action' => 'show',
          'id' => 1234,
          'code' => 'makcene-a-dlzne-lsctzyaie',
      ], Route::ONE_WAY));
  • Changed ProductBuilder to use Repository::insert() instead of Builder::store().

2.3.0

23 Feb 20:14
Compare
Choose a tag to compare
  • BREAKING: Changed signature of ProductSaveEvent to accept and provide ActiveRow $product instead of int $productId. remp/crm#2761
    • If you emit this event, replace $productId with $product as the first parameter of event constructor.
    • If you listen to this event, replace use of $event->getProductId() with $event->getProduct().
  • BREAKING: Changed signature of OrderStatusChangeEvent to accept and provide ActiveRow $order instead of int $orderId. remp/crm#2761
    • If you emit this event, replace $orderId with $order as the first parameter of event constructor.
    • If you listen to this event, replace use of $event->getOrderId() with $event->getOrder().

2.2.0

27 Jan 12:38
Compare
Choose a tag to compare
  • Fixed deprecation warning related to the date formatting in product templates. remp/crm#2716

2.1.0

25 Nov 14:07
Compare
Choose a tag to compare
  • BREAKING: Changed signature of PostalFeeMessageConditionInterface. remp/crm#2637
    • The method getReachedMessage now requires two parameters, cart $products and postal fee condition $value.
    • New method getNotReachedMessage which is intended to be displayed for users, who haven't reached the condition yet. Method accepts the same set of parameters.
  • Fixed search products by author query condition. remp/crm#1872
  • Added SortShopProductsFormValidationDataProviderInterface used in SortShopProductsFormFactory to provide a way to define custom sorting (eg. alternate products of two categories). remp/crm#2464
  • Changed the registration of widgets - module now uses improved LazyWidgetManager and all widgets extend BaseLazyWidget class. remp/crm#2075
  • Fixed mistyped YesNoHelper latte filter call in TagsAdmin/default.latte file. Should be yesNo instead of YesNo. remp/helpdesk#1536
  • Fixed missing translations in the flash messages. remp/crm#2636
  • Added ability to set form defaults for ProductsFormFactory. remp/crm#2648

1.2.3

03 Nov 12:49
Compare
Choose a tag to compare
  • Fixed UX bug on submitting gift fields after login and UX bug on billing address form with no delivery adress. remp/crm#1019

2.0.0

26 Aug 14:04
Compare
Choose a tag to compare
  • BREAKING: Changed PHP version requirement to 8.0. remp/crm#2519
  • BREAKING: Changed Latte version from v2 to v3. remp/crm#2519
  • Changed that user stats computed by products:calculate_averages command (product_payments, product_payments_amount) are now stored and loaded from/to user_stats table, instead of user_meta table. remp/crm#2207
    • Added new command option --delete, that deletes old stats data first from both user_stats and user_meta (where data was stored previously) tables.
    • Added command option --user_id to compute values for single user.
  • Removed the rounding of CZK prices from the product's list. remp/crm#2076
  • Refactored presenters to use PreviousNextPaginator instead of VisualPaginator. remp/crm#2512
  • Fixed UX bug on submitting gift fields after login. And UX bug on billing address form with no delivery adress. remp/crm#1019
  • Added screen for products search results. remp/crm#1872

1.2.1

30 Jun 09:17
Compare
Choose a tag to compare
  • Fixed issues with filter registration appearing after latte/latte update to version 2.11.5. remp/crm#2511

1.2.0

30 Jun 09:17
Compare
Choose a tag to compare
  • Fixed division by zero exception thrown when calculating the average product amount per user for segments that contain zero users. remp/crm#2473
  • Fixed graphs on dashboard to consider date range filter. remp/crm#2450