From 9237e0d362ed7e1c4e27722008dc8f77d6327ea0 Mon Sep 17 00:00:00 2001 From: Al Brookbanks Date: Thu, 14 Mar 2024 13:32:55 +0000 Subject: [PATCH] Revert "#3427 - parse description (progress)" This reverts commit f0b8ad5a442d419e6d40e3215a73c950b327b7b3. --- admin/skins/default/templates/products.index.php | 3 --- classes/catalogue.class.php | 1 - language/definitions.xml | 1 - setup/db/install/structure.sql | 1 - setup/db/upgrade/6.5.4.sql | 3 +-- 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/admin/skins/default/templates/products.index.php b/admin/skins/default/templates/products.index.php index dd7d5b204..67f8368aa 100755 --- a/admin/skins/default/templates/products.index.php +++ b/admin/skins/default/templates/products.index.php @@ -260,9 +260,6 @@

{$LANG.common.description}

-
- -

{$LANG.common.description_short} {$LANG.common.optional}

diff --git a/classes/catalogue.class.php b/classes/catalogue.class.php index dcab41471..f0ee5e72a 100755 --- a/classes/catalogue.class.php +++ b/classes/catalogue.class.php @@ -1119,7 +1119,6 @@ public function getProductData($product_id, $quantity = 1, $order = false, $per_ foreach ($result as $product) { $product['product_weight'] = (float)$product['product_weight']; $GLOBALS['language']->translateProduct($product); - $product['description'] = ($product['product_parse']==1) ? $GLOBALS['smarty']->fetch('string:'.$product['description']) : $product['description']; $this->getProductPrice($product, $quantity); if (!$category && $count == 1) { $data = $product; diff --git a/language/definitions.xml b/language/definitions.xml index 2b6bfffae..05d0b3363 100755 --- a/language/definitions.xml +++ b/language/definitions.xml @@ -243,7 +243,6 @@ - diff --git a/setup/db/install/structure.sql b/setup/db/install/structure.sql index 17ab34ef0..c1b72bf19 100755 --- a/setup/db/install/structure.sql +++ b/setup/db/install/structure.sql @@ -491,7 +491,6 @@ CREATE TABLE IF NOT EXISTS `CubeCart_inventory` ( `available` enum('0','1') NOT NULL DEFAULT '1', `minimum_quantity` INT(10) NOT NULL DEFAULT '1', `maximum_quantity` INT(10) NOT NULL DEFAULT '0', - `product_parse` tinyint(1) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`product_id`), KEY `status` (`status`), KEY `live_from` (`live_from`), diff --git a/setup/db/upgrade/6.5.4.sql b/setup/db/upgrade/6.5.4.sql index be044899a..923cb7f3c 100644 --- a/setup/db/upgrade/6.5.4.sql +++ b/setup/db/upgrade/6.5.4.sql @@ -20,5 +20,4 @@ ALTER TABLE `CubeCart_admin_users` CHANGE `email` `email` VARCHAR(96); #EOQ ALTER TABLE `CubeCart_category_language` CHANGE `cat_desc` `cat_desc` TEXT NULL DEFAULT NULL; #EOQ ALTER TABLE `CubeCart_inventory` CHANGE `maximum_quantity` `maximum_quantity` INT NULL DEFAULT '0'; #EOQ ALTER TABLE `CubeCart_order_summary` ADD `updated` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; #EOQ -ALTER TABLE `CubeCart_admin_log` CHANGE `item_id` `item_id` VARCHAR(255) NULL DEFAULT NULL; #EOQ -ALTER TABLE `CubeCart_inventory` ADD `product_parse` INT UNSIGNED NOT NULL DEFAULT '0'; #EOQ \ No newline at end of file +ALTER TABLE `CubeCart_admin_log` CHANGE `item_id` `item_id` VARCHAR(255) NULL DEFAULT NULL; #EOQ \ No newline at end of file