I have downloaded magento2 site from server and now i am installing it in my localhost.
During composer install command i am facing this error
Could not apply patch! Skipping. The error was: Cannot apply patch patches/composer/amasty_catwalk_compatibility.patch
[Exception]
Cannot apply patch Catwalk compatibility
(patches/composer/amasty_catwalk_compatibility.patch)!
I am sharing the patch file which is mentioned in the error message patches/composer/amasty_catwalk_compatibility.patch here
diff --git a/Plugin/Ajax/Ajax.php b/Plugin/Ajax/Ajax.php
index da37968..eca32a0 100644
--- a/Plugin/Ajax/Ajax.php
+++ b/Plugin/Ajax/Ajax.php
@@ -266,6 +266,10 @@ class Ajax
*/
private function addCategoryData($htmlCategoryData, $layout, &$responseData)
{
+ if ($this->design->getDesignTheme()->getCode() == 'Catwalk/default') {
+ $responseData['image'] = $this->getBlockHtml($layout, 'category.image');
+ $responseData['description'] = $this->getBlockHtml($layout, 'category.description');
+ }
if (in_array($this->design->getDesignTheme()->getCode(), $this->customThemes)) {
$responseData['image'] = $this->getBlockHtml($layout, 'category.image');
$responseData['description'] = $this->getBlockHtml($layout, 'category_desc_main_column');
diff --git a/view/frontend/web/js/amShopbyAjax.js b/view/frontend/web/js/amShopbyAjax.js
index b25df6e..6160038 100644
--- a/view/frontend/web/js/amShopbyAjax.js
+++ b/view/frontend/web/js/amShopbyAjax.js
@@ -347,6 +347,10 @@ define([
if (data.image) {
if (imageElement.length !== 0) {
imageElement.replaceWith(data.image);
+ let newImageElement = $('.category-image img');
+ let background_url = newImageElement.attr('src')
+ $('.category-image').css('background-image', 'url(' + background_url + ')');
+ newImageElement.hide();
} else {
imageElement.prependTo("column.main");
}
@@ -358,6 +362,7 @@ define([
if (data.description) {
if (descrElement.length !== 0) {
descrElement.replaceWith(data.description);
+ $('.category-top-table-cell').removeClass('active');
} else {
if (imageElement.length !== 0) {
$(data.description).insertAfter(imageElement.selector);
Can you suggest me what is wrong here?