Wo kann ich Änderungen am Template durchführen

Hallo zusammen!

 

Ich würde gerne manuell Änderungen am Standard-Template im Bereich (Warenkorb > „Artikelnummer hinzufügen“ entfernen), durchführen.
Da ich noch neu bei diesem Shopsystem bin hätte ich folgende Fragen:

 

  1. Ist es zu empfehlen Änderungen direkt im Standard-Template durchzuführen? Oder soll ich besser eine Kopie des Standard Templates anlegen und die Änderungen dort durchführen.

  2. Wird das Standard-Template bei Updates wieder überschrieben?

  3. Wo kann ich die Änderungen vornehmen? Im Backend oder direkt über FTP? Wo dort? Hab schon alles durchsucht… (Steh grad auf der Leitung :slight_smile: )

 

Über Eure Unterstützung wäre ich sehr dankbar!

LG Marion

Hier findest du ausführliche Dokumentationen: Frontend Guides

Viele Grüße

1 „Gefällt mir“

@mabsite schrieb:

Hallo zusammen!

 

Ich würde gerne manuell Änderungen am Standard-Template im Bereich (Warenkorb > „Artikelnummer hinzufügen“ entfernen), durchführen.
Da ich noch neu bei diesem Shopsystem bin hätte ich folgende Fragen:

 

  1. Ist es zu empfehlen Änderungen direkt im Standard-Template durchzuführen? Oder soll ich besser eine Kopie des Standard Templates anlegen und die Änderungen dort durchführen.

  2. Wird das Standard-Template bei Updates wieder überschrieben?

  3. Wo kann ich die Änderungen vornehmen? Im Backend oder direkt über FTP? Wo dort? Hab schon alles durchsucht… (Steh grad auf der Leitung :slight_smile: )

 

Über Eure Unterstützung wäre ich sehr dankbar!

LG Marion

Hallo,

zu 1: Niemals im Bare- oder Responsive - Theme („Standard-Theme“) Änderungen vornehmen sondern ein eigenes Theme erstellen, das vom Responsiven Theme von Shopware ableitet und dort die Änderungen vornehmen.

zu 2: Ja.

zu 3: Die Änderungen werden in den entsprechenden Template - Dateien vorgenommen, also ja, auf dem FTP sozusagen. Beispiel: Example - Custom detail page .

Beste Grüße

Sebastian

1 „Gefällt mir“

so, jetzt wollte ich ein eigenes Template, abgeleitet vom Responisve erstellen, und habe folgende Fehlermeldung erhalten:

 exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24-mobileLogo' for key 'template\_id\_name'' in /hp/af/ac/kc/www/Shopware50/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:165 Stack trace: #0 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(165): PDOStatement-\>execute(NULL) #1 /hp/af/ac/kc/www/Shopware50/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Form/Persister/Theme.php(62): Doctrine\ORM\EntityManager-\>flush() #6 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Configurator.php(132): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Installer.php(154): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Flockdruckstick\Theme)) #8 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Installer.php(116): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Controllers/Backend/Theme.php(219): Shopware\Components\Theme\Installer-\>synchronize() #10 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('listAction') #12 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Kernel.php(177): Enlight\_Controller\_Front-\>dispatch() #14 /hp/af/ac/kc/www/Shopware50/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #16 /hp/af/ac/kc/www/Shopware50/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #17 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #18 /hp/af/ac/kc/www/Shopware50/shopware.php(113): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main} Next exception 'Doctrine\DBAL\DBALException' with message 'An exception occurred while executing 'INSERT INTO s\_core\_templates\_config\_elements (template\_id, type, name, position, default\_value, selection, field\_label, support\_text, allow\_blank, less\_compatible, attributes, container\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [24, "theme-media-selection", "mobileLogo", 0, "s:47:\"frontend\/\_public\/src\/img\/logos\/logo--mobile.png\";", "N;", "\_\_smartphone\_\_", null, 1, 0, "a:1:{s:14:\"lessCompatible\";b:0;}", 67]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '24-mobileLogo' for key 'template\_id\_name'' in /hp/af/ac/kc/www/Shopware50/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:119 Stack trace: #0 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(175): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(PDOException), 'INSERT INTO s\_c...', Array) #1 /hp/af/ac/kc/www/Shopware50/engine/Library/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(281): Doctrine\DBAL\Statement-\>execute() #2 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1018): Doctrine\ORM\Persisters\Entity\BasicEntityPersister-\>executeInserts() #3 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(378): Doctrine\ORM\UnitOfWork-\>executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata)) #4 /hp/af/ac/kc/www/Shopware50/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(356): Doctrine\ORM\UnitOfWork-\>commit(NULL) #5 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Form/Persister/Theme.php(62): Doctrine\ORM\EntityManager-\>flush() #6 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Configurator.php(132): Shopware\Components\Form\Persister\Theme-\>save(Object(Shopware\Components\Form\Container\TabContainer), Object(Shopware\Models\Shop\Template)) #7 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Installer.php(154): Shopware\Components\Theme\Configurator-\>synchronize(Object(Shopware\Themes\Flockdruckstick\Theme)) #8 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/Theme/Installer.php(116): Shopware\Components\Theme\Installer-\>synchronizeThemes() #9 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Controllers/Backend/Theme.php(219): Shopware\Components\Theme\Installer-\>synchronize() #10 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Theme-\>listAction() #11 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('listAction') #12 /hp/af/ac/kc/www/Shopware50/engine/Library/Enlight/Controller/Front.php(223): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #13 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Kernel.php(177): Enlight\_Controller\_Front-\>dispatch() #14 /hp/af/ac/kc/www/Shopware50/vendor/symfony/http-kernel/HttpCache/HttpCache.php(487): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #15 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #16 /hp/af/ac/kc/www/Shopware50/vendor/symfony/http-kernel/HttpCache/HttpCache.php(258): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #17 /hp/af/ac/kc/www/Shopware50/engine/Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #18 /hp/af/ac/kc/www/Shopware50/shopware.php(113): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #19 {main}

 

Was habe ich falsch gemacht?  Crying