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
languageis no longer used.
- Allows an optional query parameter
- Method
Changes related to export files.
FinSearchUnified\ShopwareProcess- Property visibility of
public $shophas been updated toprotected $shop. - Property name and visibility of
public $shopKeyhas been updated toprotected $shopkey. - Properties
$customerRepositoryand$articleRepositoryhave been removed. The new classFinSearchUnified\BusinessLogic\ExportServiceis now responsible for fetching products. - Signature of method
ShopwareProcess::getFindologicXmlhas been updated togetFindologicXml($start, $count, $save = false). - Signature of method
ShopwareProcess::getAllProductsAsXmlArrayhas been updated togetAllProductsAsXmlArray($start, $count).
- Property visibility of
FinSearchUnified\Bundle\ProductNumberSearch- Method
ProductNumberSearch::searchnow internally uses the newQueryBuilderandResponseParser. - Signature of method
ProductNumberSearch::redirectOnLandingpagehas been updated toredirectOnLandingpage(string $landingPageUri). - Signature of method
ProductNumberSearch::getFacetHandlerhas been updated togetFacetHandler(BaseFilter $filter). - Signature of method
ProductNumberSearch::createFacetshas been updated tocreateFacets(Criteria $criteria, ShopContextInterface $context, array $filters = []).
- Method
FinSearchUnified\Bundle\SearchBundleFindologic\NavigationQueryBuilderhas been removed and is replaced byFinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\NavigationQueryBuilder.FinSearchUnified\Bundle\SearchBundleFindologic\PartialFacetHandlerInterface- Signature of method
PartialFacetHandlerInterface::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter) - Signature of method
PartialFacetHandlerInterface::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilderhas been removed and is replaced byFinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\QueryBuilder.
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\CategoryConditionHandler- Signature of method
CategoryConditionHandler::generateConditionhas been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\PriceConditionHandler- Signature of method
PriceConditionHandler::generateConditionhas been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\ProductAttributeConditionHandler- Signature of method
ProductAttributeConditionHandler::generateConditionhas been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\ConditionHandler\SearchTermConditionHandler- Signature of method
SearchTermConditionHandler::generateConditionhas been updated togenerateCondition(ConditionInterface $condition, QueryBuilder $query, ShopContextInterface $context)
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\CategoryFacetHandler- Signature of method
CategoryFacetHandler::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter). - Signature of method
CategoryFacetHandler::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter).
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\ColorFacetHandler- Signature of method
ColorFacetHandler::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter). - Signature of method
ColorFacetHandler::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter).
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\ImageFacetHandler- Signature of method
ImageFacetHandler::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter). - Signature of method
ImageFacetHandler::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter).
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\RangeFacetHandler- Signature of method
RangeFacetHandler::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter). - Signature of method
RangeFacetHandler::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter).
- Signature of method
FinSearchUnified\Bundle\SearchBundleFindologic\FacetHandler\TextFacetHandler- Signature of method
TextFacetHandler::generatePartialFacethas been updated togeneratePartialFacet(FacetInterface $facet, Criteria $criteria, BaseFilter $filter). - Signature of method
TextFacetHandler::supportsFilterhas been updated tosupportsFilter(BaseFilter $filter).
- Signature of method
- All
SortingHandlersin namespaceFinSearchUnified\Bundle\SearchBundleFindologic\SortingHandlernow use the new query builder. FinSearchUnified\Bundle\StoreFrontBundle\Gateway\Findologic\Hydrator\CustomListingHydrator- Signature of method
CustomListingHydrator::hydrateFacethas been updated tohydrateFacet(BaseFilter $filter).
- Signature of method
FinSearchUnified\Bundle\StoreFrontBundle\Gateway\Findologic\CustomFacetGatewaynow uses the new query builder.
FinSearchUnified\Helper\Statichelper- Signature of method
StaticHelper::getXmlFromResponsehas been updated togetXmlFromRawResponse($responseText). - Signature of method
StaticHelper::setPromotionhas been updated tosetPromotion(Promotion $promotion = null). - Signature of method
StaticHelper::setSmartDidYouMeanhas been updated tosetSmartDidYouMean(SmartDidYouMean $smartDidYouMean). - Signature of method
StaticHelper::setQueryInfoMessagehas been updated tosetQueryInfoMessage(QueryInfoMessage $queryInfoMessage). - Method
StaticHelper::checkIfRedirecthas been removed without a replacement. - Method
StaticHelper::getProductsFromXmlhas been removed without a replacement. - Method
StaticHelper::getDetailIdForOrdernumberhas been removed without a replacement.
- Signature of method
Other changes that are not explicitly related to classes/methods.
FinSearchUnified/composer.json/FinSearchUnified/composer.lockfindologic/findologic-apiwith version^1.5is now required.ext-jsonwith 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\QueryBuilderFactoryno longer uses thehttp_clientargument.
- 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/vendorhave 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\Constantsreceived two new constantsCONTENT_TYPE_XMLfor responses of type XML.CONTENT_TYPE_JSONfor 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\SearchQueryBuilderis a new class which is responsible for building search requests to Findologic.FinSearchUnified\Bundle\SearchBundleFindologic\QueryBuilder\NavigationQueryBuilderis 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\BaseFiltergeneral purpose class for a filter. Every filter type must extend from it.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Promotionholds information about a promotion.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\SmartDidYouMeanis responsible for showing the "Did you mean" messages.FinSearchUnified\Bundle\SearchBundleFindologic\ResponseParser\Structis 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\QueryInfoMessagebase 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\Filteris 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::setContentTypeallows overriding the default content-type header.
- New method
- New class
FinSearchUnified\BusinessLogic\ExportErrorInformationis responsible for building error messages for debugging specific products. - New class
FinSearchUnified\BusinessLogic\ExportServiceis responsible for fetching all products and building error message in case a product id has been provided. - New class
FinSearchUnified\BusinessLogic\XmlInformationholds general information about the generated XML.