Skip to content

Commit 05fc8d3

Browse files
authored
Merge pull request #1 from jayhybrid/minor-changes-in-wording-and-code
Minor changes in wording and code
2 parents 2a2f6a1 + 274b726 commit 05fc8d3

File tree

3 files changed

+30
-32
lines changed

3 files changed

+30
-32
lines changed

new_files/interface/fs_cleverreach_interface.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
require_once('fs_cleverreach_interface_rest_client.php');
4-
require("../includes/application_top_export.php");
5-
require("../inc/xtc_not_null.inc.php");
6-
require("../inc/xtc_get_country_name.inc.php");
3+
require_once 'fs_cleverreach_interface_rest_client.php';
4+
require '../includes/application_top_export.php';
5+
require '../inc/xtc_not_null.inc.php';
6+
require '../inc/xtc_get_country_name.inc.php';
77

8-
if(!defined('MODULE_FS_CLEVERREACH_INTERFACE_STATUS') || MODULE_FS_CLEVERREACH_INTERFACE_STATUS != 'true')
8+
if(!defined('MODULE_FS_CLEVERREACH_INTERFACE_STATUS') || MODULE_FS_CLEVERREACH_INTERFACE_STATUS != 'true')
99
{
1010
header('Location: ' . preg_replace("/[\r\n]+(.*)$/i", "", html_entity_decode($_SERVER['HTTP_REFERER'])));
1111
exit();
1212
}
1313

14-
if(!defined('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID') || !defined('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME') || !defined('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD'))
14+
if(!defined('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID') || !defined('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME') || !defined('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD'))
1515
{
1616
header('Location: ' . preg_replace("/[\r\n]+(.*)$/i", "", html_entity_decode($_SERVER['HTTP_REFERER'])));
1717
exit();
@@ -51,9 +51,9 @@
5151

5252
$manual_registered_customers = xtc_db_query("SELECT
5353
customers_id,
54-
customers_email_address as email,
54+
customers_email_address as email,
5555
date_added as registered,
56-
customers_firstname as firstname,
56+
customers_firstname as firstname,
5757
customers_lastname as lastname
5858
FROM " . TABLE_NEWSLETTER_RECIPIENTS . " WHERE mail_status = '1' ");
5959

@@ -113,9 +113,9 @@
113113
}
114114
$order_rows = xtc_db_query("SELECT DISTINCT o.orders_id, o.customers_id, o.customers_email_address as email, o.customers_firstname as firstname, o.customers_lastname as lastname, o.customers_gender as gender, o.customers_street_address as street, o.customers_city as city, o.customers_postcode as zip, o.customers_country as country, o.date_purchased, op.products_id, op.products_name, op.products_price, op.products_quantity from " . TABLE_ORDERS . " o JOIN " . TABLE_ORDERS_PRODUCTS . " op ON o.orders_id = op.orders_id GROUP BY o.customers_id ORDER BY o.date_purchased ");
115115
while ($order_row = xtc_db_fetch_array($order_rows)) {
116-
116+
117117
$orders = array();
118-
118+
119119
$orders[] = array(
120120
"order_id" => $order_row["orders_id"], //required
121121
"product_id" => $order_row["products_id"], //optional
@@ -125,7 +125,7 @@
125125
"amount" => $order_row["products_quantity"], //optional
126126
"source" => STORE_NAME //optional
127127
);
128-
128+
129129
$flagged_customers = xtc_db_query(" SELECT c.customers_date_added as registered, c.customers_gender as gender, c.customers_dob as dob FROM " . TABLE_CUSTOMERS . " c WHERE c.customers_id = '" . $order_row["customers_id"] . "' " . $where_clause);
130130
$receivers = array('postdata' => array());
131131

@@ -153,7 +153,7 @@
153153
if ($update_receivers) {
154154
$rest->delete("/groups.json/".$group_id."/receivers/".$order_row["email"]);
155155
}
156-
156+
157157
if (count($receivers) > 1000) {
158158
$rest->post("/groups.json/".$group_id."/receivers", $receivers);
159159
$receivers = array();

new_files/lang/english/modules/system/fs_cleverreach_interface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
2-
define('MODULE_FS_CLEVERREACH_INTERFACE_TITLE', 'Cleverreach Interface © by © by <a href="https://www.shopbetreuung.com/" target="_blank" style="color: #007bff; font-size:12px; font-weight: bold;">FishnetServices</a>');
3-
define('MODULE_FS_CLEVERREACH_INTERFACE_LONG_DESCRIPTION', 'This module adds an interface to the newsletter provider <a href="http://www.cleverreach.com/?rk=xcetomni" target="_blank"><strong>Cleverreach</strong></a>. You can then enter your data in the admin under "Additional modules". The export to ONE customer group is possible');
4-
define('MODULE_FS_CLEVERREACH_INTERFACE_STATUS_TITLE', 'Modul active?');
2+
define('MODULE_FS_CLEVERREACH_INTERFACE_TITLE', 'CleverReach Interface © by <a href="https://www.shopbetreuung.com/" target="_blank" style="color: #007bff; font-size: inherit; font-weight: inherit;">FishnetServices</a>');
3+
define('MODULE_FS_CLEVERREACH_INTERFACE_LONG_DESCRIPTION', 'This module adds an interface to the newsletter provider <a href="http://www.cleverreach.com/?rk=xcetomni" target="_blank"><strong>CleverReach</strong></a>. You can then enter your data in the admin area under <strong>Modules</strong> -> <strong>System Modules</strong>. It\'s possible to export to one customer group.');
4+
define('MODULE_FS_CLEVERREACH_INTERFACE_STATUS_TITLE', 'Modul enabled');
55
define('MODULE_FS_CLEVERREACH_INTERFACE_STATUS_DESC', 'Modul status');
66

7-
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_TITLE', 'Cleverreach Client ID');
7+
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_TITLE', 'CleverReach client ID');
88
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_DESC', '');
9-
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_TITLE', 'Cleverreach Username');
9+
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_TITLE', 'CleverReach username');
1010
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_DESC', '');
11-
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_TITLE', 'Cleverreach Password');
11+
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_TITLE', 'CleverReach password');
1212
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_DESC', '');
13-
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_TITLE', 'Cleverreach Import newsletter subscribers');
13+
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_TITLE', 'CleverReach import newsletter subscribers');
1414
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_DESC', '');
15-
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_TITLE', 'Cleverreach Import buyers');
15+
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_TITLE', 'CleverReach import buyers');
1616
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_DESC', '');
17-
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_TITLE', 'Cleverreach Group ID');
17+
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_TITLE', 'CleverReach Group ID');
1818
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_DESC', '');
1919

2020
define('BUTTON_EXPORT_FILTER_AMAZON', 'Filter Amazon customers');
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
<?php
2-
define('MODULE_FS_CLEVERREACH_INTERFACE_TITLE', 'Cleverreach Interface © by <a href="https://www.shopbetreuung.com/" target="_blank" style="color: #007bff; font-size:12px; font-weight: bold;">FishnetServices</a>');
3-
define('MODULE_FS_CLEVERREACH_INTERFACE_LONG_DESCRIPTION', 'Dieses Modul f&uuml;gt eine Schnittstelle zum Newsletteranbieter <a href="http://www.cleverreach.de/?rk=xcetomni" target="_blank"><strong>Cleverreach</strong></a> hinzu. Im Admin k&ouml;nnen Sie dann unter "Zusatzmodule" Ihre Daten eintragen. Es ist der Export in EINE Kundengruppe m&oouml;glich.');
2+
define('MODULE_FS_CLEVERREACH_INTERFACE_TITLE', 'CleverReach Interface © by <a href="https://www.shopbetreuung.com/" target="_blank" style="color: #007bff; font-size: inherit; font-weight: inherit;">FishnetServices</a>');
3+
define('MODULE_FS_CLEVERREACH_INTERFACE_LONG_DESCRIPTION', 'Dieses Modul f&uuml;gt eine Schnittstelle zum Newsletteranbieter <a href="http://www.cleverreach.de/?rk=xcetomni" target="_blank"><strong>CleverReach</strong></a> hinzu. Im Admin k&ouml;nnen Sie dann unter <strong>Module</strong> -> <strong>System Module</strong> Ihre Daten eintragen. Es ist der Export in eine Kundengruppe m&oouml;glich.');
44
define('MODULE_FS_CLEVERREACH_INTERFACE_STATUS_TITLE', 'Modul aktivieren?');
55
define('MODULE_FS_CLEVERREACH_INTERFACE_STATUS_DESC', 'Modul status');
66

7-
8-
9-
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_TITLE', 'Cleverreach Client ID');
7+
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_TITLE', 'CleverReach Client ID');
108
define('MODULE_FS_CLEVERREACH_INTERFACE_CLIENT_ID_DESC', '');
11-
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_TITLE', 'Cleverreach Username');
9+
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_TITLE', 'CleverReach Benutzername');
1210
define('MODULE_FS_CLEVERREACH_INTERFACE_USERNAME_DESC', '');
13-
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_TITLE', 'Cleverreach Password');
11+
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_TITLE', 'CleverReach Passwort');
1412
define('MODULE_FS_CLEVERREACH_INTERFACE_PASSWORD_DESC', '');
15-
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_TITLE', 'Cleverreach Importiere Newsletterabonnenten');
13+
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_TITLE', 'CleverReach importiere Newsletterabonnenten');
1614
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_SUBSCRIBERS_DESC', '');
17-
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_TITLE', 'Cleverreach Importiere K&auml;ufer');
15+
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_TITLE', 'CleverReach importiere K&auml;ufer');
1816
define('MODULE_FS_CLEVERREACH_INTERFACE_IMPORT_BUYERS_DESC', '');
19-
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_TITLE', 'Cleverreach Gruppen-ID');
17+
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_TITLE', 'CleverReach Gruppen-ID');
2018
define('MODULE_FS_CLEVERREACH_INTERFACE_GROUP_ID_DESC', '');
2119

2220
define('BUTTON_EXPORT_FILTER_AMAZON', 'Amazon Kunden ausfiltern');
23-
define('BUTTON_UPDATE_RECEIVERS', 'Update Empf&auml;ger');
21+
define('BUTTON_UPDATE_RECEIVERS', 'Update Empf&auml;ger');

0 commit comments

Comments
 (0)