Skip to content

Commit

Permalink
Merge pull request #3 from magmodules/release/1.0.3
Browse files Browse the repository at this point in the history
Release/1.0.3
  • Loading branch information
Marvin-Magmodules authored Nov 29, 2024
2 parents ab0eba5 + ddf4d27 commit 37c3f1e
Show file tree
Hide file tree
Showing 5 changed files with 510 additions and 493 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"require": {
"magento/framework": "*",
"hyva-themes/magento2-compat-module-fallback": "*",
"magmodules/magento2-reviewreminder": "*"
"magmodules/magento2-reviewreminder": "~1.12.0"
},
"autoload": {
"files": [
Expand Down
21 changes: 21 additions & 0 deletions src/ViewModel/Review/Form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* Copyright © Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magmodules\HyvaReviewReminder\ViewModel\Review;

use Magmodules\ReviewReminder\ViewModel\Review\Form as ReviewForm;


class Form extends ReviewForm
{
public function getSteps()
{
return $this->isAddShopreview()
? [__('Review'), __('Shopreview'), __('Submitted')]
: [__('Review'), __('Submitted')];
}
}
5 changes: 5 additions & 0 deletions src/etc/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magmodules\ReviewReminder\ViewModel\Review\Form"
type="Magmodules\HyvaReviewReminder\ViewModel\Review\Form" />
</config>
4 changes: 4 additions & 0 deletions src/i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"[review:reminder:nickname:text]", "A nickname is required for every review and is publicly visible next to each review you write. For privacy reasons, we do recommend using a nickname instead of your full name."
"[review:reminder:write:review:text]", "With your review, you help us, as well as other customers, gain even more relevant information about the product. You can always check and edit the written review in your account."
"[review:reminder:review:text]", "By posting reviews you give permission to use your personal data in accordance with the privacy statement. In your review we do not show any personal information such as your email address or name. You may receive emails regarding your review."
"[review:reminder:success:text]%1", "Thank you again for your recent purchase with number <b>#%1</b>. With your review, you help us, as well as other customers, gain even more relevant information about the product. You can always check and edit the written review in your account. Have a good day!"
Loading

0 comments on commit 37c3f1e

Please sign in to comment.