|
From: <te...@us...> - 2013-07-17 02:29:53
|
Revision: 6089
http://sourceforge.net/p/web-erp/reponame/6089
Author: tehonu
Date: 2013-07-17 02:29:50 +0000 (Wed, 17 Jul 2013)
Log Message:
-----------
Added ShopShowLogoAndShopName Parameter and visual reorganization of parameters
Modified Paths:
--------------
trunk/ShopParameters.php
trunk/sql/mysql/upgrade4.10-4.11.sql
Modified: trunk/ShopParameters.php
===================================================================
--- trunk/ShopParameters.php 2013-07-17 02:01:27 UTC (rev 6088)
+++ trunk/ShopParameters.php 2013-07-17 02:29:50 UTC (rev 6089)
@@ -80,6 +80,10 @@
$SQL[] = "UPDATE config SET confvalue = '".$_POST['X_ShopShowLeftCategoryMenu']."' WHERE confname = 'ShopShowLeftCategoryMenu'";
}
+ if ($_SESSION['ShopShowLogoAndShopName'] != $_POST['X_ShopShowLogoAndShopName'] ) {
+ $SQL[] = "UPDATE config SET confvalue = '".$_POST['X_ShopShowLogoAndShopName']."' WHERE confname = 'ShopShowLogoAndShopName'";
+ }
+
if ($_SESSION['ShopShowInfoLinks'] != $_POST['X_ShopShowInfoLinks'] ) {
$SQL[] = "UPDATE config SET confvalue = '".$_POST['X_ShopShowInfoLinks']."' WHERE confname = 'ShopShowInfoLinks'";
}
@@ -301,53 +305,8 @@
echo '<option value="1">' . _('Show') . '</option>';
}
echo '</select></td>
- <td>' . _('Shows / Hides the QOH column Select Hide if you do not want customers to know how many stock do you currently hold.') . '</td>
+ <td>' . _('Shows / Hides the QOH column Select Hide if you do not want webSHOP visitors to know how many stock do you currently hold.') . '</td>
</tr>';
-
-echo '<tr>
- <td>' . _('Show/Hide Top Sales Categories Menu') . ':</td>
- <td><select name="X_ShopShowTopCategoryMenu">';
-if ($_SESSION['ShopShowTopCategoryMenu'] == '1') {
- echo '<option selected="selected" value="1">' . _('Show') . '</option>';
- echo '<option value="0">' . _('Hide') . '</option>';
-} else {
- echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
- echo '<option value="1">' . _('Show') . '</option>';
-}
-
-echo '</select></td>
- <td>' . _('Shows / Hides the horizontal sales categories menu below the webSHOP cart summary.') . '</td>
- </tr>';
-
-echo '<tr>
- <td>' . _('Show/Hide Left Sales Categories Menu') . ':</td>
- <td><select name="X_ShopShowLeftCategoryMenu">';
-if ($_SESSION['ShopShowLeftCategoryMenu'] == '1') {
- echo '<option selected="selected" value="1">' . _('Show') . '</option>';
- echo '<option value="0">' . _('Hide') . '</option>';
-} else {
- echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
- echo '<option value="1">' . _('Show') . '</option>';
-}
-
-echo '</select></td>
- <td>' . _('Shows / Hides the vertical sales categories menu on the left column.') . '</td>
- </tr>';
-
-echo '<tr>
- <td>' . _('Show/Hide InfoLinks Menu') . ':</td>
- <td><select name="X_ShopShowInfoLinks">';
-if ($_SESSION['ShopShowInfoLinks'] == '1') {
- echo '<option selected="selected" value="1">' . _('Show') . '</option>';
- echo '<option value="0">' . _('Hide') . '</option>';
-} else {
- echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
- echo '<option value="1">' . _('Show') . '</option>';
-}
-echo '</select></td>
- <td>' . _('Shows / Hides the information links menu at the footer of all the shop webpages. Useful to use Hide if webSHOP is used as an iFrame in a CMS system, if the information displayed is already in the CMS system.') . '</td>
- </tr>';
-
if (mb_strlen($_SESSION['ShopStockLocations'])>1){
$Locations = explode(',',$_SESSION['ShopStockLocations']);
@@ -398,8 +357,67 @@
<td>' . _('Select the webERP service item to use for payment surcharges to be processed as') . '</td>
</tr>';
+echo '<tr><th colspan="3">' . _('Web-Store CMS Integration Settings') . '</th></tr>';
+echo $TableHeader;
+echo '<tr>
+ <td>' . _('Show/Hide Top Sales Categories Menu') . ':</td>
+ <td><select name="X_ShopShowTopCategoryMenu">';
+if ($_SESSION['ShopShowTopCategoryMenu'] == '1') {
+ echo '<option selected="selected" value="1">' . _('Show') . '</option>';
+ echo '<option value="0">' . _('Hide') . '</option>';
+} else {
+ echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
+ echo '<option value="1">' . _('Show') . '</option>';
+}
+
+echo '</select></td>
+ <td>' . _('Shows / Hides the horizontal sales categories menu below the webSHOP cart summary.') . '</td>
+ </tr>';
+
+echo '<tr>
+ <td>' . _('Show/Hide Left Sales Categories Menu') . ':</td>
+ <td><select name="X_ShopShowLeftCategoryMenu">';
+if ($_SESSION['ShopShowLeftCategoryMenu'] == '1') {
+ echo '<option selected="selected" value="1">' . _('Show') . '</option>';
+ echo '<option value="0">' . _('Hide') . '</option>';
+} else {
+ echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
+ echo '<option value="1">' . _('Show') . '</option>';
+}
+
+echo '</select></td>
+ <td>' . _('Shows / Hides the vertical sales categories menu on the left column.') . '</td>
+ </tr>';
+
+echo '<tr>
+ <td>' . _('Show/Hide Logo and Shop Name') . ':</td>
+ <td><select name="X_ShopShowLogoAndShopName">';
+if ($_SESSION['ShopShowLogoAndShopName'] == '1') {
+ echo '<option selected="selected" value="1">' . _('Show') . '</option>';
+ echo '<option value="0">' . _('Hide') . '</option>';
+} else {
+ echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
+ echo '<option value="1">' . _('Show') . '</option>';
+}
+echo '</select></td>
+ <td>' . _('Shows / Hides the logo and webSHOP names. Useful to use Hide if webSHOP is used as an iFrame in a CMS system, if the information displayed is already in the CMS system.') . '</td>
+ </tr>';
+echo '<tr>
+ <td>' . _('Show/Hide InfoLinks Menu') . ':</td>
+ <td><select name="X_ShopShowInfoLinks">';
+if ($_SESSION['ShopShowInfoLinks'] == '1') {
+ echo '<option selected="selected" value="1">' . _('Show') . '</option>';
+ echo '<option value="0">' . _('Hide') . '</option>';
+} else {
+ echo '<option selected="selected" value="0">' . _('Hide') . '</option>';
+ echo '<option value="1">' . _('Show') . '</option>';
+}
+echo '</select></td>
+ <td>' . _('Shows / Hides the information links menu at the footer of all the shop webpages. Useful to use Hide if webSHOP is used as an iFrame in a CMS system, if the information displayed is already in the CMS system.') . '</td>
+ </tr>';
+
echo '<tr><th colspan="3">' . _('Bank Transfer Settings') . '</th></tr>';
echo $TableHeader;
Modified: trunk/sql/mysql/upgrade4.10-4.11.sql
===================================================================
--- trunk/sql/mysql/upgrade4.10-4.11.sql 2013-07-17 02:01:27 UTC (rev 6088)
+++ trunk/sql/mysql/upgrade4.10-4.11.sql 2013-07-17 02:29:50 UTC (rev 6089)
@@ -178,6 +178,7 @@
CHANGE `brpostaddr6` `brpostaddr6` VARCHAR( 40 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
INSERT INTO config VALUES ('ShopShowTopCategoryMenu','1');
+INSERT INTO config VALUES ('ShopShowLogoAndShopName','1');
UPDATE config SET confvalue='4.11.0' WHERE confname='VersionNumber';
|