Skip to content

Commit

Permalink
Merge pull request #69 from ekomi-ltd/feature/PD-501
Browse files Browse the repository at this point in the history
PD-501:Created csv file for lang and fixed static translation
  • Loading branch information
faisaliftikhar66 authored Feb 5, 2024
2 parents 6ddc4ec + d701831 commit 3e58ba9
Show file tree
Hide file tree
Showing 13 changed files with 197 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Model/System/Config/Source/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function toOptionArray()
foreach ($labels as $status) {
$statuses[] = [
'value' => $status['value'],
'label' => $status['label']
'label' => __($status['label'])
];
}

Expand Down
4 changes: 2 additions & 2 deletions Model/System/Config/Source/ExportMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class ExportMethod implements ArrayInterface
public function toOptionArray()
{
return $mod = [
['value' => 'status', 'label' => 'On Order Status Change'],
['value' => 'cron', 'label' => 'Every 24 hours (Cron)']
['value' => 'status', 'label' => __('On Order Status Change')],
['value' => 'cron', 'label' => __('Every 24 hours (Cron)')]
];
}
}
4 changes: 2 additions & 2 deletions Model/System/Config/Source/Identifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Identifier implements ArrayInterface
public function toOptionArray()
{
return $mod = [
['value' => 'id', 'label' => 'Product ID'],
['value' => 'sku', 'label' => 'Product SKU']
['value' => 'id', 'label' => __('Product ID')],
['value' => 'sku', 'label' => __('Product SKU')]
];
}
}
6 changes: 3 additions & 3 deletions Model/System/Config/Source/Mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Mod implements ArrayInterface
public function toOptionArray()
{
return $mod = [
['value' => 'email', 'label' => 'Email'],
['value' => 'sms', 'label' => 'SMS'],
['value' => 'fallback', 'label' => 'SMS if contact number valid, otherwise Email']
['value' => 'email', 'label' => __('Email')],
['value' => 'sms', 'label' => __('SMS')],
['value' => 'fallback', 'label' => __('SMS if contact number valid, otherwise Email')]
];
}
}
4 changes: 2 additions & 2 deletions Model/System/Config/Source/TermsAndConditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class TermsAndConditions implements ArrayInterface
public function toOptionArray()
{
return [
['value' => '1', 'label' => 'Yes'],
['value' => '0', 'label' => 'No'],
['value' => '1', 'label' => __('Yes')],
['value' => '0', 'label' => __('No')],
];
}
}
26 changes: 13 additions & 13 deletions Model/System/Config/Source/TurnaroundTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ class TurnaroundTime implements ArrayInterface
public function toOptionArray()
{
return $mod = [
['value' => '1', 'label' => '1 Day'],
['value' => '2', 'label' => '2 Days'],
['value' => '3', 'label' => '3 Days'],
['value' => '4', 'label' => '4 Days'],
['value' => '5', 'label' => '5 Days'],
['value' => '6', 'label' => '6 Days'],
['value' => '7', 'label' => '7 Days'],
['value' => '8', 'label' => '8 Days'],
['value' => '9', 'label' => '9 Days'],
['value' => '10', 'label' => '10 Days'],
['value' => '15', 'label' => '15 Days'],
['value' => '20', 'label' => '20 Days'],
['value' => '30', 'label' => '30 Days']
['value' => '1', 'label' => __('1 Day')],
['value' => '2', 'label' => __('2 Days')],
['value' => '3', 'label' => __('3 Days')],
['value' => '4', 'label' => __('4 Days')],
['value' => '5', 'label' => __('5 Days')],
['value' => '6', 'label' => __('6 Days')],
['value' => '7', 'label' => __('7 Days')],
['value' => '8', 'label' => __('8 Days')],
['value' => '9', 'label' => __('9 Days')],
['value' => '10', 'label' => __('10 Days')],
['value' => '15', 'label' => __('15 Days')],
['value' => '20', 'label' => __('20 Days')],
['value' => '30', 'label' => __('30 Days')]
];
}
}
2 changes: 1 addition & 1 deletion Model/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ private function configureCurl($shopId, $shopPassword, $httpMethod = self::HTTP_
}
}

}
}
117 changes: 59 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The eKomi product review container allows an easy integration of eKomi Reviews a
> [email protected], this is necessary to ensure everything has been set
> up correctly and activated from eKomi’s side.


## Key features

Expand Down Expand Up @@ -41,19 +41,19 @@ The eKomi product review container allows an easy integration of eKomi Reviews a

- The parent /child review display




## System Requirements

- PHP version 5.0 or greater

- MySQL version 5.6 or greater

- Magento Version 2.x






## Installation

Expand All @@ -64,11 +64,11 @@ The eKomi product review container allows an easy integration of eKomi Reviews a
**1.2** Execute the following commands respectively

1. composer config repositories.ekomi vcs https://github.com/ekomi-ltd/eKomi-integration-magento-2

2. composer require ekomiltd/ekomiintegration

3. php bin/magento setup:upgrade

4. php bin/magento setup:di:compile


Expand All @@ -86,21 +86,21 @@ The eKomi product review container allows an easy integration of eKomi Reviews a

**2.3** Execute the following commands respectively:


1. php bin/magento module:enable Ekomi_EkomiIntegration --clear-static-content

2. php bin/magento setup:upgrade

3. php bin/magento setup:di:compile


**2.4** Refresh the Cache under System­ ⇾ Cache Management

**2.5** Navigate to **Stores­ ⇾ Settings ⇾ Configuration** and the module Ekomi Integration will be listed in the admin under Ekomi tab

![](https://lh4.googleusercontent.com/1046yZ1TKs5CTdZ3LCKypJt2SxVhuWfcxUiNCfP86VDUFb0mDial_KSJple4u-IG3A3D1WDAmzZ3UWGDFyPRYTNhBZNgGhG8EXh1B9Sx70xp0hLn2s-h8bLYBpfeGKaHnAWOetYY)



## Configuration

Expand All @@ -112,27 +112,27 @@ The eKomi product review container allows an easy integration of eKomi Reviews a

![](https://lh4.googleusercontent.com/fAazQNmY4eU0TdvNgyNsRsX_fqFmEKDwx9zZg8dgSkzg4B2iU8UNJ4TmoNWvl4QZrEv_ld_Ppo1Cx8udJQzm4137Gxltrqb_ojhQnESHvT_3ammb-AgIeCYiK4o9d7XlVZwFfYnU)


- Enabled: Set to Yes.

- Product Base Reviews: If enabled, product attributes will also be sent to eKomi

- i.e. Product ID, SKU, Name, Type, Image, and URL

- Shop ID: Enter the Shop ID provided by eKomi.

- Shop Password: Enter the Shop Password/Secret provided by eKomi.

- Order Status: Choose Order Statuses on which you want to export order data to eKomi.

- Review Mode: for SMS, mobile number format should be according to E164.

- Product Identifier: The attribute you want to use as the Product Identifier in the eKomi system.

- Exclude Products: Comma separated product IDs/SKUs which should be excluded.

- Terms and Conditions: If enabled, then sends order to eKomi System otherwise not.

- Save the configuration

> Note: Plugin will only be enabled if shop credentials are valid.
Expand All @@ -142,9 +142,9 @@ The eKomi product review container allows an easy integration of eKomi Reviews a
![](https://lh4.googleusercontent.com/-cy3V9N4NoMxsJ2hx3XagEa_9Zq_9i4u0CPTdULhjuJlQ0Ot50obRrR8HPxTazqC_sSPdOgNdYeZAB88njWpIAAl1Tb_zXabHlm8fcIM9iOuq68NZhQlu-G-CsLD0u1AGDtSUvBS)

- Show PRC: Set to Yes.

- Widget Token: Enter the Widget Token provided by eKomi.

> Note: Ekomi Integration plugin should be enabled in order to display PRC.

Expand All @@ -158,92 +158,92 @@ The eKomi product review container allows an easy integration of eKomi Reviews a
![mtwo2.png](https://lh4.googleusercontent.com/diZ5QCNR8MURfrVH1hrBsd-sZrF5HzH2OOO_9sxlXlOCoGZdYckDDLQp38_QNcJl82No-ko60Rl5J57f1QR3FX-sn4OuSFMW_rW6LvILImjpMJczJFa5rYIMYxwUFFpFP78AvAtN)

- Type: Set eKomi Product Review Container

- Design Theme: Set the Current Theme

- Press Continue


**1.2** Storefront Properties

![Mtwo3.png](https://lh5.googleusercontent.com/kDJT2VCZomnGfQozwCAfPc_iOxpkb4QfQlbG_1nZoB9QaYiVifyOwK9oVIpksdHp4-dgzOEJNAUj8PwJAUBMg5mIofkHMlCBq5lmphuQbn4CwMKC-THWjMt36Yh7rHY74mBCXdT8)

- Fill the meta information i.e. Widget Title, Store Views, and Sort Order


**1.3** Add Layout Updates

![](https://lh5.googleusercontent.com/1MsZaeqv2IXsqBfa75QlyBpe0TUmUbXv8UaDgBeO8G81JDURjLiUxJdKRS597ucgNidsNlU3j1Ucy0iXMoqDu2L1HpoWmOoS4uoarfWia7Gp29mV-0hHObW_fPmND95CRpYC8xYH)



- Display On: Select desired product page

- Products: Select required products if any.

- Container: Select the required position for the widget.


**1.4** Save the Widget Instance and the PRC will be displayed on the Store Front



### 2. Programmatically


**2.1** Insert the following shortcode in the product detail page template where you want to display the widget.



<?php echo $this->getLayout()

->createBlock('Ekomi\EkomiIntegration\Block\Widget\Reviews')

->setTemplate('Ekomi_EkomiIntegration::ekomi_sw_prc.phtml')

->toHtml();

?>









The PRC Widget will be displayed as:



![](https://lh3.googleusercontent.com/QxdvsFUG_5PPF47e_BDqiJ_I2JGAj_AISmr3WkAHCHhzaoo5oNIf18byUy5fp-y7rajlnwr0ag59UXZLb1_YzAQ9yAgIq-H0vCrLF_AHwA_N7zyQC1hghrgMQg1EKFk9RzoJYTD9)



## Troubleshooting

Our eKomi headquarters in Berlin is the best place to start if you need help with this plugin. There our technical support team will get you up and running in time. You can book assistance at: [http://ssi.ekomi.com/booking](http://ssi.ekomi.com/booking).





## Plugin information

· Maintenance status: Minimally maintained

· Development status: Stable

· Last modified: 2023-Jan-31
· Last modified: 2022-Jan-06




### Downloads

##### Recommended releases


| Version | Download | Date |
|---------|:--------------:|:-----------:|
| 1.1.0 | zip (11.3 kB) | 2016-Oct-27 |
Expand All @@ -269,4 +269,5 @@ Our eKomi headquarters in Berlin is the best place to start if you need help wit
| 2.5.9 | zip (171.7 kB) | 2022-Jan-06 |
| 2.5.10 | zip (172.0 kB) | 2022-Sep-02 |
| 2.5.11 | zip (172.3 kB) | 2022-Dec-20 |
| 2.5.12 | zip (172.3 kB) | 2023-Jan-31 |
| 2.5.12 | zip (172.3 kB) | 2023-Jan-31 |
| 2.5.13 | zip (172.3 kB) | 2024-Feb-05 |
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ekomiltd/ekomiintegration",
"description": "eKomi Plugin for Magento allows you to integrate your Magento shop easily with eKomi system. This allows you to collect verified reviews, display eKomi seal on your website and get your seller ratings on Google. This helps you increase your website's click through rates, conversion rates and also, if you are running Google AdWord Campaigns, this helps in improving your Quality Score and hence your costs per click.",
"type": "magento2-module",
"version": "2.5.12",
"version": "2.5.13",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
showInDefault="1" showInWebsite="1" showInStore="1">
<label>Terms and Conditions</label>
<source_model>Ekomi\EkomiIntegration\Model\System\Config\Source\TermsAndConditions</source_model>
<comment><![CDATA[ <span style="font-size:12px;"> The plugin will export orders only if you are agree with our <a href='https://plugins-dashboard.ekomiapps.de/terms_and_conditions' target='_blank'>Terms and Conditions</a> </span>]]></comment>
<comment><![CDATA[The plugin will export orders only if you are agree with our <a href='https://plugins-dashboard.ekomiapps.de/terms_and_conditions' target='_blank'>Terms and Conditions</a>]]></comment>
</field>
</group>
<!-- <group id="prc" translate="label" type="text" sortOrder="1" showInDefault="1"
Expand All @@ -97,4 +97,4 @@
</group> -->
</section>
</system>
</config>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Ekomi_EkomiIntegration" setup_version="2.5.12" />
<module name="Ekomi_EkomiIntegration" setup_version="2.5.13" />
</config>
Loading

0 comments on commit 3e58ba9

Please sign in to comment.