Skip to content

Releases: remp2020/crm-products-module

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

1.1.0

02 Jun 06:42
Compare
Choose a tag to compare
  • Added sold shop products by tags graph to products dashboard. remp/crm#2249
  • Removed hardcoded shop title from translations used in title elements. remp/crm#2299

1.0.0

31 Mar 08:44
Compare
Choose a tag to compare

Changelog

  • Added the prefilling of company name in the case of same billing and shipping address. remp/crm#2251
  • Changed translation files. remp/crm#2276
    • Use double quotes around one single quote.
    • Switch tabs to 4 spaces. Weblate can parse only YAML format (doesn't support tabs).
    • Change extension from NEON to YML.
  • Added the validation of international phone number format into checkout form. remp/crm#2301
  • Added shop menu additional items SimpleWidget widget placeholder. remp/novydenik#894
  • Added sort shop products admin screen. remp/crm#2156

Nette 3.0

  • Changed Compiler::loadDefinitions() (deprecated) to CompilerExtension->loadDefinitionsFromConfig(). remp/crm#1979
  • Removed calling parent constructor from widgets. Constructor was removed from Nette\ComponentModel\Component. remp/crm#1979
  • Fixed deprecation of second parameter $whenBrowserIsClosed in Nette\Security\User->setExpiration() used within sign-in. remp/crm#1979
  • Changed nette/forms method from setAttribute() to setHtmlAttribute(). remp/crm#1979
  • Fixed capitalized class name JSON to Json (Nette\Utils\Json). remp/crm#1979

Nette 3.1

  • Changed the way how routes are added to router. From array $router[] = new Route() to method call $router->addRoute(). remp/crm#1979
  • Changed deprecated Nette\Database\Context to Nette\Database\Explorer. remp/crm#1979
  • Changed deprecated Nette\Database classes. Nette\Database\IRow and Nette\Database\Table\IRow are deprecated. Using Nette\Database\Table\ActiveRow instead. remp/crm#1979
  • Changed deprecated Nette\Localization\ITranslator to Nette\Localization\Translator. remp/crm#1979
  • Fixed deprecated use of vars without dollar sign. {var myVariable = ...} changed to {var $myVariable = ...}. remp/crm#1979