Projekt

Allgemein

Profil

Aktionen

GX-Bug #67483

offen

Own templates for product detail page are not loadable from a child theme of a child theme | Eigene Templates für die Produktdetailseite werden nicht von Child-Themes geladen

Von Till Tepelmann vor mehr als 3 Jahren hinzugefügt. Vor 11 Monaten aktualisiert.

Status:
Anerkannt
Priorität:
Hoch
Zugewiesen an:
-
Kategorie:
Core
Zielversion:
-
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.1.2.0, 4.2.0.0 beta1
Release Notes Langtext:

Beschreibung

Eigne Vorlagen für Artikeldetailseite sind nicht überladbar aus einem Child-Theme von einem Child-Theme

Wenn man z.B. ein Child-Theme von Malibu erstellt ist das schon die 3. Ebene.
Wenn man jetzt eine eigene Vorlage für die Artikeldetailseite mitliefern will, weil man bestimmte Artikel anders darstellen möchte, dann ist das nocht so einfach möglich.
Mann muss hier zu viele Dateien aus dem Eltern-Theme (Malibu) kopieren.

Beispiel:

Ich möchte eine Vorlage für die Artikeldetailseite im eigenen Theme mitliefern: product_info_template_test.html, dann muss ich die Original Datei im Ordner /html/system/product_info_template_standard.html kopieren in mein /html/system/ Ordner
Zusätzlich muss ich die gleiche Datei noch einmal kopieren und dann product_info_template_test.html nennen, damit diese im Artikel ausgewählt werden kann.

Wenn man dann ein Block ergänzen möchte, muss man noch die Varianten mit kopieren also auch den Ordner /variants/ aus dem Eltern-Theme (Malibu) kopieren und dort im Ordner ebenfalls eine Kopie der Datei
/variants/product-variant/classic/html/custom/product_info_template_standard.html mit dem Namen /variants/product-variant/classic/html/custom/product_info_template_test.html anlegen.
Alles noch mit Inhalt der Originaldateien unverändert.

Erst jetzt kann ich eine Datei /html/custom/product_info_template_test.html anlegen wo nur der Block drin ist der angehängt oder ergänzt werden soll.

Im Anhang ein Beispiel.


Own templates for product detail page are not loadable from a child theme of a child theme

For example, if you create a child theme of Malibu this is already the 3rd level.
If you want to create your own template for the product detail page, because you want to display certain products differently, it is not that easy.
You have to copy too many files from the parent theme (Malibu).

Example:

I want to provide a template for the product detail page in my own theme: product_info_template_test.html, then I have to copy the original file in the folder /html/system/product_info_template_standard.html into my /html/system/ folder
Additionally I have to copy the same file again and then name it product_info_template_test.html so that it can be selected in the product.

If you want to add a block, you have to copy the variants too, so you also have to copy the folder /variants/ from the parent theme (Malibu) and put a copy of the file /variants/product-variant/classic/html/custom/product_info_template_standard.html with the name /variants/product-variant/classic/html/custom/product_info_template_test.html

Everything still with the contents of the original files unchanged.

Only now I can create a file /html/custom/product_info_template_test.html where only the block that should be added or replaced is in it.

An example is attached.


Dateien

MyMalibuChild.zip (406 KB) MyMalibuChild.zip Till Tepelmann, 18.08.2020 17:21

Aktionen #1

Von Till Tepelmann vor mehr als 3 Jahren aktualisiert

  • Datei MyMalibuChild.zip MyMalibuChild.zip wurde hinzugefügt
  • Thema wurde von Eigne Vorlagen für Artikeldetailseite sind nicht überladbar aus einem Child-Theme von einem Child-Theme zu Own templates for product detail page are not loadable from a child theme of a child theme geändert
Aktionen #2

Von Daniel Wu vor mehr als 3 Jahren aktualisiert

Probably the product detail page template system should be entirely removed and replaced with block overloading. That would serve the same purpose and is used everywhere else.

Aktionen #3

Von Daniel Wu vor mehr als 3 Jahren aktualisiert

  • Status wurde von Gemeldet zu In Prüfung geändert
  • Zugewiesen an wurde auf Daniel Wu gesetzt
Aktionen #4

Von Daniel Wu vor etwa 3 Jahren aktualisiert

  • Status wurde von In Prüfung zu Gemeldet geändert
Aktionen #5

Von Ulrich Wenk vor etwa 3 Jahren aktualisiert

  • Status wurde von Gemeldet zu Anerkannt geändert
Aktionen #6

Von Daniel Wu vor mehr als 2 Jahren aktualisiert

  • Zugewiesen an Daniel Wu wurde gelöscht
Aktionen #7

Von Moritz Bunjes vor mehr als 2 Jahren aktualisiert

  • Zielversion 133 wurde gelöscht
Aktionen #8

Von Hilke Müller vor 11 Monaten aktualisiert

  • Thema wurde von Own templates for product detail page are not loadable from a child theme of a child theme zu Own templates for product detail page are not loadable from a child theme of a child theme | Eigene Templates für die Produktdetailseite werden nicht von Child-Themes geladen geändert
Aktionen

Auch abrufbar als: Atom PDF