In this document you will find a changelog of the important changes related to the code base of Shopware.
- Increased minimum required PHP version to PHP >= 5.6.4.
- Added CSRF protection to frontend and backend which is enabled by default.
- OptOut by implementing
Shopware\Components\CSRFWhitelistAwareinterface - Added
X-CSRF-Tokento every ajax request - Added
__csrf_tokento every html form in frontend - Added
__csrf_tokenparam to every ExtJS form submit via override inExtJs/overrides/Ext.form.Base.js - Added
csrfProtectionconfig options to disable CSRF protection - Special thanks to: ltepner
- See: https://developers.shopware.com/developers-guide/csrf-protection/
- OptOut by implementing
- Updated Symfony Components to version 2.8 LTS
- Replaced polyfill provided by
indigophp/hash-compatwithsymfony/polyfill-php56 - Added polyfill for
random_bytes()andrandom_int()viaparagonie/random_compat - Removed
client_checkandreferer_checkfrom the config in favor of the CSRF protection. - Removed session variables
__SW_REFERERand__SW_CLIENT - Added AdvancedMenu feature to configure menu opening delay on mouse hover
- Added the ability to add custom CSS classes to emotion elements in the backend.
- Multiple classnames can be added by separating them with whitespaces.
- Added new
css_classcolumn to thes_emotion_elementstable.
- Removed deprecated columns
s_filter_values.value_numericands_filter_options.default - Updated
monolog/monologto version 1.17.2 - Added HTML code widget for the shopping worlds which lets the user enter actual Smarty & JavaScript code which will be included like it is
- The Smarty code has access to all globally available Smarty variables
- Added the following fields to status emails:
billing_additional_address_line1billing_additional_address_line2shipping_additional_address_line1shipping_additional_address_line2
- Replaced
bowerwithnpmto manage the frontend dependencies- The dependencies can now be installed using the command:
npm install && npm run build - Removed the file
vendors/less/open-sans-fontface/open-sans.less. It's now located underpublic/src/less/_components/fonts.less
- The dependencies can now be installed using the command:
- Deprecated
Shopware_BootstrapandEnlight_Bootstrapcommonly accesed byShopware()->Bootstrap(). - Removed deprecated methods and variables:
sArticle.sVoteAverangein product listingssNote.sVoteAverangein note listingblog.media.path- Removed methods Shopware\Models\Menu\Repository::addItem() and Shopware\Models\Menu\Repository::save()
fileproperty of banner mappings- Removed method sOrder::sManageEsdOrder()
sBanner.imgvariable- emotion category teaser
imageproperty
- Removed the following events:
sArticles::sGetCheapestPrice::replacesArticles::sGetCheapestPrice::aftersArticles::sCalculatingPrice::replacesArticles::sCalculatingPrice::replacesArticles::getArticleListingCover::replacesArticles::getArticleListingCover::aftersArticles::calculateCheapestBasePriceData::replacesArticles::calculateCheapestBasePriceData::aftersArticles::sGetArticleProperties::replacesArticles::sGetArticleProperties::aftersArticles::sGetArticlePictures::replacesArticles::sGetArticlePictures::aftersArticles::sGetPricegroupDiscount::replacesArticles::sGetPricegroupDiscount::aftersArticles::sGetUnit::replacesArticles::sGetUnit::aftersArticles::sGetArticlesAverangeVote::replacesArticles::sGetArticlesAverangeVote::aftersArticles::sGetArticlesVotes::replacesArticles::sGetArticlesVotes::afterShopware_Modules_Articles_GetPromotionById_FilterResultShopware_Modules_Articles_GetArticleById_FilterArticle
- The following article arrays are now indexed by their order number
- top seller
- emotion slider data
- recommendation data (also bought and also viewed)
- similar and related articles
- Removed deprecated table
s_user_debit\Shopware\Models\Customer\Customer::$debit\Shopware\Models\Customer\Customer::getDebit()\Shopware\Models\Customer\Customer::setDebit()
- Added new configuration field to the emotion banner widget for link target.
- Added composer dependency for Symfony Form and implemented FormBundle
- Changed constructor of
\Shopware\Components\Theme\PathResolver - Changed constructor of
\Shopware_Components_Snippet_Manager - Changed constructor of
\Shopware\Bundle\PluginInstallerBundle\Service\DownloadService - Changed signature of
Shopware\Bundle\SearchBundleDBAL\PriceHelperInterface::getSelection, now expectsProductContextInterfaceinstead ofShopContextInterface - Changed signature of
Shopware\Bundle\SearchBundleDBAL\PriceHelper::getSelectionto match changed interface, now expectsProductContextInterfaceinstead ofShopContextInterface - Changed signature of
Shopware\Bundle\StoreFrontBundle\Service\CheapestPriceServiceInterface::getList, now expectsProductContextInterfaceinstead ofShopContextInterface - Changed signature of
Shopware\Bundle\StoreFrontBundle\Service\CheapestPriceServiceInterface::get, now expectsProductContextInterfaceinstead ofShopContextInterfaceandListProductinstead ofBaseProduct - Changed signature of
Shopware\Bundle\StoreFrontBundle\Service\Core\CheapestPriceService::getListto match changed interface, now expectsProductContextInterfaceinstead ofShopContextInterface - Changed signature of
Shopware\Bundle\StoreFrontBundle\Service\Core\CheapestPriceService::getto match changed interface, now expectsProductContextInterfaceinstead ofShopContextInterfaceandListProductinstead ofBaseProduct - Deprecated methods now use
trigger_errorof typeE_USER_DEPRECATED - Changed default error_reporting to
E_ALL & ~E_USER_DEPRECATED - Deprecated Class
Enlight_Application - Deprecated
Enlight_Application::Instance()andEnlight(), useShopware()instead - Deprecated
Shopware\Kernel::getShopware() - Deprecated
Shopware::App()/Shopware()->App() - Deprecated
Shopware::Environment()/Shopware()->Environment() - Deprecated
Shopware::OldPath()/Shopware()->OldPath() - Deprecated
Shopware::setEventManager()/Shopware()->setEventManager() - Deprecated
Enlight_Application::CorePath()/Shopware()->CorePath() - Deprecated
Enlight_Application::Path()/Shopware()->Path() - Deprecated
Enlight_Application::ComponentsPath()/Shopware()->ComponentsPath() - Deprecated
Enlight_Application::DS() - Removed
Enlight_Application::setOptions() - Removed
Enlight_Application::getOptions() - Removed
Enlight_Application::getOption() - Removed
Enlight_Application::setPhpSettings() - Removed
Enlight_Application::setIncludePaths() - Removed
Enlight_Application::__callStatic() - Removed the following models
Shopware.apps.Customer.view.detail.BillingShopware.apps.Customer.view.detail.Shipping
- Removed fax field form billing addresses
- Updated
ongr/elasticsearch-dslto v2.0.0, see https://github.com/ongr-io/ElasticsearchDSL/blob/master/CHANGELOG.md#v200-2016-03-03 for BC breaks. - Renamed block 'frontend_blog_bookmarks_deliciosus' to 'frontend_blog_bookmarks_delicious'
- Deprecated
\Shopware\Models\Article\Element - Removed the following templates including their snippets and blocks
frontend/account/billing.tplfrontend/account/billing_checkout.tplfrontend/account/content_right.tplfrontend/account/select_address.tplfrontend/account/select_billing.tplfrontend/account/select_billing_checkout.tplfrontend/account/select_shipping.tplfrontend/account/select_shipping_checkout.tplfrontend/account/shipping.tplfrontend/account/shipping_checkout.tplfrontend/checkout/cart_left.tplfrontend/checkout/confirm_left.tpl
- Removed
sAdmin::sGetPreviousAddresses() - Removed
sAdmin::sUpdateBilling() - Removed
sAdmin::sUpdateShipping() - Removed
sAdmin::sValidateStep1() - Removed
sAdmin::sValidateStep2() - Removed
sAdmin::sValidateStep2ShippingAddress() - Removed
billingAction()inControllers/Frontend/Account.php - Removed
shippingAction()inControllers/Frontend/Account.php - Removed
saveBillingAction()inControllers/Frontend/Account.php - Removed
saveShippingAction()inControllers/Frontend/Account.php - Removed
selectBillingAction()inControllers/Frontend/Account.php - Removed
selectShippingAction()inControllers/Frontend/Account.php - Moved block
frontend_checkout_confirm_left_billing_addressoutside panel body - Moved block
frontend_checkout_confirm_left_shipping_addressoutside panel body - Removed block
frontend_checkout_finish_info, usefrontend_checkout_finish_information_wrapperinstead - Removed the following backend models including their smarty blocks
Shopware.apps.Supplier.model.AttributeShopware.apps.Customer.model.BillingAttributesShopware.apps.Customer.model.ShippingAttributesShopware.apps.Customer.model.AttributeShopware.apps.Blog.model.AttributeShopware.apps.Form.model.AttributeShopware.apps.MediaManager.model.AttributeShopware.apps.Property.model.AttributeShopware.apps.Config.model.form.AttributeShopware.apps.Voucher.model.AttributeShopware.apps.Emotion.model.AttributeShopware.apps.Banner.model.AttributeShopware.apps.Order.model.AttributeShopware.apps.Order.model.BillingAttributeShopware.apps.Order.model.PositionAttributeShopware.apps.Order.model.ReceiptAttributeShopware.apps.Order.model.ShippingAttributeShopware.apps.Category.model.AttributeShopware.apps.Mail.model.AttributeShopware.apps.Payment.model.AttributeShopware.apps.Shipping.model.AttributeShopware.apps.Site.model.AttributeShopware.apps.UserManager.model.Attribute
- The following repository methods no longer select attributes or have been removed entirely
\Shopware\Models\Article\Repository::getSupplierQueryBuilder()\Shopware\Models\Customer\Repository::getCustomerDetailQueryBuilder()\Shopware\Models\Customer\Repository::getShippingAttributesQuery()\Shopware\Models\Customer\Repository::getShippingAttributesQueryBuilder()\Shopware\Models\Customer\Repository::getBillingAttributesQuery()\Shopware\Models\Customer\Repository::getBillingAttributesQueryBuilder()\Shopware\Models\Customer\Repository::getAttributesQuery()\Shopware\Models\Customer\Repository::getAttributesQueryBuilder()\Shopware\Models\Blog\Repository::getBackedDetailQueryBuilder()\Shopware\Models\Emotion\Repository::getEmotionDetailQueryBuilder()\Shopware\Models\ProductFeed\Repository::getDetailQueryBuilder()\Shopware\Models\Banner\Repository::getBannerMainQuery()\Shopware\Models\Order\Repository::getBackendOrdersQueryBuilder()\Shopware\Models\Order\Repository::getBackendAdditionalOrderDataQuery()
- Removed attribute associations from the following backend models
Shopware.apps.Supplier.model.SupplierShopware.apps.Customer.model.CustomerShopware.apps.Blog.model.DetailShopware.apps.Form.model.FormShopware.apps.Property.model.SetShopware.apps.MediaManager.model.MediaShopware.apps.Emotion.model.EmotionShopware.apps.Config.model.form.CountryShopware.apps.Banner.model.BannerDetailShopware.apps.Voucher.model.DetailShopware.apps.Order.model.ReceiptShopware.apps.Order.model.PositionShopware.apps.Order.model.OrderShopware.apps.Category.model.DetailShopware.apps.Customer.model.CustomerShopware.apps.Payment.model.PaymentShopware.apps.Shipping.model.DispatchShopware.apps.Site.model.NodesShopware.apps.UserManager.model.UserShopware.apps.UserManager.model.UserDetail
- Removed the following backend files:
themes/Backend/ExtJs/backend/blog/view/blog/detail/sidebar/attributes.jsthemes/Backend/ExtJs/backend/config/store/form/attribute.jsthemes/Backend/ExtJs/backend/config/view/form/attribute.jsthemes/Backend/ExtJs/backend/config/model/form/attribute.js
- Changed position of
Shopware.apps.Customer.view.detail.Billingfields - Changed position of
Shopware.apps.Customer.view.detail.Shippingfields - Fixed Shopware.form.plugin.Translation, the plugin can now be used in multiple forms at the same time.
- Removed
clear,onOpenTranslationWindow,getFieldValuesandonGetTranslatableFieldsfunction
- Removed
\Shopware\Bundle\StoreFrontBundle\Gateway\GraduatedPricesGatewayInterfacerequires now a providedShopContextInterface- Categories of
Shopware\Components\Api\Resource\Article::getArticleCategories($articleId)are no longer indexed by category id - Moved
<form>element in checkout confirm outside the agreement box to wrap around address and payment boxes - Removed smarty variable
sCategoryInfoin listing and blog controllers. UsesCategoryContentinstead. - Added creation of custom
__construct()method toShopware\Components\Model\Generator, which initializes any default values of properties when generating attribute models - Removed
sAdmin::sUpdateAccount() - Removed
saveAccount()inControllers/Frontend/Account.php - Moved field
birthdayfrom billing address to customer - Added validation of order number to
Shopware\Components\Api\Resource\Variant::prepareData()to respond with meaningful error message for duplicate order numbers - Added service
shopware.number_range_managerfor safely retrieving the next number of a number range (s_order_number) - Changed the following methods to use the
shopware.number_range_managerservice for retrieving the next number of a range:sAdmin::assignCustomerNumber()sOrder::sGetOrderNumber()Shopware_Components_Document::saveDocument()
- HttpCache: Added possibility to add multiple, comma separated proxy URLs
- API cache endpoint: Changed batchDelete in a way, that multiple cache types can be invalidated
- Removed
landingPageTeaserandlandingPageBlockfields from emotion shopping worlds. - Removed unnecessary method
getCampaignByCategoryQuery()fromModels/Emotion/Repository.php. - Removed template blocks for campaign boxes corresponding to the removed emotion fields.
frontend_index_left_campaigns_topfrontend_index_left_campaigns_middlefrontend_index_left_campaigns_bottomfrontend_blog_index_campaign_topfrontend_blog_index_campaign_middlefrontend_blog_index_campaign_bottom
- Removed unnecessary template file for campaign boxes
frontend/campaign/box.tpl. - Removed third party jQuery plugin dependency
masonry. - Deprecated
initMasonryGridmethod andplugin/swEmotion/onInitMasonryGridevent injquery.emotion.js - Removed shopping world mode
masonry. The fallback is the new modefluid. - Replaced old LESS mixin
createColumnSizesfor new grid mixinscreateGridandcreateColumnsin_components/emotion.less. - Added new blocks to
widgets/emotion/index.tplfor better overriding of the configuration.widgets/emotion/index/configwidgets/emotion/index/attributeswidgets/emotion/index/element/config
- Changed markup and styling on checkout confirm and finish page
- Support arbitrary namespaces for doctrine entities instead of the
Shopware\CustomModelsnamespace. - Deprecated
Shopware()->Models()->__call() - Removed unused database fields
s_core_config_elements.filters,s_core_config_elements.validators,s_core_config_forms.scope - Removed deprecated
\Shopware\Models\Menu\Repository::save()and\Shopware\Models\Menu\Repository::addItem() - Removed event
Shopware_Modules_Order_SaveOrderAttributes_FilterSQL - Removed event
Shopware_Modules_Order_SaveOrderAttributes_FilterDetailsSQL - Removed event
Shopware_Modules_Order_SaveBillingAttributes_FilterSQL - Removed event
Shopware_Modules_Order_SaveBillingAttributes_FilterArray - Removed event
Shopware_Modules_Admin_SaveRegisterShippingAttributes_FilterSql - Removed event
Shopware_Modules_Admin_SaveRegisterShippingAttributes_Return - Removed event
Shopware_Modules_Admin_SaveRegisterBillingAttributes_FilterSql - Removed event
Shopware_Modules_Admin_SaveRegisterBillingAttributes_Return - Removed event
Shopware_Modules_Admin_SaveRegisterMainDataAttributes_FilterSql - Removed event
Shopware_Modules_Admin_SaveRegisterMainDataAttributes_Return - The filter event
Shopware_Modules_Order_SaveBilling_FilterArraynow contains an associative array instead of one with numeric keys. - The filter event
Shopware_Modules_Order_SaveBilling_FilterSQLnow uses named parameters in the query instead of question marks. - The filter event
Shopware_Modules_Order_SaveShipping_FilterArraynow contains an associative array instead of one with numeric keys. - The filter event
Shopware_Modules_Order_SaveShipping_FilterSQLnow uses named parameters in the query instead of question marks. - Moved
s_articles_prices.basepricetos_articles_details.purchaseprice- Added new database field
s_articles_details.purchaseprice. - Added property
purchasePricetoShopware\Models\Article\Detail. - Removed property
basePriceofShopware\Models\Article\Price. - Removed methods
Shopware\Models\Article\Price::getBasePrice()andShopware\Models\Article\Price::setBasePrice(). - Deprecated database field
s_articles_prices.baseprice. All data is left intact but this field is not used in shopware anymore and will be dropped in a future version. - Removed property
basePriceofShopware\Models\Article\Configurator\Template\Price. - Removed database field
s_article_configurator_template_prices.baseprice.
- Added new database field
- Removed unused class
Shopware_Components_Menu_ItemandShopware_Components_Menu_SaveHandler_DbTable - Removed database fields
s_core_menu.hyperlinks_core_menu.styles_core_menu.resourceID
- Removed method
Shopware\Models\Menu\Menu::setStyle()andShopware\Models\Menu\Menu::getStyle() - Removed class
Shopware_Models_Payment - Removed class
Shopware_Models_PaymentManager - Removed
Shopware_Plugins_Frontend_Payment_Bootstrap, Service:Shopware()->Payments() - Removed following methods:
- \Shopware_Controllers_Frontend_Register::saveRegister
- \Shopware_Controllers_Frontend_Register::personalAction
- \Shopware_Controllers_Frontend_Register::savePersonalAction
- \Shopware_Controllers_Frontend_Register::billingAction
- \Shopware_Controllers_Frontend_Register::saveBillingAction
- \Shopware_Controllers_Frontend_Register::shippingAction
- \Shopware_Controllers_Frontend_Register::saveShippingAction
- \Shopware_Controllers_Frontend_Register::paymentAction
- \Shopware_Controllers_Frontend_Register::savePaymentAction
- \Shopware_Controllers_Frontend_Register::validatePersonal
- \Shopware_Controllers_Frontend_Register::setRegisterData
- \Shopware_Controllers_Frontend_Register::validateBilling
- \Shopware_Controllers_Frontend_Register::validateShipping
- \Shopware_Controllers_Frontend_Register::validatePayment
- \sAdmin::sSaveRegisterMainData
- \sAdmin::sSaveRegisterNewsletter
- \sAdmin::sSaveRegisterBilling
- \sAdmin::sSaveRegisterShipping
- \sAdmin::sSaveRegister
- \sAdmin::validateRegistrationFields
- \sAdmin::assignCustomerNumber
- \sAdmin::logRegistrationMailException
- Removed the following events:
- Shopware_Modules_Admin_SaveRegisterMainData_FilterSql
- Shopware_Modules_Admin_SaveRegisterMainData_Return
- Shopware_Modules_Admin_SaveRegisterMainData_Return
- Shopware_Modules_Admin_SaveRegisterBilling_FilterSql
- Shopware_Modules_Admin_SaveRegisterBilling_Return
- Shopware_Modules_Admin_SaveRegisterShipping_FilterSql
- Shopware_Modules_Admin_SaveRegisterShipping_Return
- Shopware_Modules_Admin_SaveRegister_Start
- Shopware_Modules_Admin_SaveRegister_GetCustomerNumber
- Shopware_Modules_Admin_SaveRegister_FilterNeededFields
- Shopware_Modules_Admin_SaveRegister_FilterErrors
- Shopware_Modules_Admin_SaveRegister_Successful contains no more subject
- Changed following registration templates
- frontend/register/index.tpl
- frontend/register/shipping_fieldset.tpl
- frontend/register/personal_fieldset.tpl
- frontend/register/error_messages.tpl
- frontend/register/billing_fieldset.tpl
- Moved s_user_billingaddress.customernumber to s_user table
- Removed \Shopware\Models\Customer\Billing::number property
- Removed method
Shopware\Bundle\PluginInstallerBundle\Service\InstallerService::getPluginBootstrap() - Changed Shopware\Components\Model\ModelManager::addAttribute() to allow using empty string and boolean as default value when adding attribute fields
- Removed s_categories.noviewselect
- Removed \Shopware\Models\Category\Category::$noViewSelect
- Removed \Shopware\Bundle\StoreFrontBundle\Struct\Category::$allowViewSelect
- Include the departments, salutations, cities and countries in the address comparison of the backend order details
- Display the departments in the backend order details overview
- Added new API resource 'Country' and respective REST API controller 'countries'
- Renamed input fields in
themes/Frontend/Bare/frontend/account/reset_password.tplwith surroundingpassword[] - Removed method
\Shopware_Controllers_Frontend_Account::validatePasswordResetForm() - Removed method
\Shopware_Controllers_Frontend_Account::resetPassword() - Added new shopping world type
rowswhich is based on single rows. - Changed structure of
billingandshippingto\Shopware\Models\Customer\Addressin\Shopware\Components\Api\Resource\Customer - Replaced
buttonswith a toolbar indockedItemsinShopware.apps.Order.view.detail.Detail - Removed method
createButtons()inShopware.apps.Order.view.detail.Detail - Fixed \Shopware\Bundle\SearchBundleES\ConditionHandler\VoteAverageConditionHandler vote average value
- Fixed \Shopware\Bundle\SearchBundleES\SortingHandler\ReleaseDateSortingHandler field usage
- Fixed \Shopware\Bundle\SearchBundleES\ConditionHandler\ProductAttributeConditionHandler null value handling, not null handling and string operations.
- Added attributes.core mapping in \Shopware\Bundle\ESIndexingBundle\Product\ProductMapping
- Fixed attribute assignment in \Shopware\Bundle\SearchBundleDBAL\ProductNumberSearch
- Added all source values as attributes of each product in \Shopware\Bundle\SearchBundleES\ProductNumberSearch
- Added unified product slider template
- Created template files
themes/Frontend/Bare/frontend/_includes/product_slider.tplthemes/Frontend/Bare/frontend/_includes/product_slider_item.tplthemes/Frontend/Bare/frontend/_includes/product_slider_items.tpl
- Created template blocks
frontend_common_product_slider_configfrontend_common_product_slider_componentfrontend_common_product_slider_containerfrontend_common_product_slider_itemsfrontend_common_product_slider_item_configfrontend_common_product_slider_item
- Removed template blocks
checkout_ajax_add_cross_slider_itemfrontend_detail_index_streams_slider_containerfrontend_detail_index_similar_slider_itemwidget_emotion_component_product_sliderwidgets_listing_top_seller_slider_containerwidgets_listing_top_seller_slider_container_innerwidgets_listing_top_seller_slider_container_includefrontend_detail_index_also_bought_slider_innerfrontend_detail_index_similar_viewed_slider_innerfrontend_widgets_slide_articles_item
- Removed template files
themes/Frontend/Bare/widgets/emotion/slide_articles.tpl
- Created template files
- Removed customer options in import export module which results in the removal of
- Properties
\Shopware_Controllers_Backend_ImportExport::$customerRepository
- Methods
\Shopware_Controllers_Backend_ImportExport::getCustomerRepository()\Shopware_Controllers_Backend_ImportExport::exportCustomersAction()\Shopware_Controllers_Backend_ImportExport::importCustomers()\Shopware_Controllers_Backend_ImportExport::saveCustomer()\Shopware_Controllers_Backend_ImportExport::prepareCustomerData()
- Properties
- Removed unused controller endpoints
ajax_loginandajax_logoutinthemes/Frontend/Bare/frontend/index/index.tpl - \Shopware\Bundle\SearchBundleES\ConditionHandler\ProductAttributeConditionHandler requires now the \Shopware\Bundle\AttributeBundle\Service\CrudService as constructor dependency
- Merged \Shopware\Bundle\AttributeBundle\Service\CrudService create and update function
- Removed
$basketfromsAdmin::sManageRisks($paymentID, $basket, $user) - Added new
\Shopware\Bundle\StoreFrontBundle\Service\VariantCoverServiceInterfacewhich allows to load variant covers without consideringforceMainImageInListingparameter - Removed wrong parameter usage of
Shopware\Models\Menu\Repository::findOneBy, which allows to provide two strings as criteria instead of array. - Updated composer dependency elasticsearch/elasticsearch to version 2.2.0
- Changed default labelWidth for emotion component fields in
Shopware.apps.Emotion.view.components.Baseto 170 pixels - IonCube Loader version requirement bumped to 5.0 or higher
- PHP setting
display_errorsdefaults tooffnow inengine/Shopware/Configs/Default.php - Removed
\Shopware\Bundle\StoreFrontBundle\Struct\Contextclass - Deprecated following classes and functions:
\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::getContext\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::getProductContext\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::getLocationContext\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::initializeContext\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::initializeLocationContext\Shopware\Bundle\StoreFrontBundle\Service\ContextServiceInterface::initializeProductContext\Shopware\Bundle\StoreFrontBundle\Struct\LocationContext\Shopware\Bundle\StoreFrontBundle\Struct\ProductContext\Shopware\Bundle\StoreFrontBundle\Struct\LocationContextInterface\Shopware\Bundle\StoreFrontBundle\Struct\ProductContextInterface
- Added support for loading a new store instance by ID in the config combo box
Shopware.apps.Config.view.element.Select - Added attributes to interface
Enlight_Controller_Request_Request. New methods:Enlight_Controller_Request_Request::getAttributes()Enlight_Controller_Request_Request::getAttribute()Enlight_Controller_Request_Request::setAttribute()Enlight_Controller_Request_Request::unsetAttribute()
- Fixed tax free for company configuration. If the delivery country contains the flag
taxfree_ustid, the vat id of the shipping address is checked.
- Update elasticsearch/elasticsearch library to 2.2.0
- The interface
Enlight_Components_Cron_Adapterinengine/Library/Enlight/Components/Cron/Adapter.phpgot a new methodgetJobByAction. For default implementation seeengine/Library/Enlight/Components/Cron/Adapter/DBAL.php. - Fix a unserialize regression with PHP 5.6.21 and PHP 7.0.6.
- The smarty variable
sCategoryInfoin Listing and Blog controllers is now deprecated and will be removed soon. UsesCategoryContentinstead, it's a drop in replacement.
- Customer logout will now regenerate the session id and clear the customers basket.
- Added
IsNewcondition for product streams - Added
SimilarProductscondition - Deprecated Method
Shopware\Bundle\StoreFrontBundle\Gateway\SimilarProductsGatewayInterface::getListByCategorywill be removed in shopware version 5.3 - Deprecated Method
Shopware\Bundle\StoreFrontBundle\Gateway\SimilarProductsGatewayInterface::getByCategorywill be removed in shopware version 5.3 - Added method
\Shopware\Models\Article\Repository::getSupplierListQueryBuilder()to make the query builder extensible - Added index on
s_article_img_mapping_rules.mapping_idands_article_img_mapping_rules.option_id - Fixed
ANDsearch logic for search terms which not exist in the s_articles table. - Added order and payment state constants in
\Shopware\Models\Order\Status - change email validation to a simple regex:
/^.+\@\S+\.\S+$/. You can implement your own email validation by implementing theEmailValidatorInterface. - Optimized header lookups for
x-shopware-cache-idwill improve HTTP-Cache invalidation performance. Old behaviour can be restored by settinglookup_optimizationto false - Moved the
divelement in blockfrontend_index_left_switchesbelowulelement for W3C compatability inthemes/Frontend/Bare/frontend/index/sidebar.tpl. - Added css rule in order to remove bottom border from last child of
.emotion--html > .html--contentso there is no scrollbar when only whitespace would overlap parent div - Enabled product streams for parent categories
- Disabled the automatic detection of similar products for install customers. Enabling this option may decrease the shop performance.
- Fixed the
removeListenermethod inEnlight_Event_Subscriber_Config,Enlight_Event_Subscriber_ArrayandEnlight_Event_EventManager - Removed
engine/Shopware/Bundle/SearchBundleES/SimilarProductsService.php - Added the possibility to configure the file and directory permissions for the
LocalCDN adapter.
- Switch Grunt to relativeUrls to unify the paths to less.php
- Deprecated
Enlight_Application::getOption()andEnlight_Application::getOptions - Renamed smarty block from
rontend_index_starttofrontend_index_startinthemes/Frontend/Bare/frontend/sitemap/index.tpl - Added new global snippets before (
priceDiscountLabel) and after (priceDiscountInfo) all pseudo prices for the possibility to provide more detailed information - Removed old snippet
reducedPriceinorder_item_details.tplandcompare/col.tpl. - Introduced smarty blocks for footer headlines in
themes/Frontend/Bare/frontend/index/footer-navigation.tpl. New blocks:frontend_index_footer_column_service_hotline_headlinefrontend_index_footer_column_service_menu_headlinefrontend_index_footer_column_information_menu_headlinefrontend_index_footer_column_newsletter_headline
- Removed out-of-stock variant selection due to problems
- Out-of-stock variants on the detail page are now selectable
ProductNumberService::getAvailableNumber()now returns the provided product variant to allow deep linking of out-of-stock variants- Added new configuration property to shopware themes, to configure the inheritance position before or after plugins.
- Added new smarty blocks
frontend_index_left_menu_entriesandfrontend_index_left_menu_containertoindex/sites-navigation.tpl. - Removed usage of the deprecated
Doctrine\Common\Annotations\FileCacheReader. Removed methods:\Shopware\Components\CacheManager::getDoctrineFileCacheInfo()\Shopware\Components\Model\Configuration::setFileCacheDir()\Shopware\Components\Model\Configuration::getFileCacheDir()
- Added
timed_deliverycolumn ins_campaigns_mailingsfor automatic newsletter delivering. - Added new Smarty blocks to the
index/index.tplfilefrontend_index_body_classesfrontend_index_page_wrapfrontend_index_header_navigationfrontend_index_container_ajax_cartfrontend_index_content_main
- Removed
extendsTemplate()method in the AdvancedMenu plugin. Now the template uses the normal{extends}action. - Moved template file of the AdvancedMenu plugin from the plugin directory to the normal index directory.
- Moved content for the AdvancedMenu to separate include file.
- Added new Smarty block for extending the complete AdvancedMenu template
frontend_plugins_advanced_menu_outer. - Removed obsolete config options
displayFiltersOnDetailPageandpropertySorting - Add sub shop validation in \Shopware\Bundle\StoreFrontBundle\Service\Core\ListProductService
- Add getProductsCategories function to \Shopware\Bundle\StoreFrontBundle\Service\CategoryServiceInterface and \Shopware\Bundle\StoreFrontBundle\Gateway\CategoryGatewayInterface which returns all categories of the provided products.
- Removed duplicate content in
frontend/detail/data.tplfor block prices - Marked unnecessary block
frontend_detail_data_price_infoas deprecated - Added seo title for landing pages
- Added config option to force the selection of a payment method in checkout
- Deprecated table column
s_filter_values.value_numeric \Shopware\Bundle\SearchBundleDBAL\PriceHelper::getSelection()now requires aProductContextinstead of aShopContext- Changed type of
\Shopware\Models\Article\Detail::$activetoboolean(wasinteger) - Emotions can be assigned to multiple categories. Author: Christiansen t.christiansen@reply.de via GitHub.
- Allow clearing caches after plugin update
- Added Event
Shopware_Modules_Admin_Execute_Risk_Rule_[RuleName]to provide checks for custom risk rules - Added sValidation parameter to the frontend/register/login.tpl url to redirect to same login page in case the login validation failed.
- Default media albums are now editable in their name. The negative ids are still compatible and fix for development checks and assignments.
- Add constants for default album ids in \Shopware\Models\Media\Album
- Replaced
FuzzyLikeThisFieldQuerywithMultiMatchQueryin ES Product Search implementation. Should now be compatible to versions >= 1.6 - Removed deprecated Google Analytics config form and s_core_plugins entry.
- Removed config option
fuzzysearchresultsperpage, usearticlesPerPageinstead.
- Added new smarty block
frontend_detail_index_tabs_cross_sellingin the detail/ajax.tpl to prevent problems with custom themes - Renamed block
backend/order/view/detail/communicationinbackend/order/view/detail/configuration.jstobackend/order/view/detail/configuration. The name was duplicated in another file and was renamed to match the correct file.
- Added event
Shopware_Plugin_Collect_MediaXTypesto collect media related x_type fields for which the value needs to be normalized - Updated Behat to v3.0 and other related libraries
- Activated media fallback by default so that old media paths get resolved to the new location
- Update ongr/elasticsearch-dsl to version 1.0.0-RC1
- Update elasticsearch/elasticsearch to version 2.0.0
- The MediaBackend and PathNormalizer have been moved into the MediaService
- The media live migration is now enabled by default
- Added new Smarty block
frontend_index_header_javascript_trackingfor tracking codes which are required to be included into the "head" section of the document - Upgraded mPDF to version 6.0
- Removed
Zend_Json_Serverrelated classes
- Removed unused classes
Shopware_Components_Test_MailListenerandShopware_Components_Test_TicketListener - Removed unused snippets in
snippets/backend/article/view/main.ini:detail/sidebar/options/article_optionsdetail/sidebar/options/article_previewdetail/sidebar/options/columns/namedetail/sidebar/options/deletedetail/sidebar/options/drop_zonedetail/sidebar/options/duplicatedetail/sidebar/options/image_field_setdetail/sidebar/options/rapid_categorizationdetail/sidebar/options/select_categorydetail/sidebar/options/selected_categoriesdetail/sidebar/options/shopdetail/sidebar/options/titledetail/sidebar/options/tooltipdetail/sidebar/options/translatedetail/sidebar/options/upload_button
- Removed
Shopware.apps.Article.view.detail.sidebar.Linkbackend component and created two new components instead:Shopware.apps.Article.view.resources.DownloadsShopware.apps.Article.view.resources.Links
- Removed unused file:
themes/Backend/ExtJs/backend/article/view/detail/sidebar/link.js - Removed
article-sidebar-linkobject inShopware.apps.Article.view.detail.Sidebar - Changed views in
Shopware.apps.Article:- Removed
detail.sidebar.Link - Added
resources.Links - Added
resources.Downloads
- Removed
- Changed events in
Shopware.apps.Article.controller.Detail:- Removed
article-detail-window article-sidebar-linkevent alias - Added
article-detail-window article-resources-linksevent alias - Added
article-detail-window article-resources-downloadsevent alias
- Removed
- Changed grid reconfigures in
Shopware.apps.Article.controller.Detail:- Removed
mainWindow.down('article-sidebar article-sidebar-link grid[name=link-listing]').reconfigure(article.getLink()); - Removed
mainWindow.down('article-sidebar article-sidebar-link grid[name=download-listing]').reconfigure(article.getDownload()); - Added
mainWindow.down('article-resources-links grid[name=link-listing]').reconfigure(article.getLink()); - Added
mainWindow.down('article-resources-links grid[name=link-listing]').reconfigure(article.getLink());
- Removed
- Removed unused snippets in
snippets/backend/article/view/main.ini:detail/sidebar/links/download/buttondetail/sidebar/links/download/field_setdetail/sidebar/links/download/grid/deletedetail/sidebar/links/download/grid/editdetail/sidebar/links/download/grid/titledetail/sidebar/links/download/linkdetail/sidebar/links/download/namedetail/sidebar/links/download/noticedetail/sidebar/links/link/buttondetail/sidebar/links/link/field_setdetail/sidebar/links/link/grid/deletedetail/sidebar/links/link/grid/editdetail/sidebar/links/link/grid/externaldetail/sidebar/links/link/grid/titledetail/sidebar/links/link/linkdetail/sidebar/links/link/namedetail/sidebar/links/link/noticedetail/sidebar/links/title
- Removed
article-detail-window article-sidebar-optionevent listeners inShopware.apps.Article.controller.Media - Removed
onSidebarMediaUploadmethod inShopware.apps.Article.controller.Media - Removed
addCategory: me.onAddCategoryevent listener inShopware.apps.Article.controller.Detail - Removed
onAddCategorymethod inShopware.apps.Article.controller.Detail - Changed event listener alias from
article-detail-window article-sidebar-optiontoarticle-detail-window article-actions-toolbarinShopware.apps.Article.controller.Detail - Removed
article-sidebar-optionobject inShopware.apps.Article.view.detail.Sidebar - Removed
detail.sidebar.Optionfromviewsarray inShopware.apps.Article - Removed
Shopware.apps.Article.view.detail.sidebar.Optionbackend component - Removed
onTranslatemethod fromShopware.apps.Article.controller.Detail - Removed unused snippets in
snippets/backend/article/view/main.ini:detail/sidebar/accessory/article_numberdetail/sidebar/accessory/article_searchdetail/sidebar/accessory/assignment_boxdetail/sidebar/accessory/assignment_fielddetail/sidebar/accessory/bundle_boxdetail/sidebar/accessory/bundle_fielddetail/sidebar/accessory/deletedetail/sidebar/accessory/editdetail/sidebar/accessory/namedetail/sidebar/accessory/number
- Removed all unprefixed jQuery plugin events of the core plugins that were deprecated in the 5.0.2 Release.
- Removed the jQuery plugin events and added new prefixed values in these core plugins:
jquery.lightbox.jsjquery.loading-indicator.jsjquery.modal.jsjquery.advancedMenu.js
- Move directory
logs/tovar/log/andcache/tovar/cache - The property selection for an product is now a dedicated tab.
- The
beforeeditevent will now be triggered on thearticle-detail-window grid[name=property-grid] - The property selection was built from scratch to provide a better user experience but the method names haven't changed
- The store
Shopware.apps.Article.store.PropertyValueand the associated modelShopware.apps.Article.model.PropertyValueare not available anymore - Property values are now creates on demand with an AJAX request
- The selection of property values is now on select to allow for a faster usage of the component
- The
- Added library beberlei/assert for low-level validation.
- Changed returning array keys to
ordernumberin\sArticles::sGetArticlesByCategorywhich introduces an BC break for plugins hooking into the following methods:\Shopware_Controllers_Frontend_Listing::manufacturerAction\Shopware_Controllers_Frontend_Listing::indexAction\Shopware_Controllers_Widgets_Listing::ajaxListingAction\sArticles::sGetArticlesByCategory
- Added Escaper component to escape output data, dependent on the context in which the data will be used
- Added library zendframework/zend-escaper
- New interface:
\Shopware\Components\Escaper\EscaperInterface - Default implementation:
\Shopware\Components\Escaper\Escaper, usesZend\Escaper - Available in DI-Container:
shopware.escaper - Smarty Modifiers:
- escapeHtml
- escapeHtmlAttr
- escapeJs
- escapeUrl
- escapeCss
- The following basic settings values are deprecated and will be removed in Shopware 5.2. Their corresponding snippet values from the
backend/static/discounts_surchargesnamespace should be used instead:discountnamepaymentSurchargeAbsolutepaymentsurchargeaddpaymentsurchargedevshippingdiscountnamesurchargenamevouchername
- Added the ability to change variants using an AJAX call, therefore the page won't reload anymore. The configuration can be enabled / disabled in theme config, the default value is
true, therefore the variants will be loaded via AJAX by default.- Plugin developers which supports variants needs to change their plugin accordingly. They can subscribe to the event
plugin/swAjaxVariant/onRequestDatato update their plugin. - If your plugin modifies the product page using Smarty, you're good to go.
- Plugin developers which supports variants needs to change their plugin accordingly. They can subscribe to the event
- Deprecated pre-installed import / export module in favor of the new import / export plugin, which is for free now
- Changed the way in which order and payment status translations are handled:
- Added
Shopware\Models\Order\Status::name. Its value should be matched to the corresponding snippet name in one of thebackend/base/model/order_status/*namespaces - Deprecated
Shopware\Models\Order\Status::description Shopware.apps.Base.model.OrderStatusandShopware.apps.Base.model.PaymentStatusExtJs translations are now done using thenameinstead of theid.
- Added
- Deprecated
Shopware\Bundle\StoreFrontBundle\Struct\Thumbnail::getSourceSetsince it should be placed in a hydrator or view - Introducing the
MediaBundleto support huge amounts of media items and add support for CDN's (Content Delivery Network)- Added library thephpleague/flysystem to switch the underlying filesystem.
- Media directory structure has been changed
- Paths in
s_mediaare now virtual paths, meaning that the files will no longer be accessible with the given path. - A MediaBackend decides how and where media files are getting stored (e.g. /media/image/blue_shoes_size37.jpg could be /media/image/e0/77/f8/blue_shoes_size37.jpg)
- A MediaService handles file operations and generation of urls
- A MediaPathNormalizer removes all unrelevant parts of a string to get a coherent syntax like
media/image/blue_shoes_size37.jpg - A live migration, which is disabled by default, migrates media files to the new filesystem and format as they get requested
- The store front, product feed and api endpoints have already been updated to make use of the underlying filesystem.
- Paths in
- Added
sw:mediacli commands to easily manage your new media systemsw:media:migratemigrates from one filesystem to another- E.g. use
sw:media:migrate --from=local --to=awsto migrate all media items to Amazon S3
- E.g. use
- Added
sw:media:cleanupcli command to find all unused media and place them in a new album called Trash- Optional:
sw:media:cleanup --deleteto find all unused media and remove them automatically
- Optional:
- Added event
Shopware_Collect_MediaPositionsto collect more tables to scan for unused images. You should return a ArrayCollection of MediaPosition instances. - Added configuration option 'errorHandler.throwOnRecoverableError'. When set to true errors of type
E_RECOVERABLE_ERRORwill result in an exception. This is useful to test PHP 7 compatiblity. - Fixed duplicated jQuery event in
jquery.listing-actions.jsfromplugin/listingActions/onApplyUrlParamstoplugin/swListingActions/onGetListingUrl - Removed previously deprecated
Enlight_Components_Adodb- Container Key
AdoDb/ Shopware()->Adodb() sSystem::$sDB_CONNECTIONShopware_Plugins_Core_System_Bootstrap::onInitResourceAdodb()Enlight_Components_AdodbEnlight_Components_Adodb_Statement
- Container Key
- Removed previously deprecated search classes:
Shopware_Components_SearchShopware_Components_Search_Adapter_DefaultShopware_Components_Search_Adapter_AbstractShopware_Components_Search_Result_DefaultShopware_Components_Search_Result_AbstractShopware_Components_Search_Result_Interface
- Removed previously deprecated API
Shopware()->Api()Shopware_Plugins_Core_Api_BootstrapsCsvConvertsShopwareExportsShopwareImportsMappingConvertsXmlConvert
- Removed previously deprecated table
s_core_multilanguage- Table:
s_core_multilanguage Shopware_Plugins_Core_System_Bootstrap::getSingleShopData()sSystem::$sSubShop
- Table:
- Removed previously deprecated Plugin Bootstrap methods
Shopware_Components_Plugin_Bootstrap::deleteForm()Shopware_Components_Plugin_Bootstrap::deleteConfig()Shopware_Components_Plugin_Bootstrap::createHook()Shopware_Components_Plugin_Bootstrap::subscribeCron()Shopware_Components_Plugin_Bootstrap::createEvent()
- Removed previously deprecated or unused classes / methods
sSystem::E_CORE_WARNING()sSystem::$sExtractorsSystem::$sPathArticleFilessCore::rewriteLink()Shopware_Bootstrap::run()Shopware_Controllers_Backend_ExtJs::setAclResourceName()Shopware\Models\Property\Repository::getGroupsQueryBuilderShopware\Models\Property\Repository::getGroupsQueryShopware_Plugins_Frontend_CronRefresh_Bootstrap::onCronJobTranslation()Shopware_Components_DummyPlugin_Bootstrap
- Change file extension of
Shopware_Components_Convert_Excel::generateXMLto .xls - Fixed jsonrenderer for backend order batchprocessing
- The variant API resource now supports the getList method. It will return all variants with prices and attributes. You can optionally calculate the gross price by using the "considerTaxInput" parameter.
- The getList method of the articles API resource now returns additionally the attributes of an article.
- Change event argument property
nametovouchernameinShopware_Modules_Basket_AddVoucher_FilterSqlinsBasket.phpdue to reserved word. - Support for batch user deleting in Backend UserManager
- Added
createMediaFieldto Emotion Component Model - Added open graph and twitter meta tags to a new block
frontend_index_header_meta_tags_opengraphin theheader.tpl
- Method
createMenuItemin plugin bootstrap now results in an duplicate error when passing an existing label with the same parent - Removed
Shopware_Controllers_Backend_Order::getStatisticActionand statistics in the order backend module. - It's no longer possible to have spaces in article numbers. Existing articles with spaces in their numbers will still work, but the article cannot be changed without fixing the number.
- Change structure of
build-databasetarget inbuild/build.xmlto allow a more fine grained build process. - Introduce new configuration option
snippet.showSnippetPlaceholder. Empty snippets are now hidden by default. IfshowSnippetPlaceholderistruesnippet placeholders will be shown. - Removed table
s_emarketing_vouchers_cashed. - 'Shopware.form.field.ArticleSearch' search using the "variants" option is deprecated. Use "configurator" to load configurator articles or "searchVariants" to load article variants with the correct additional text and ordernumber.
- Added column
addedto the tables_campaigns_mailaddresseswhich holds the date of the newsletter registration. It will be displayed in the newsletter administration under "Recipients" as the "Double-Opt-In date" column. - Removed the expert layout and the corresponding mail form inside the batch processing window of the order backend module.
- Added support for attributes in backend module site
- Added a lot more jQuery plugin events.
- Marked some jQuery plugin events as deprecated which will be removed in the version 5.1. They were replaced with more conventional names:
- plugin/collapseCart/afterRemoveArticle => plugin/swCollapseCart/onRemoveArticleFinished
- plugin/collapseCart/afterLoadCart => plugin/swCollapseCart/onLoadCartFinished
- plugin/collapseCart/onMouseLeave => plugin/swCollapseCart/onMouseLeave
- plugin/collapseCart/onCloseButton => plugin/swCollapseCart/onCloseButton
- plugin/collapseCart/onRemoveArticle => plugin/swCollapseCart/onRemoveArticle
- plugin/collapseCart/onMenuOpen => plugin/swCollapseCart/onMenuOpen
- plugin/collapseCart/onLoadCart => plugin/swCollapseCart/onLoadCart
- plugin/collapseCart/onCloseMenu => plugin/swCollapseCart/onCloseMenu
- plugin/collapsePanel/onOpen => plugin/swCollapsePanel/onOpen
- plugin/collapsePanel/onClose => plugin/swCollapsePanel/onClose
- plugin/filterComponent/onChange => plugin/swFilterComponent/onChange
- plugin/emotionLoader/loadEmotion => plugin/swEmotionLoader/onLoadEmotion
- plugin/emotionLoader/initEmotion => plugin/swEmotionLoader/onInitEmotion
- plugin/emotionLoader/showEmotion => plugin/swEmotionLoader/onShowEmotion
- plugin/emotionLoader/hideEmotion => plugin/swEmotionLoader/onHideEmotion
- plugin/emotionLoader/showFallbackContent => plugin/swEmotionLoader/onShowFallbackContent
- plugin/emotionLoader/hideFallbackContent => plugin/swEmotionLoader/onHideFallbackContent
- plugin/emotion/initElements => plugin/swEmotion/onInitElements
- plugin/emotion/initFullscreen => plugin/swEmotion/onInitFullscreen
- plugin/emotion/removeFullscreen => plugin/swEmotion/onRemoveFullscreen
- plugin/emotion/initMasonryGrid => plugin/swEmotion/onInitMasonryGrid
- plugin/emotion/initScaleGrid => plugin/swEmotion/onInitScaleGrid
- plugin/emotion/registerEvents => plugin/swEmotion/onRegisterEvents
- plugin/imageSlider/updateTransform => plugin/swImageSlider/onUpdateTransform
- plugin/imageSlider/slide => plugin/swImageSlider/onSlide
- plugin/imageSlider/slideNext => plugin/swImageSlider/onSlideNext
- plugin/imageSlider/slidePrev => plugin/swImageSlider/onSlidePrev
- plugin/menuScroller/updateResize => plugin/swMenuScroller/onUpdateResize
- plugin/offcanvasMenu/beforeOpenMenu => plugin/swOffcanvasMenu/onBeforeOpenMenu
- plugin/offCanvasMenu/openMenu => plugin/swOffcanvasMenu/onOpenMenu
- plugin/offCanvasMenu/closeMenu => plugin/swOffcanvasMenu/onCloseMenu
- plugin/-PLUGIN_NAME-/init => plugin/-PLUGIN_NAME-/onInit (PluginBase)
- plugin/-PLUGIN_NAME-/destroy => plugin/-PLUGIN_NAME-/onDestroy (PluginBase)
- plugin/-PLUGIN_NAME-/on => plugin/-PLUGIN_NAME-/onRegisterEvent (PluginBase)
- plugin/-PLUGIN_NAME-/off => plugin/-PLUGIN_NAME-/onRemoveEvent (PluginBase)
- plugin/productSlider/trackItems => plugin/swProductSlider/onTrackItems
- plugin/productSlider/trackArrows => plugin/swProductSlider/onTrackArrows
- plugin/productSlider/itemsLoaded => plugin/swProductSlider/onLoadItemsSuccess
- plugin/productSlider/loadItems => plugin/swProductSlider/onLoadItems
- plugin/productSlider/createContainer => plugin/swProductSlider/onCreateContainer
- plugin/productSlider/createArrows => plugin/swProductSlider/onCreateArrows
- plugin/productSlider/slideNext => plugin/swProductSlider/onSlideNext
- plugin/productSlider/slidePrev => plugin/swProductSlider/onSlidePrev
- plugin/productSlider/slideToElement => plugin/swProductSlider/onSlideToElement
- plugin/productSlider/slide => plugin/swProductSlider/onSlide
- plugin/productSlider/autoSlide => plugin/swProductSlider/onAutoSlide
- plugin/productSlider/stopAutoSlide => plugin/swProductSlider/onStopAutoSlide
- plugin/productSlider/scrollNext => plugin/swProductSlider/onScrollNext
- plugin/productSlider/scrollPrev => plugin/swProductSlider/onScrollPrev
- plugin/productSlider/autoScroll => plugin/swProductSlider/onAutoScroll
- plugin/productSlider/stopAutoScroll => plugin/swProductSlider/onStopAutoScroll
- plugin/productSlider/buffer => plugin/swProductSlider/onBuffer
- plugin/rangeSlider/changeMin => plugin/swRangeSlider/onSetMin
- plugin/rangeSlider/changeMax => plugin/swRangeSlider/onSetMax
- plugin/rangeSlider/reset => plugin/swRangeSlider/onReset
- plugin/rangeSlider/onChange => plugin/swRangeSlider/onEndDrag
- Added new validation rules for snippets
- Use
bin/console sw:snippets:validate <your-plugin-snippets-path>to check the validity of your snippets. - Defining a snippet value in multiple lines is deprecated.
- All snippet values that don't pass the validation should be refactored.
- Use
- The method
getSeoArticleQueryinsRewriteTable.phpwas changed to select the translations for the article attributes.
- Create
sw:theme:dump:configurationcommand to generate watch files for theme compiling - Rename \Shopware\Components\Theme\Compiler::preCompile to \Shopware\Components\Theme\Compiler::compile
- Change the following \Shopware\Components\Theme\Compiler functions visibility to private:
- compilePluginCss
- clearThemeCache
- buildConfig
- compilePluginLess
- compilePluginCss
- compressPluginJavascript
- clearDirectory
- createThemeJavascriptFile
- Changed \Shopware\Components\Theme\PathResolver functions: getJsFilePaths and getCssFilePaths
- Renamed to singular naming, getJsFilePath and getCssFilePath
- Returning directly the
defaultfile path
- Add themes/Gruntfile.js for local compiling.
- \Shopware\Bundle\SearchBundle\Condition\HasPriceCondition marked as deprecated.
- Add \Shopware\Bundle\SearchBundle\StoreFrontCriteriaFactory::createBaseCriteria function to create a default criteria with all validation conditions.
- Moved the mixins
primary-gradient,secondary-gradientandwhite-gradientback to the Responsive theme- We moved the variable declaration of
remScaleFactorto the Bare theme. - If you have created a custom theme based on the Bare theme and used the mentioned mixins, you need to modify the used variables in the mixin to get it working.
- The
icon-elementmixin can now be found in the Responsive theme as well.
- We moved the variable declaration of
- \sArticles::sGetProductByOrdernumber result is now equals with the \sArticles::sGetPromotionById result.
- Add console command
sw:refresh:search:indexto manually regenerate the search index. The optional parameter--clear-tablecan be used to clear the index tables before regenerating the data again. - Remove
pricefield override in AjaxSearch controller. - Include
frontend/listing/product-box/product-price.tpltemplate in ajax search to display product prices.
- \Shopware\Bundle\SearchBundleDBAL\ConditionHandler\HasPriceConditionHandler now joins the prices as a 1:1 association for a performance improvement.
- sCategories::sGetCategoryContent function returns no more the category articleCount. Variable is unused.
- sCategories::sGetCategoryIdByArticleId function use now the s_articles_categories table.
- Add __redirect parameter in frontend language switcher. Each language switcher requires now an additionally post parameter to redirect to the new shop
<input type="hidden" name="__redirect" value="1">
- SEO URL generation variable "statistic" has been translated and corrected to "static"
- Theme config elements can now define, over the attributes array, if they are less compatible. Example:
attributes => ['lessCompatible' => false], default is set to true. - Implement plugin bootstrap helper functions: addHttpCacheRoute and removeHttpCacheRoute, to add and remove http cache routes.
- Refactor getRandomArticle function of sArticles. Shopware_Modules_Articles_GetPromotionById_FilterSqlRandom event removed.
Mark VAT ID number as requiredmoved toLogin / RegistrationinBasic Settings. All other VAT ID validation options were removed. If you need VAT ID validation functionalities, please use the VAT ID Validation plugin available on the store.sAdmin::sValidateVat()removed
- Removed supplier description on article detail page to prevent duplicated content for google remote crawling
- Fix duplicate name parameter for backend extjs stores inside the config module. Repository class name sent before as
nameparameter. Now the stores uses_repositoryClassas parameter. - Removed shopware_storefront.product_gateway (\Shopware\Bundle\StoreFrontBundle\Gateway\ProductGatewayInterface).
- \Shopware\Bundle\StoreFrontBundle\Service\Core\ProductService uses now the ListProductService to load the product data and converts the product structs by loaded list products.
- Removed
\Shopware\Bundle\StoreFrontBundle\Gateway\DBAL\Hydrator\ProductHydrator::hydrateProductfunction. - Removed \Shopware\Bundle\StoreFrontBundle\Struct\ListProduct::STATE_TRANSLATED constant.
- Removed Service
guzzle_http_client, useguzzle_http_client_factoryinstead. - Added support for Bundle of CA Root Certificates. See: http://curl.haxx.se/docs/caextract.html.
- Removed
setFieldandsetModefunction in \Shopware\Bundle\SearchBundle\Facet\ProductAttributeFacet. - Removed unnecessary theme variable prefix for less compiler. Each theme config variable prefixed with "theme" . ucfirst($key) which generates @themeBrandPrimary. This variables were remapped inside responsive theme.
- New orders will no longer set
s_order.transactionIDautomatically from POST data. 3rd party plugins can still use this value as before. - Fix translation API, rename all
localeIdreferences toshopId. Create / update / delete withlocaleIdare still supported as legacy. \Shopware\Models\Translation\Translationnow correctly relates toShopmodel instead ofLocale.- widgets/recommendations - boughtAction & viewedAction calls no more the sGetPromotionById function.
- Added emotion positioning number for ordering emotions by position number if there are more emotions on one page
- Replaced
closeOverlaywithopenOverlayoption in the loading indicator to improve the simplicity. - Removed overlay options in the modal box and loading indicator jQuery plugin.
- Overlay jQuery plugin now only provides the closeOnClick, onClick and onClose options. To style the overlay, use the corresponding less file.
- Removed unused methods:
Shopware_Controllers_Backend_Config::getTemplateListActionShopware_Controllers_Backend_Config::refreshTemplateListShopware_Controllers_Backend_Config::saveTemplateAction
- Removed unused files:
themes/Backend/ExtJs/backend/config/view/form/template.jsthemes/Backend/ExtJs/backend/config/view/template/detail.jsthemes/Backend/ExtJs/backend/config/view/template/preview.jsthemes/Backend/ExtJs/backend/config/view/template/view.jsthemes/Backend/ExtJs/backend/config/store/form/template.jsthemes/Backend/ExtJs/backend/config/store/model/template.jsthemes/Backend/ExtJs/backend/config/store/controller/template.js
- Removed classes:
ConfigIframe.phpbackend controllerViewport.phpfrontend controller
- Removed template files:
backend\index\iframe.tpl
- Removed commands
sw:store:download:updateandsw:store:licenseplugin. - Added
sw:store:downloadcommand to download install and updates of plugins. - Added
sw:store:list:integratedcommand to list all shopware 5 integrated plugins. - Shopware.model.Container provides now the raw record value as id parameter to the searchAssociationAction to request the whole record on form load.
- Added way to early exit the dispatch.
- After
Enlight_Controller_Front_RouteShutdowna response containing a redirect will not enter the dispatch loop.
- After
HttpCacheplugin is no longer handled by the Plugin manager. Use thePerformancewindow to enable/configure the Http cache instead- \Shopware\Models\Emotion\Repository::getListQuery function replaced by getListingQuery.
- Rename shopware_searchdbal.product_number_search to shopware_search.product_number_search. Use shopware_search.product_number_search service for number searchs.
- Remove aliases from bundle services. Example: list_product_service is now directly set to the old list_product_service_core
- Extend ProductAttributeFacet with different FacetResult properties, to allow full FacetResult configuration over the facet.
- Out of stock articles and variants are now not included in the product feed if the
Do not show on sale products that are out of stockoption is enabled - IonCube Loader version requirement bumped to 4.6.0 or higher
- Refactored routing component
- Removed classes:
Enlight_Controller_Router_DefaultEnlight_Controller_Router_EventArgs
- Removed events:
Enlight_Controller_Router_FilterAssembleParamsEnlight_Controller_Router_FilterUrlEnlight_Controller_Router_Assemble
- Removed methods:
Shopware_Plugins_Core_Router_Bootstrap::onFilterAssembleShopware_Plugins_Core_Router_Bootstrap::onFilterUrlShopware_Plugins_Core_Router_Bootstrap::onAssembleShopware_Plugins_Frontend_RouterRewrite_Bootstrap::onAfterSendResponseShopware_Plugins_Frontend_RouterRewrite_Bootstrap::onRouteShopware_Plugins_Frontend_RouterRewrite_Bootstrap::onAssembleShopware_Plugins_Frontend_RouterRewrite_Bootstrap::sRewriteQuery
- Removed classes:
- Shopware.grid.Panel executes now a local store search if no read url configured in the assigned store.
- Shopware.grid.Panel has now the RowEditing plugin inside the local variable rowEditor.
- Deprecated classes:
Zend_RestZend_HttpEnlight_Components_Adodb(also accessed asShopware()->Adodb()or$system->sDB_CONNECTION) will be removed in SW 5.1Shopware_Components_Search_Adapter_Defaultis now deprecated, use\Shopware\Bundle\SearchBundle\ProductNumberSearchZend_Validate_EmailAddress
- Deprecated methods/variables:
Shopware_Controllers_Frontend_Account::ajaxLoginAction()is deprecatedShopware_Controllers_Frontend_Account::loginAction()usage to load a login page is deprecated. UseShopware_Controllers_Frontend_Register::indexAction()instead for both registration and loginsSystem::sSubShopsExport::sGetMultishop()sExport::sLanguagesExport::sMultishop
- Deprecated configuration variables from
Basic settings:basketHeaderColorbasketHeaderFontColorbasketTableColordetailModalpaymentEditingInCheckoutPageshowbundlemainarticle
- Deprecated tables/columns:
s_core_multilanguage. Table will be removed in SW 5.1. Previously unused fieldsmainID,flagstorefront,flagbackend,separate_numbers,scoped_registrationandnavigationare no longer loaded from the database
- Removed classes:
Enlight_Components_CurrencyEnlight_Components_Formand subclassesEnlight_Components_LocaleEnlight_Components_Menuand subclassesEnlight_Components_Siteand subclassesEnlight_Components_Test_Constraint_ArrayCountEnlight_Components_Test_Database_TestCaseEnlight_Components_Test_Selenium_TestCaseEnlight_Components_Test_TestSuiteEnlight_Extensions_Benchmark_BootstrapEnlight_Extensions_Debug_BootstrapEnlight_Extensions_ErrorHandler_BootstrapEnlight_Extensions_Log_BootstrapEnlight_Extensions_Router_BootstrapEnlight_Extensions_RouterSymfony_BootstrapEnlight_Extensions_Site_BootstrapEnlight_Components_Log(also accessed asShopware->Log())
- Removed methods/variables:
sArticles::sGetAllArticlesInCategory()sSystem::sSubShopssSystem::sLanguageData. Please useShopware()->Shop()insteadsSystem::sLanguage. Please useShopware()->Shop()->getId()insteadShopware_Plugins_Core_ControllerBase_Bootstrap::getLanguages()Shopware_Plugins_Core_ControllerBase_Bootstrap::getCurrencies()sExport::sGetLanguage()Shopware_Controllers_Backend_Article::getConfiguratorPriceSurchargeRepository()Shopware_Controllers_Backend_Article::saveConfiguratorPriceSurchargeAction()Shopware_Controllers_Backend_Article::deleteConfiguratorPriceSurchargeAction()Shopware_Controllers_Backend_Article::getArticlePriceSurcharges()Shopware_Controllers_Backend_Article::getSurchargeByOptionId()sArticles::sGetArticlesAverangeVotesArticles::getCategoryFilterssArticles::getFilterSortModesArticles::addFilterTranslationsArticles::sGetArticleConfigTranslationsArticles::sGetArticlesByNamesArticles::sGetConfiguratorImagesArticles::sCheckIfConfigsArticles::getCheapestVariantsArticles::calculateCheapestBasePriceDatasArticles::displayFiltersOnArticleDetailPagesArticles::getFilterQuerysArticles::addArticleCountSelectsArticles::addActiveFilterConditionsArticles::displayFilterArticleCountsArticles::sGetLastArticlessArticles::sGetCategoryPropertiessArticles::sGetArticlesVotesEnlight_Controller_Front::returnResponse()Shopware_Plugins_Core_Cron_Bootstrap::onAfterSendResponse()\Shopware\Models\User\User::setAdmin()\Shopware\Models\User\User::getAdmin()\Shopware\Models\User\User::setSalted()\Shopware\Models\User\User::getSalted()\Shopware\Models\Banner\Banner::setLiveShoppingId()\Shopware\Models\Banner\Banner::getLiveShoppingId()sArticles::getPromotionNumberByMode('premium')sArticles::sGetPromotions()sMarketing::sCampaignsGetDetail()sMarketing::sCampaignsGetList()\Shopware\Models\Plugin\Plugin::isDummy()\Shopware\Models\Plugin\Plugin::disableDummy()- Removed
sArticles::getPromotionNumberByMode('image')andsArticles::getPromotionNumberByMode('gfx')support
- Removed events:
Shopware_Modules_Articles_GetFilterQueryShopware_Modules_Article_GetFilterSortModeShopware_Modules_Article_GetCategoryFiltersEnlight_Controller_Front_SendResponseEnlight_Controller_Front_AfterSendResponseShopware_Modules_Articles_sGetProductByOrdernumber_FilterSqlShopware_Modules_Articles_GetPromotions_FilterSQL
- Removed Smarty vars:
$sArticle.sNavigationfor product detail page
- Removed configuration variables from
Basic settings:useDefaultControllerAlwaysarticlelimitconfigcustomfieldsconfigmaxcombinationsdisplayFilterArticleCountignoreshippingfreeforsurchargesliveinstockmailer_encodingredirectDownloadredirectnotfoundseorelcanonicalseoremovewhitespacestaxNumberdeactivateNoInstock
- Removed database table/columns:
s_core_rewrites_cms_groupss_core_auth.admins_core_auth.salteds_order_basket.liveshoppingIDs_order_basket.liveshoppingIDs_order_basket.liveshoppingIDs_emarketing_banners.liveshoppingIDs_core_sessions.expirerefs_core_sessions.createds_core_sessions_backend.createds_emarketing_promotions*s_core_plugins.capability_dummys_articles_details.impressions
- The new Shopware core selects all required data for
sGetArticleById,sGetPromotionByIdandsGetArticlesByCategory. The following events and internal functions are no longer used in these functions:sGetPromotionByIdeventsShopware_Modules_Articles_GetPromotionById_FilterSql
sGetPromotionByIdfunctionssGetTranslationsGetArticlePropertiessGetCheapestPricesCalculatingPricecalculateCheapestBasePriceDatagetArticleListingCover
sGetAritcleByIdeventsShopware_Modules_Articles_GetArticleById_FilterSQL
sGetAritcleByIdfunctionssGetTranslationsGetPricegroupDiscountsGetPromotionById(for similar and related products)sCheckIfEsdsGetPricegroupDiscountsCalculatingPricesGetCheapestPricesGetArticleConfigcalculateReferencePricesGetArticlePicturessGetArticlesVotessGetArticlesAverangeVotesGetArticleProperties
sGetArticlesByCategoryeventsShopware_Modules_Articles_sGetArticlesByCategory_FilterSqlShopware_Modules_Articles_sGetArticlesByCategory_FilterLoopStartShopware_Modules_Articles_sGetArticlesByCategory_FilterLoopEnd
sGetArticlesByCategoryfunctionssGetSupplierByIdsGetCheapestPricesCalculatingPricecalculateCheapestBasePriceData
- Removed plugin
Shopware_Plugins_Frontend_RouterOld_Bootstrap - Moved
engine/core/class/*toengine/Shopware/Core/* - Merged
_defaulttemplate into the_emotiontemplate - Removed the template directory
_defaultand all its dependencies - Added the ability to show campaign banners in blog categories
- Refactored the template structure of the compare functionality. The plugin now uses based on a widget.
- Added new block
frontend_listing_box_article_actions_comparein thelisting/box_article.tpl
- Added new block
- Removed support for flash banners. The associated template block
frontend_listing_swf_banneris marked as deprecated - Removed the template files for the feed functionality, which was marked as deprecated in SW 3.5
- Add new optional address fields to the register account and checkout process
- Added global messages template component to display e.g. error or success messages
- Added global css classes for different device viewports
- The registration and checkout workflows have been redesigned for the new template
- New jQuery plugin helper which provides all the basic operations every jQuery plugin needs to do
- Added several javascript libraries that enhance the supported features of the IE 8 and above
- Added
controller_actionandcontroller_namesmarty functions that return the correspondent variable values - The sitemap.xml uses now a smarty template
- Added
Turnover by device typein the backend statistics module - Added device type details to
ImpressionsandVisitorsin the backend statistics module
- Added
- Added
secureUninstallmethod and capability for plugins. When 'secureUninstall' capability is set, the user will be asked to select one of the uninstall methods:- (new)
Bootstrap::secureUninstall()should be remove only non-user data - (old)
Bootstrap::uninstall()current logic, should remove plugin and user data
- (new)
- The
ArticleListwas merged with the formerMultiEditplugin. Plugins hooking theArticleListController or extending theArticleListbackend module should be reviewed - When using
selectionconfigurator type, shipping estimations will only be displayed when the user selects a value for all groups - It's no longer possible to disable variant support for article that still have variants
- Added a new Theme Manager 2.0 with the possibility to create custom themes from the backend
- Themes now support specific snippets that are used exclusively in the theme to which they belong
- Shop configuration no longer contains the template selection.
- The snippet module in the backend now supports editing multiple translations for a single snippet at once
- Forms: elements of type
text2now support;as a separator between labels for the first and second field:- Responsive template: labels are used separately as
placeholderattribute for eachinputelement - legacy templates:
;is replaced with a/and used in a singlelabelelement (old behaviour)
- Responsive template: labels are used separately as
street numberfields were removed from interfaces and database- Existing values were merged into the
streetfield streetfields were enlarged to 255 chars to accommodate this.- The API still accepts
street numbervalues on write operations. The values are internally merged into thestreetfield. This is legacy support, and will be removed in the future. - Read operations on the API no longer return a
street numberfield.
- Existing values were merged into the
- The configuration for the thumbnail size of the product images in the "last seen products" module no longer affects the responsive template. The size now changes by screen size.
- Changed behavior of the
selectionconfigurator. Configurator options which have none available product variant disabled now in the select-tag. The new snippetDetailConfigValueNotAvailablecan be used to append additional text after the value name. - Variant's
additional textfield is now automatically generated using the configurator group options. This can be optionally disabled. - The
sBasket::sGetNotesfunction has been refactored with the new Shopware service classes and no longer calls thesGetPromotionByIdfunction. - The article slider now supports sorting by price (asc and desc) and category filtering
Shopware_Controllers_Widgets_Emotion::emotionTopSellerActionandShopware_Controllers_Widgets_Emotion::emotionNewcomerActionare now deprecated and should be replaced byShopware_Controllers_Widgets_Emotion::emotionArticleSliderAction
- Removed
tableandtable_factoryfrom container. - The old table configurator was removed and replaced by the new image configurator in the emotion and responsive template.
- Template inheritance using
{extends file="[default]backend/..."}is no longer supported and should be replaced by{extends file="parent:backend/..."} - Added Guzzle.
- Added HTTP client
Shopware\Components\HttpClient\HttpClientInterface. - Can be fetched from the container using the key
http_client. - Deprecated Zend Framework components
Zend_RestandZend_Httpwill be removed in the next minor release.
- Added HTTP client
- Increased minimum required PHP version to PHP >= 5.4.0.
- Increased minimum required MySQL version to MySQl >= 5.5.0.
- When duplicating articles in the backend, attributes and translations will also be copied
- When applying main data to variants, translations will also be overwritten, if selected
- It is now possible to rename variant configurator options
- It is now possible to add translations to configurator templates, which will then be used when generating variants
- Removed legacy
excuteParentmethod alias from generated hook proxy files - Restructured cache directories. The whole
/cachedirectory should be writable now - Added two new settings to handle 404 responses:
PageNotFoundDestinationextends the previous behaviour by adding support for Shopping worlds pagesPageNotFoundCodeadded to configure the HTTP error code when requesting non-existent pages
- Removed
Trusted Shopsfrom the basic settings. Functionality can now be found inTrusted Shops Excellenceplugin - Added
sArticles::getProductNavigation, product navigation is rendered asynchronous via ajax call to\Shopware_Controllers_Widgets_Listing::productNavigationAction - Add
isFamilyFriendlycore setting to enable or disable the correspondent meta tag. - Add new SEO fields to the forms module.
- Add new SEO templates in the core settings for the form and the site data.
- Added
Theme cache warm upmodal window and functionality:- On cache clear
- On performance settings
- On theme change
- On theme settings change
- On plugin install, by adding
themeto the optional caches array returned ininstall()
- Added
http cache warmermodal window in the performance module and console commandsw:warm:http:cache - Deprecate Legacy API
Shopware->Api(), will be removed in SW 5.1 - Removed unused
/backend/documenttemplates and several unusedShopware_Controllers_Backend_Documentactions, methods and variables - Performance recommendations now accept a
warningstate (state was converted from boolean to integer) - Removed support for
engine/Shopware/Configs/Custom.php- Use
config.phporconfig_$environment.phpe.g.config_production.php
- Use
- The MailTemplates now have global header and footer fields in configuration -> storefront -> email settings
- Header for Plaintext
- Header for HTML
- Footer for Plaintext
- Footer for HTML
- Refactored price surcharge for variants
s_article_configurator_price_surchargesdatabase table was fully restructured and renamed tos_article_configurator_price_variations. Existing data is migrated on update- Existing related ExtJs classes and events removed
- Existing price variation backend controller actions and methods removed
Shopware\Models\Article\Configurator\PriceSurchargedreplaced byShopware\Models\Article\Configurator\PriceVariation
- Replace
orderbydefaultconfiguration bydefaultListingSorting. Theorderbydefaultconfiguration worked with a plain sql input which is no longer possible. ThedefaultListingSortingcontains now one of the defaultsSortparameters of a listing. - Add configuration for each listing facet, which allows to disable each facet.
- Move performance filter configuration into the category navigation item.
- Uniform the sorting identifier in the search and listing. Search relevance id changed from 6 to 7 and search rating sorting changed from 2 to 7.
- Generated listing links in the
sGetArticlesByCategoryfunction removed. The listing parameters are build now over a html form.sNumberPagesvalue removedcategoryParamsvalue removedsPerPagecontains now the page limitsPagesvalue removed
- The listing filters are now selected in the
sArticles::getListingFacetsand assigned to the template as structs. - Replaced "evaluation" sorting of the search result with the listing "popularity" sorting.
- The search filters are now selected in the
getFacetsfunction of the frontend search controller. - The search filters are now assigned as structs to the template.
Shopware_Components_Search_Adapter_Defaultis now deprecated, use\Shopware\Bundle\SearchBundle\ProductNumberSearch.- The search term is handled in the
SearchTermConditionHandler. - This handler can be overwritten by custom handler. Custom handlers can be registered with the
Shopware_Search_Gateway_DBAL_Collect_Condition_Handlersevent.
- The search term is handled in the
- sGetArticleById result no longer contains the sConfiguratorSelection property. sConfiguratorSelection previously contained the selected variant data, which can now be accessed directly in the first level of the sGetArticleById result.
- sConfigurator class exist no more. The configurator data can now selected over the Shopware\Bundle\StoreFrontBundle\Service\Core\ConfiguratorService.php. To modify the configurator data you can use the sGetArticleById events.
sCategories::sGetCategoriesno longer returns the articleCount and the position of each category. Categories always sorted by the position and filtered by the active flag.- Removed config option
front.returnResponse, which was hardcoded totruesince SW 4.2 - Added global JavaScript StateManager Singleton to handle different states based on registered breakpoints.
- Added new default states to the state manager
xsthat ranges from 0 to 479 pixels viewport widthsthat ranges from 480 to 767 pixels viewport widthmthat ranges from 768 to 1023 pixels viewport widthlthat ranges from 1024 to 1259 pixels viewport widthxlthat ranges from 1260 to 5160 pixels viewport width
- Moved
frontend/detail/similar.tpltofrontend/detail/tabs/similar.tpl - Removed
frontend/checkout/ajax_add_article_slider_item.tpl - Removed
frontend/listing/box_crossselling.tpl - Removed
widgets/recommendation/item.tpl - Added
frontend/listing/product-box/box--product-slider.tpl- This file should be used as an product slider item template
- Following template files include the new product slider template
frontend/listing/product-box/box--product-slider.tplfrontend/checkout/ajax_add_article_slider.tplincludes it instead offrontend/checkout/ajax_add_article_slider_item.tplfrontend/detail/tabs/related.tplincludes it instead offrontend/listing/box_article.tplwidgets/recommendation/bought.tplincludes it instead ofwidgets/recommendation/item.tplwidgets/recommendation/viewed.tplincludes it instead ofwidgets/recommendation/item.tplwidgets/emotion/slide_articles.tplincludes it instead of its own implementation
- Block named
frontend_detail_index_similar_viewed_slideris now in thewidgets/recommendation/viewed.tplinstead offrontend/detail/index.tpl - Block named
frontend_detail_index_also_bought_slideris now in thewidgets/recommendation/bought.tplinstead offrontend/detail/index.tpl - Renamed
ENVtoSHOPWARE_ENVto avoid accidentally setENVvariable, please update your .htaccess if you use a custom envirenment or you are using the staging plugin - Removed Facebook Plugin from core (
Shopware_Plugins_Frontend_Facebook_Bootstrap). Will be released as plugin on Github. - Removed Google Plugin from core (
Shopware_Plugins_Frontend_Google_Bootstrap). Will be released as plugin on Github. - All downloaded dummy plugins are now installed in the
engine/Shopware/Plugins/Communitydirectory. - Install, update, uninstall function of a plugin supports now a "message" return parameter which allows to display different messages.
- New commands:
sw:cron:listandsw:cron:run - Running cronjobs using
php shopware.php backend/cronis not recommended and should be seen as deprecated sVoteAverangeandaverangeproperties of article and blog data structures have been renamed to fix the typo in their names.- Old versions are kept for compatibility reasons, but are deprecated and will be removed
- Please notice that the new variable might not always have the same value (10 based vs 5 based ratings)
- Added VRRL Plugin to Core. Service articles can be identified by article attributes. The field can be configured by general settings
- Support text which is assigned to an checkbox element in the emotion world module will now be transformed to a box label
- Added category selection for blog emotion widget
- Changed default sorting of pictures in the backend's Media Manager. Newer pictures are now displayed first.
widgets/campaignis now included in the HTTP cache's default configuration- Email validation is now done using the
egulias/email-validatorlibrary. - Removed
frontend/detail/ajax.tpl - Added
frontend/detail/product_quick_view.tpl - Added
\Shopware\Controllers\Frontend\Detail::productQuickViewActionto retrieve a detail template with minimal information - Added configuration
showEsdto show/hide the ESD-Downloads in the customer accounts menu. (default = true) - Article image album sizes have been changed to match the requirements of the new template (only new installations)
- Removed
srcproperty of article images. Each images contains now athumbnailsproperty which all thumbnails. *srcproperty is restored for old templates. - Default value for controllers in which to display tag clouds no longer includes homepage.
sSelfCanonicalis deprecated. Use thecanonicalParamsarray instead- Change array structure of thumbnail images in emotions, product detail pages, product listings, blog pages.
- Enable and disable function of a plugin bootstrap can now return same parameter as install, uninstall.
- Added automatic APC detection for the general cache.
- Backport ESI security patch from Symfony Upstream (http://symfony.com/blog/cve-2015-2308-esi-code-injection).
- Additional checks for the auto update module in preparation for Shopware 5.
- The config option
showExceptionnow only applies to frontend errors. Backend errors will always display the exception details. - New event
Shopware_Modules_Basket_AddArticle_CheckBasketForArticlein class sBasket - The
Google Analyticsplugin is deprecated and will be removed in the next release. Please use the newGoogle Servicesplugin instead, available on the community store. - Removed event
Shopware_Modules_Order_SaveOrder_FilterSQL - New event
Shopware_Modules_Order_SaveOrder_FilterParams - Implemented the
Enlight_Controller_Request_Requestinterface. Please typehint to this class instead toEnlight_Controller_Request_RequestHttp - New config option
trustedProxies - New event
Shopware_Controllers_Frontend_Forms_commitForm_Mail - Changed default value of
$checkProxyto false in \Enlight_Controller_Request_Request::getClientIp($checkProxy = false).- The correct client ip is automatically obtained if the
trustedProxiesoption is configured properly.
- The correct client ip is automatically obtained if the
- Deprecated event
Shopware_Plugins_HttpCache_ShouldNotCache - New config option
httpCache.cache_cookies
- Fixed name used as reference when setting attributes of an order document.
- Added new event
Shopware_Modules_Articles_sGetArticlesByCategory_FilterCountSql Forgotten passwordfeature now takes into account the configured minimum password length when generating new passwords- Create an attributes entity when creating an order document using the Document component and check for an
attributesarray in the document config, whose key/value pairs will be set as the document's attributes - Customer reviews backend module was improved to better handle reviews with large texts
- Auto update module now also reports main shop and subshops languages
- Maintenance mode options can now be configured by subshop
- Error notification via email was improved and now additionally includes environment and request information
- Minor occurrences of
metadescriptionandmetakeywordshave been uniformized tometaDescriptionandmetaKeywords - It's now possible to filter payment methods by subshops
/widgetsand/listingadded torobots.txt- Calling certain widget urls without the required parameters will no longer trigger a server error (returns 404 instead)
OverviewandStatisticsbackend modules were adjusted to have matching data and differentiate between new users and new customers.Shopping worldspages without assigned categories now support SEO urls- The query passed in the
Shopware_Modules_Basket_GetBasket_FilterSQLevent will no longer includes_core_unitsjoin and fields - The config option
showExceptionisfalseby default (engine/Shopware/Configs/Default.php)- Exceptions will no longer be shown in the store front
- Exceptions are logged in a logfile since 4.2.0 (/logs)
- The old behaviour can be restored by setting
'front' => array('showException' => true)in the projectsconfig.php
- Hiding the country field for shipping addresses will also hide the state field. The option label in the backend was adjusted to better describe this behaviour.
- Removed
locationheader in responses for all REST-API PUT routes (e.g. PUT /api/customers/{id}). - Removed deprecated Zend Framework components:
Zend_AmfZend_ApplicationZend_BarcodeZend_CloudZend_CodeGeneratorZend_ConsoleZend_GdataZend_MarkupZend_MeasureZend_MemoryZend_PdfZend_ReflectionZend_SearchZend_SerializerZend_TagZend_TestZend_ToolZend_EventManagerZend_FeedZend_DojoZend_MobileZend_QueueZend_CaptchaZend_Service
- Removed the following core classes deprecated and/or unused methods
sArticles::sGetArticleAccessoriessArticles::sCreateTranslationTablesArticles::sGetLiveShoppingsArticles::sGetArticleBundlesByArticleIDsArticles::sGetArticleBundleByIDsArticles::sGetBundleBasketDiscountsSystem::sPreProcesssSystem::sInitMailersSystem::sGetTranslationsSystem::sInitAdosSystem::sTranslateConfigsSystem::sInitConfigsSystem::sInitSmartysSystem::sInitSessionsSystem::sCallHookPointsSystem::sLoadHookPointssSystem::sInitFactorysSystem::sCheckLicensesSystem::E_CORE_ERRORsCms::sGetDynamicContentByGroupsCms::sGetDynamicContentByIdsCms::sGetDynamicGroupNamesAdmin::sGetDispatchsAdmin::sGetDispatchessAdmin::sGetShippingcostssAdmin::sCheckTaxIDsCore::sCustomRenderersBasket::sCountArticlessBasket::sGetBasketWeight
- Removed the following core classes deprecated and/or unused variables
sSystem::sDB_HOSTsSystem::sDB_USERsSystem::sDB_PASSWORDsSystem::sDB_DATABASEsSystem::sDB_CONNECTORsSystem::sDEBUGsSystem::sBENCHRESULTSsSystem::sBENCHMARKsSystem::sPathMediasSystem::sBasePathsSystem::sBasefilesSystem::sLicenseDatasSystem::sCurrencyDatasSystem::sPathCmsFilessSystem::sPathCmsImgsBasket::sBASKET
sCore::sBuildLink()second argument removed (dead code)sCoreno longer returnsnullwhen calling not implemented functionssNewslettercore class removedShopware_Controllers_Frontend_Contentlegacy controller removedtemplates/_default/frontend/contentlegacy template files removeds_cms_contentlegacy database table removed- Removed functions
simpledom_load_file()andsimpledom_load_string() - Removed class
SimpleDOMandShopware_Components_Xml_SimpleXml - Add new product feed modifier
articleImagesandproperty - Create a new product export cronjob to export all active product feeds
- Implement new article association for new seo categories. The seo categories can be assigned over the array key seoCategories in the article api resource.
- Access to GET, POST and COOKIES through sSystem is deprecated.
- The current arrays have been replaced with wrappers objects to the global variables
- This might introduce breaks in some scenarios (eg.: when using array functions like array_merge)
- Plugin configuration: Stores of
selectandcomboelements can now be translated - Dynamically injecting variables into sSystem is no longer supported
- Removed
Shopware\Models\Widget\View::labelvariable, getter and setter, and correspondents_core_widget_views::labeldatabase column - Deprecated
Shopware\Models\Widget\Widget::labelvariable, getter and setter, and correspondents_core_widgets::labeldatabase column - Removed deprecated widget settings from the config module. Active widgets and their positions will now be saved automatically.
- Removed desktop switcher from the
Shopware.container.Viewportbase component.
- Remove old payment dummy plugins out of the core: PaymentSofort and PigmbhRatePAYPayment
- The tell a friend feature is now disabled by default, due to legal requirements. This will affect new and existing installations. You can enable/re-enable it using a new configuration option in the backend settings menu.
- [REST API] Add thumbnail generation to article and variant create and update actions
- Deprecation: The Database Column impressions in s_articles_details in now deprecated. Please use the s_statistics_article_impression table.
Shopware_Components_Plugin_Bootstrapnow has aaddFormTranslations()method to facilitate translations creation for forms.- Removed view variables
sOrdersandsNotesfrom/engine/Shopware/Controllers/Frontend/Account.phpindex action - The methods
sGetOpenOrderDataandsGetDownloadsin/engine/core/class/sAdmin.phpwill now return a different array structure and will accept new optional parameters to provide a pager functionality - Added X-Sendfile support for ESD downloads.
redirectDownloadconfiguration variable is now deprecated,esdDownloadStrategyshould be used instead - Deprecation:
/engine/Shopware/Models/Payment/Repository.php:getPaymentsQueryandgetPaymentsQueryBuilderusegetActivePaymentsQueryandgetActivePaymentsQueryBuilderinstead.
- Add new metaTitle field to the Blog
- Add new metaTitle field to the Article
- Removed unused class
Services_JSON, was located at/engine/core/ajax/json.php. - The subquery in
$priceForBasePriceused insArticles::sGetArticlesByCategoryhas been removed. - A userland implementaion of
array_column()has been included. - Deprecated class
sTicketSystemhas been removed. - Doctrine has been updated to version 2.4. See: https://github.com/doctrine/doctrine2/blob/2.4/UPGRADE.md
- Break:
Doctrine\ORM\Query::setParamters()has changed. See: https://github.com/doctrine/doctrine2/blob/2.4/UPGRADE.md Shopware\Components\Model\QueryBuilder::setParameters()provides old behavior.- Break:
Shopware_Plugins_Frontend_RouterOld_Bootstrap::onAssembleevent and implementation removed - Update Zend Framework to version 1.12.3 (latest stable)
- Deprecation: Several unused Zend Framework components and classes are now deprecated. Refer to the full upgrade guide for details
- Break: Custom article attributes of type
Timeare now always saved using the german format. Only affects values inserted in non-german backends - Removed the sSetLastArticle in sArticles.php. Was deprecated through setLastArticleById in the Shopware_Plugins_Frontend_LastArticles_Bootstrap plugin.
- Implement new options in the article resource. "considerTaxInput" allows to get the variant prices considering the article tax. "language" allows to get a whole translated article array. The "language" parameter can contain a sub shop id or a language iso like en_GB.
s_core_debittable is now deprecated.s_core_payment_dataands_core_payment_instanceshould be used instead.- core payment classes were removed. Existing references in the core to those classes now use the core PaymentMethods module implementation. Refer to the module for details on how to implement payment method logic
- Break: PaymentMethods core plugin components and templates had their performance improved, resulting in potential breaks for extensions
-
- getCurrentPaymentData() was removed and should be replaced with getCurrentPaymentDataAsArray(), which returns the same information but in an array format
- Break: some payment snippets had their namespaces changed to comply with recent changes in snippet handling
- Break: customer detail editing in the backend: field names and field container structured to add support for additional payment methods. As such, debit.js view and detail controller have some breaks
- Ext.editorLang variable is no longer used and is being deprecated.
- Deprecation (REST API): 'debit' info in /api/customers/{id} is deprecated. Use 'paymentData' instead
- Break: Removed the Shopware.apps.Analytics.view.table.Conversion, Shopware.apps.Analytics.view.toolbar.Source and Shopware.apps.Analytics.view.toolbar.Shop file which now defined in the analytics/view/main/toolbar.js file.
- Removed unused class
Shopware_Components_Subscriber, was located at/engine/Shopware/Components/Subscriber.php. - Deprecation: Enlight's assertArrayCount() and assertArrayNotCount() are deprecated. Use phpunit's assertCount() instead
- New method
\Shopware\Components\Model\ModelManager::createPaginator($query). - This method should be used instead of
new \Doctrine\ORM\Tools\Pagination\Paginator($query). - As of SW 4.2
$paginator->setUseOutputWalkers(false)will be set here. - New methods for calculating the basepricedata have been integrated in
/engine/core/class/sArticles.php calculateCheapestBasePriceData| This methods returns always the basepricedata of the cheapest variant. This is used in the listing views.getCheapestVariant| This method is used by the methodcalculateCheapestBasePriceDatato get the purchaseunit and the referenceunit of the cheapest variant.calculateReferencePrice| This method does the basic calculation to get the right referenceprice.- New PaymentMethods core plugin including refactored Debit and new SEPA payment methods.
- New
Shopware\Models\Customer\PaymentDatamodel to store customer's payment information. - New
Shopware\Models\Payment\PaymentInstancemodel to store payments information for individual orders.
- The subquery in
$priceForBasePriceused in the methodsGetArticlesByCategoryof the class/engine/core/class/sArticles.phpis marked deprecated, because the query variablepriceForBasePriceis no longer in use. Please do not use it anymore.
- Add configuration
Always display item short descriptions in listing views. Shopware_Components_Plugin_Bootstrap::assertVersionGreaterThen()is now an alias toShopware_Components_Plugin_Bootstrap::assertMinimumVersion()and returns alwaystrueif run on an development/git Version of Shopware- Added a new method
getDefault()inengine/Shopware/Models/Shop/Repository.phpwhich returns just the default shop without callingfixActiv(). - Removed the unused
downloadAction()inengine/Shopware/Controllers/Backend/Plugin.php
decompressFile()in/engine/Shopware/Controllers/Backend/Plugin.phpdecompressFile()in/engine/Shopware/Plugins/Default/Core/PluginManager/Controllers/Backend/PluginManager.php
You should use the decompressFile method in the CommunityStore component instead
With Shopware 4.1.1 we have fixed a bug that appeared during certain constellations in the customer registration process. Submitting the registration formular empty, from time to time a fatal error was displayed.
For further information have a look at the following wiki article: