Skip to content

Commit

Permalink
v.2.1.1
Browse files Browse the repository at this point in the history
We replace the separator with a void if the product description is not filled in
  • Loading branch information
sergeytolkachyov committed Mar 27, 2024
1 parent 600ee95 commit dda7077
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" method="upgrade" group="jshoppingadmin">
<name>JoomShopping Second Description For Product</name>
<creationDate>22.03.2024</creationDate>
<version>2.1.0</version>
<creationDate>27.03.2024</creationDate>
<version>2.1.1</version>
<author>MAXXmarketing</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.webdesigner-profi.de</authorUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" method="upgrade" group="jshoppingproducts">
<name>JoomShopping Second Description For Product</name>
<creationDate>22.03.2024</creationDate>
<version>2.1.0</version>
<creationDate>27.03.2024</creationDate>
<version>2.1.1</version>
<author>MAXXmarketing</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.webdesigner-profi.de/</authorUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ function onBeforeDisplayProduct(Event $event): void
}

$event->setArgument(1, $view);
} else {
$product->description = str_replace($this->separator,'', $product->description);
$event->setArgument(0, $product);
}
}
}

0 comments on commit dda7077

Please sign in to comment.