Changes: v10.4.2...v11.0.0
Changelog: v11.0.0 Release
This file is irrelevant for you in case you do not have an extension plugin.
This file should help you upgrade from 10.x to 11.x, by providing you with
information that you will need, in case you have an extension plugin that
overrides or implements any classes of the main plugin.
Information about private methods won't be preserved.
Shopware_Controllers_Frontend_Findologic
- Method
indexAction
- Allows an optional query parameter
productId
, which may be used to get only the product, or details about why that product cannot be exported. - Query parameter
language
is no longer used.
- Allows an optional query parameter
- Method
Changes related to export files.
FinSearchUnified\ShopwareProcess
- Property visibility of
public $shop
has been updated toprotected $shop
. - Property name and visibility of
public $shopKey
has been updated toprotected $shopkey
. - Properties
$customerRepository
and$articleRepository
have been removed. The new classFinSearchUnified\BusinessLogic\ExportService
is now responsible for fetching products. - Signature of method
ShopwareProcess::getFindologicXml
has been updated togetFindologicXml($start, $count, $save = false)
. - Signature of method
ShopwareProcess::getAllProductsAsXmlArray
has been updated togetAllProductsAsXmlArray($start, $count)
.
- Property visibility of
FinSearchUnified\Bundle\ProductNumberSearch
- Method
ProductNumberSearch::search
now internally uses the newQueryBuilder
andResponseParser
. - Signature of method
ProductNumberSearch::redirectOnLandingpage
has been updated toredirectOnLandingpage(string $landingPageUri)
. - Signature of method
ProductNumberSearch::getFacetHandler
has been updated togetFacetHandler(BaseFilter $filter)
. - Signature of method
ProductNumberSearch::createFacets
has been updated tocreateFacets(Criteria $criteria, ShopContextInterface $context, array $filters = [])
.
- Method
FinSearchUnified\Bundle\SearchBundleFindologic\NavigationQueryBuilder
has been removed and is replaced byFinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\NavigationQueryBuilder
.FinSearchUnified\Bundle\SearchBundleFindologic\PartialFacetHandlerInterface
- Signature of method
PartialFacetHandlerInterface::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
- Signature of method
PartialFacetHandlerInterface::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder
has been removed and is replaced byFinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\QueryBuilder
.
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\CategoryConditionHandler
- Signature of method
CategoryConditionHandler::generateCondition
has been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\PriceConditionHandler
- Signature of method
PriceConditionHandler::generateCondition
has been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\ProductAttributeConditionHandler
- Signature of method
ProductAttributeConditionHandler::generateCondition
has been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\SearchTermConditionHandler
- Signature of method
SearchTermConditionHandler::generateCondition
has been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\CategoryFacetHandler
- Signature of method
CategoryFacetHandler::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
. - Signature of method
CategoryFacetHandler::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
.
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\ColorFacetHandler
- Signature of method
ColorFacetHandler::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
. - Signature of method
ColorFacetHandler::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
.
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\ImageFacetHandler
- Signature of method
ImageFacetHandler::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
. - Signature of method
ImageFacetHandler::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
.
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\RangeFacetHandler
- Signature of method
RangeFacetHandler::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
. - Signature of method
RangeFacetHandler::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
.
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\TextFacetHandler
- Signature of method
TextFacetHandler::generatePartialFacet
has been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter)
. - Signature of method
TextFacetHandler::supportsFilter
has been updated tosupportsFilter(BaseFilter $filter)
.
- Signature of method
- All
SortingHandlers
in namespaceFinSearchUnified\Bundle\SearchBundleFindologic\SortingHandler
now use the new query builder. FinSearchUnified\Bundle\StoreFrontBundle\Gateway\Findologic\Hydrator\CustomListingHydrator
- Signature of method
CustomListingHydrator::hydrateFacet
has been updated tohydrateFacet(BaseFilter $filter)
.
- Signature of method
FinSearchUnified\Bundle\StoreFrontBundle\Gateway\Findologic\CustomFacetGateway
now uses the new query builder.
FinSearchUnified\Helper\Statichelper
- Signature of method
StaticHelper::getXmlFromResponse
has been updated togetXmlFromRawResponse($responseText)
. - Signature of method
StaticHelper::setPromotion
has been updated tosetPromotion(Promotion $promotion = null)
. - Signature of method
StaticHelper::setSmartDidYouMean
has been updated tosetSmartDidYouMean(SmartDidYouMean $smartDidYouMean)
. - Signature of method
StaticHelper::setQueryInfoMessage
has been updated tosetQueryInfoMessage(QueryInfoMessage $queryInfoMessage)
. - Method
StaticHelper::checkIfRedirect
has been removed without a replacement. - Method
StaticHelper::getProductsFromXml
has been removed without a replacement. - Method
StaticHelper::getDetailIdForOrdernumber
has been removed without a replacement.
- Signature of method
Other changes that are not explicitly related to classes/methods.
FinSearchUnified/composer.json
/FinSearchUnified/composer.lock
findologic/findologic-api
with version^1.5
is now required.ext-json
with version*
is now required.
FinSearchUnified/plugin.xml
- Plugin label has been updated to
Findologic - Search & Navigation Platform
.
- Plugin label has been updated to
FinSearchUnified/Resources/services.xml
- Service
FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\QueryBuilderFactory
no longer uses thehttp_client
argument.
- Service
FinSearchUnified/Resources/views/frontend/search/fuzzy.tpl
- Filters are now explicitly checked to show the query info message.
FinSearchUnified/Resources/snippets/frontend/search/query_info_message.ini
- Filter-specific translations
frontend/search/query_info_message/cat
/frontend/search/query_info_message/vendor
have been merged tofrontend/search/query_info_message/filter
.
- Filter-specific translations
FinSearchUnified/Resources/views/frontend/listing/filter/_includes/filter-color-selection.tpl
- The color filter template has been slightly adapted.
- New LESS file for the color filter
FinSearchUnified/Resources/views/frontend/less/color-filter.less
We have added some new classes to make the overall code easier readable and at the same time easier to extend.
FinSearchUnified\Constants
received two new constantsCONTENT_TYPE_XML
for responses of type XML.CONTENT_TYPE_JSON
for responses of type JSON.
FinSearchUnified\ShopwareProcess
- Added a new property
protected $exportService
. - New method
getProductsById($productId)
allows for searching for a product by a specific id. Returns errors in case the product cannot be exported. - New method
setUpExportService
, which initializes the export service. - New method
getExportService
, which returns the export service.
- Added a new property
FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\SearchQueryBuilder
is a new class which is responsible for building search requests to Findologic.FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\NavigationQueryBuilder
is a new class which is responsible for building navigation requests to Findologic.
This namespace is responsible for parsing the response from Findologic.
FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Filter\BaseFilter
general purpose class for a filter. Every filter type must extend from it.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Promotion
holds information about a promotion.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\SmartDidYouMean
is responsible for showing the "Did you mean" messages.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Struct
is a general purpose class for a serializable object holding certain data.
Holds all query info messages, such as "Search results for query xxx". May show a different message depending on the user action.
FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\QueryInfoMessage\QueryInfoMessage
base class for all other query info messages. Every query info message must extend from this class.
All supported filter types can be found in here.
FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Filter\Filter
is the base class for all filters.
Specific implementation for the XML_2.1
output adapter response format.
FinSearchUnified\Helper\Statichelper
- New method
StaticHelper::isVersionLowerThan($version)
allows for checking the Shopware version.
- New method
FinSearchUnified\Helper\HeaderHandler
- New method
HeaderHandler::setContentType
allows overriding the default content-type header.
- New method
- New class
FinSearchUnified\BusinessLogic\ExportErrorInformation
is responsible for building error messages for debugging specific products. - New class
FinSearchUnified\BusinessLogic\ExportService
is responsible for fetching all products and building error message in case a product id has been provided. - New class
FinSearchUnified\BusinessLogic\XmlInformation
holds general information about the generated XML.