Compare commits
42 Commits
Author | SHA1 | Date | |
---|---|---|---|
723df77a0e | |||
7d8d6a4fc3 | |||
a47d69b294 | |||
81b48e7f58 | |||
d7607ac7e2 | |||
7bc04bed10 | |||
73b378dd2c | |||
c312b9b4ad | |||
a142cf8a7d | |||
1dd784da4c | |||
f32d0f5389 | |||
ca0770824d | |||
b8a6e7e0e2 | |||
6c00b79119 | |||
32eba8f6fe | |||
9de7f7e096 | |||
4777681f2d | |||
e3ff45716a | |||
d973b37cb6 | |||
ef59e0a090 | |||
e4bc788538 | |||
23cfaf0c32 | |||
3a04e15579 | |||
221445573c | |||
0f17c8726d | |||
4723b6ab4d | |||
f2dbf59717 | |||
20d9dd83a6 | |||
bcc215238a | |||
e80d8e87f3 | |||
214bee4a2e | |||
a826d54f57 | |||
f83495cb02 | |||
1f31efbd31 | |||
48a2160836 | |||
ce6fcf3b4b | |||
0faa57ecb2 | |||
2982326cdc | |||
51a375bbb7 | |||
4c7472ef82 | |||
4067084676 | |||
538021335a |
@ -35,7 +35,7 @@
|
|||||||
<input type="hidden" name="catlang" value="[{$catlang}]">
|
<input type="hidden" name="catlang" value="[{$catlang}]">
|
||||||
<input type="hidden" name="editval[oxmanufacturers__d3description]" value="">
|
<input type="hidden" name="editval[oxmanufacturers__d3description]" value="">
|
||||||
|
|
||||||
<div style="margin-bottom: 40px; padding-bottom: 60px">
|
<div style="margin-bottom: 40px">
|
||||||
[{include file="include/category_text_editor.tpl"}]
|
[{include file="include/category_text_editor.tpl"}]
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
24
CHANGELOG.md
24
CHANGELOG.md
@ -4,48 +4,56 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.4.1...rel_1.x)
|
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.4.1...rel_1.1.x)
|
||||||
|
|
||||||
## [1.0.4.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.4.0...1.0.4.1) - 2024-12-12
|
## [1.1.4.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.4.0...1.1.4.1) - 2024-12-12
|
||||||
### Fixed
|
### Fixed
|
||||||
- fix wrong admin menu section
|
- fix wrong admin menu section
|
||||||
|
|
||||||
## [1.0.4.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.1...1.0.4.0) - 2024-12-05
|
## [1.1.4.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.3.1...1.1.4.0) - 2024-12-05
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- longdesc will parsed by Smarty
|
- longdesc will parsed by Smarty
|
||||||
|
|
||||||
## [1.0.3.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.3.0...1.0.3.1) - 2024-11-26
|
## [1.1.3.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.3.0...1.1.3.1) - 2024-11-26
|
||||||
### Fixed
|
### Fixed
|
||||||
- rename language files
|
- rename language files
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- switch to open source
|
- switch to open source
|
||||||
|
|
||||||
## [1.0.3.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.2.1...1.0.3.0) - 2024-11-22
|
## [1.1.3.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.1...1.1.3.0) - 2024-11-22
|
||||||
### Fixed
|
### Fixed
|
||||||
- content encoding on manufacturers list page
|
- content encoding on manufacturers list page
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- displaying content on manufacturers list page configurable
|
- displaying content on manufacturers list page configurable
|
||||||
|
|
||||||
## [1.0.2.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.2.0...1.0.2.1) - 2024-11-21
|
## [1.1.2.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.0...1.1.2.1) - 2024-11-21
|
||||||
### Fixed
|
### Fixed
|
||||||
- tab class for Wave based theme
|
- tab class for Wave based theme
|
||||||
- encoding error when using the WYSIWYG editor
|
- encoding error when using the WYSIWYG editor
|
||||||
|
|
||||||
## [1.0.2.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.1.0...1.0.2.0) - 2024-11-19
|
## [1.1.2.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.1.0...1.1.2.0) - 2024-11-19
|
||||||
### Fixed
|
### Fixed
|
||||||
- show hidden save button
|
- show hidden save button
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- hide empty HTML elements content
|
- hide empty HTML elements content
|
||||||
|
|
||||||
## [1.0.1.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.0.0...1.0.1.0) - 2024-11-18
|
## [1.1.1.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.0.0...1.1.1.0) - 2024-11-18
|
||||||
### Fixed
|
### Fixed
|
||||||
- installation instructions
|
- installation instructions
|
||||||
- show manufacturer link on article details page, if manufacturer hasn't an icon
|
- show manufacturer link on article details page, if manufacturer hasn't an icon
|
||||||
- prevent encoding HTML entities
|
- prevent encoding HTML entities
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- display manufacturer content as additional tab on article details page
|
||||||
|
- make displaying manufacturer tab on details page configurable
|
||||||
|
|
||||||
|
## [1.1.0.0](https://git.d3data.de/D3Private/manufacturer-information/compare/1.0.0.0...1.1.0.0) - 2024-11-13
|
||||||
|
### Added
|
||||||
|
- installability OXID 6.2.3 - 6.5.x
|
||||||
|
|
||||||
## [1.0.0.0](https://git.d3data.de/D3Private/manufacturer-information/releases/tag/1.0.0.0) - 2024-11-13
|
## [1.0.0.0](https://git.d3data.de/D3Private/manufacturer-information/releases/tag/1.0.0.0) - 2024-11-13
|
||||||
- initial release
|
- initial release
|
@ -1,45 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace D3\ManufacturerInformation\Events;
|
|
||||||
|
|
||||||
|
|
||||||
use OxidEsales\Eshop\Core\DatabaseProvider;
|
|
||||||
|
|
||||||
class Events
|
|
||||||
{
|
|
||||||
public static function activate()
|
|
||||||
{
|
|
||||||
self::d3AddLongdescColumnsToOxmanufacturers();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function deActivate()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return bool
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
protected static function d3AddLongdescColumnsToOxmanufacturers()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->execute("
|
|
||||||
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION TEXT NOT NULL DEFAULT '';
|
|
||||||
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_1 TEXT NOT NULL DEFAULT '';
|
|
||||||
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_2 TEXT NOT NULL DEFAULT '';
|
|
||||||
ALTER TABLE oxmanufacturers ADD COLUMN D3DESCRIPTION_3 TEXT NOT NULL DEFAULT '';
|
|
||||||
");
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
if ((string)$e->getCode() === '1054') {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
throw $e;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
14
README.md
14
README.md
@ -20,14 +20,22 @@ Dieses Paket erfordert einen mit Composer installierten OXID eShop in einer in d
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
composer config repositories.d3manufacturerinformation vcs https://git.d3data.de/D3Public/manufacturer-information.git
|
composer config repositories.d3manufacturerinformation vcs https://git.d3data.de/D3Public/manufacturer-information.git
|
||||||
composer require d3/manufacturerinformation:"~1.0.0"
|
composer require d3/manufacturerinformation:"~1.1.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
Sofern nötig, bestätigen Sie bitte, dass Sie `package-name` erlauben, Code auszuführen.
|
Sofern nötig, bestätigen Sie bitte, dass Sie `package-name` erlauben, Code auszuführen.
|
||||||
|
|
||||||
Aktivieren Sie das Modul im Shopadmin unter "Erweiterungen -> Module".
|
```bash
|
||||||
|
./vendor/bin/oe-eshop-db_migrate migrations:migrate d3manufacturerinformation
|
||||||
|
|
||||||
Aktualisieren Sie anschließend die Datenbank-Views und leeren den Temp Ordner des Shops.
|
./vendor/bin/oe-console o:m:i source/modules/d3/manufacturerinformation
|
||||||
|
./vendor/bin/oe-console o:m:deact d3manufacturerinformation
|
||||||
|
./vendor/bin/oe-console o:m:act d3manufacturerinformation
|
||||||
|
|
||||||
|
./vendor/bin/oe-eshop-db_views_generate
|
||||||
|
```
|
||||||
|
|
||||||
|
Leeren Sie anschließend den Temp Ordner des Shops.
|
||||||
|
|
||||||
## Lizenz
|
## Lizenz
|
||||||
(Stand: 13.11.2024)
|
(Stand: 13.11.2024)
|
||||||
|
@ -24,10 +24,13 @@
|
|||||||
"proprietary"
|
"proprietary"
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.0",
|
"php": "~7.1 || ~8.0",
|
||||||
"oxid-esales/oxideshop-ce": "v6.0 - v6.5.6"
|
"oxid-esales/oxideshop-ce": "v6.6.0 - v6.14.3"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"oxid-esales/oxideshop-ce": "~6.14.0",
|
||||||
|
"friendsofphp/php-cs-fixer": "^3.9"
|
||||||
},
|
},
|
||||||
"require-dev": {},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"oxideshop": {
|
"oxideshop": {
|
||||||
"blacklist-filter": [
|
"blacklist-filter": [
|
||||||
|
@ -17,7 +17,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
use D3\ManufacturerInformation\Application\Controller\Admin\ManufacturerInfoLongdesc;
|
use D3\ManufacturerInformation\Application\Controller\Admin\ManufacturerInfoLongdesc;
|
||||||
use D3\ManufacturerInformation\Application\Model\Constants;
|
use D3\ManufacturerInformation\Application\Model\Constants;
|
||||||
use D3\ManufacturerInformation\Events\Events;
|
|
||||||
use D3\ManufacturerInformation\Modules\Application\Model\D3ManufacturerLongDesc;
|
use D3\ManufacturerInformation\Modules\Application\Model\D3ManufacturerLongDesc;
|
||||||
use D3\ManufacturerInformation\Modules\Application\Model\ManufacturerInfoList;
|
use D3\ManufacturerInformation\Modules\Application\Model\ManufacturerInfoList;
|
||||||
use OxidEsales\Eshop\Application\Model\Manufacturer as OEManufacturer;
|
use OxidEsales\Eshop\Application\Model\Manufacturer as OEManufacturer;
|
||||||
@ -39,7 +38,7 @@ $aModule = [
|
|||||||
'en' => 'adds manufacturer information to the article list',
|
'en' => 'adds manufacturer information to the article list',
|
||||||
],
|
],
|
||||||
'thumbnail' => 'picture.svg',
|
'thumbnail' => 'picture.svg',
|
||||||
'version' => '1.0.4.1',
|
'version' => '1.1.4.1',
|
||||||
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
||||||
'email' => 'support@shopmodule.com',
|
'email' => 'support@shopmodule.com',
|
||||||
'url' => 'https://www.oxidmodule.com/',
|
'url' => 'https://www.oxidmodule.com/',
|
||||||
@ -50,10 +49,6 @@ $aModule = [
|
|||||||
OEManufacturer::class => D3ManufacturerLongDesc::class,
|
OEManufacturer::class => D3ManufacturerLongDesc::class,
|
||||||
OEManufacturerList::class => ManufacturerInfoList::class,
|
OEManufacturerList::class => ManufacturerInfoList::class,
|
||||||
],
|
],
|
||||||
'events' => [
|
|
||||||
'onActivate' => Events::class.'::activate',
|
|
||||||
'onDeactivate' => Events::class.'::deActivate',
|
|
||||||
],
|
|
||||||
'templates' => [
|
'templates' => [
|
||||||
'd3manufacturerlongdesc.tpl' => 'd3/manufacturerinformation/Application/views/admin/tpl/d3manufacturer_longdesc.tpl',
|
'd3manufacturerlongdesc.tpl' => 'd3/manufacturerinformation/Application/views/admin/tpl/d3manufacturer_longdesc.tpl',
|
||||||
],
|
],
|
||||||
|
63
migration/data/Version20241023154223.php
Normal file
63
migration/data/Version20241023154223.php
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* https://www.d3data.de
|
||||||
|
*
|
||||||
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||||
|
* @author D3 Data Development - Max Buhe, Daniel Seifert <info@shopmodule.com>
|
||||||
|
* @link https://www.oxidmodule.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace D3\ManufacturerInformation\Migrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\DBAL\Types\TextType;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20241023154223 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add the D3 manufacturer longdesc column';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
|
$this->d3AddLongdescColumnToOxmanufacturers($schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Schema $schema
|
||||||
|
* @return void
|
||||||
|
* @throws \Doctrine\DBAL\Schema\SchemaException
|
||||||
|
*/
|
||||||
|
public function d3AddLongdescColumnToOxmanufacturers(Schema $schema)
|
||||||
|
{
|
||||||
|
$table = !$schema->hasTable('oxmanufacturers') ?
|
||||||
|
$schema->createTable('oxmanufacturers') :
|
||||||
|
$schema->getTable('oxmanufacturers');
|
||||||
|
|
||||||
|
// Beschreibung
|
||||||
|
if (!$table->hasColumn('D3DESCRIPTION')) {
|
||||||
|
$table->addColumn('D3DESCRIPTION', (new TextType())->getName())
|
||||||
|
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
|
||||||
|
->setNotnull(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
77
migration/data/Version20241028172608.php
Normal file
77
migration/data/Version20241028172608.php
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* https://www.d3data.de
|
||||||
|
*
|
||||||
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
||||||
|
* @author D3 Data Development - Max Buhe, Daniel Seifert <info@shopmodule.com>
|
||||||
|
* @link https://www.oxidmodule.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace D3\ManufacturerInformation\Migrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\DBAL\Types\TextType;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20241028172608 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add multilang tables for the D3 manufacturer longdesc';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->connection->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
|
$this->d3AddLongdescMultilangColumnsToOxmanufacturers($schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Schema $schema
|
||||||
|
* @return void
|
||||||
|
* @throws \Doctrine\DBAL\Schema\SchemaException
|
||||||
|
*/
|
||||||
|
public function d3AddLongdescMultilangColumnsToOxmanufacturers(Schema $schema)
|
||||||
|
{
|
||||||
|
$table = !$schema->hasTable('oxmanufacturers') ?
|
||||||
|
$schema->createTable('oxmanufacturers') :
|
||||||
|
$schema->getTable('oxmanufacturers');
|
||||||
|
|
||||||
|
// lang 1
|
||||||
|
if (!$table->hasColumn('D3DESCRIPTION_1')) {
|
||||||
|
$table->addColumn('D3DESCRIPTION_1', (new TextType())->getName())
|
||||||
|
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
|
||||||
|
->setNotnull(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// lang 2
|
||||||
|
if (!$table->hasColumn('D3DESCRIPTION_2')) {
|
||||||
|
$table->addColumn('D3DESCRIPTION_2', (new TextType())->getName())
|
||||||
|
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
|
||||||
|
->setNotnull(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// lang 3
|
||||||
|
if (!$table->hasColumn('D3DESCRIPTION_3')) {
|
||||||
|
$table->addColumn('D3DESCRIPTION_3', (new TextType())->getName())
|
||||||
|
->setLength($this->connection->getDatabasePlatform()::LENGTH_LIMIT_TEXT)
|
||||||
|
->setNotnull(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
4
migration/migrations.yml
Normal file
4
migration/migrations.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: D3 manufacturerinformation
|
||||||
|
migrations_namespace: D3\ManufacturerInformation\Migrations
|
||||||
|
table_name: d3migrations_manufacturerinformation
|
||||||
|
migrations_directory: data
|
Loading…
x
Reference in New Issue
Block a user