Releases: remp2020/crm-products-module
Releases · remp2020/crm-products-module
2.4.0
- 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 ifcode
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));
- All new products and all changes to
- Changed
ProductBuilder
to useRepository::insert()
instead ofBuilder::store()
.
2.3.0
- BREAKING: Changed signature of
ProductSaveEvent
to accept and provideActiveRow $product
instead ofint $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()
.
- If you emit this event, replace
- BREAKING: Changed signature of
OrderStatusChangeEvent
to accept and provideActiveRow $order
instead ofint $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()
.
- If you emit this event, replace
2.2.0
2.1.0
- 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.
- The method
- Fixed search products by
author
query condition. remp/crm#1872 - Added
SortShopProductsFormValidationDataProviderInterface
used inSortShopProductsFormFactory
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 extendBaseLazyWidget
class. remp/crm#2075 - Fixed mistyped
YesNoHelper
latte filter call inTagsAdmin/default.latte
file. Should beyesNo
instead ofYesNo
. 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
2.0.0
- 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/touser_stats
table, instead ofuser_meta
table. remp/crm#2207- Added new command option
--delete
, that deletes old stats data first from bothuser_stats
anduser_meta
(where data was stored previously) tables. - Added command option
--user_id
to compute values for single user.
- Added new command option
- Removed the rounding of CZK prices from the product's list. remp/crm#2076
- Refactored presenters to use
PreviousNextPaginator
instead ofVisualPaginator
. 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
1.2.0
1.1.0
1.0.0
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) toCompilerExtension->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
inNette\Security\User->setExpiration()
used within sign-in. remp/crm#1979 - Changed
nette/forms
method fromsetAttribute()
tosetHtmlAttribute()
. remp/crm#1979 - Fixed capitalized class name
JSON
toJson
(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
toNette\Database\Explorer
. remp/crm#1979 - Changed deprecated
Nette\Database
classes.Nette\Database\IRow
andNette\Database\Table\IRow
are deprecated. UsingNette\Database\Table\ActiveRow
instead. remp/crm#1979 - Changed deprecated
Nette\Localization\ITranslator
toNette\Localization\Translator
. remp/crm#1979 - Fixed deprecated use of vars without dollar sign.
{var myVariable = ...}
changed to{var $myVariable = ...}
. remp/crm#1979