Maße wird nicht gezeigt

Ich habe auf der Datei source/Application/views/kalamulur/tpl/page/details/inc/productmain.tpl, wie der code aussiehst,

und er siehst in meine Webseite aus,

Wie kann L B H ?

Ich versuche besser zu bekommen mit diesem Code,

[{if $oDetailsProduct->oxarticles__oxlengt->value}]
                          <div class="lengt">

                       [{block name="oxarticles__oxlengt"}]
                           [{oxmultilang ident="LENGTH" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxlength->value}] [{oxmultilang ident="KG"}]   
                       [{/block}]
                [{/if}]
                [{if $oDetailsProduct->oxarticles__oxwidth->value}]
                    <div class="width">
                       [{block name="oxarticles__oxwidth"}]
                           [{oxmultilang ident="WIDTH" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxwidth->value}] [{oxmultilang ident="KG"}] 
                       [{/block}] 
                [{/if}]
                [{if $oDetailsProduct->oxarticles__oxheight->value}]
                    <div class="height">
                      [{block name="oxarticles__oxheight"}]
                          [{oxmultilang ident="HEIGHT" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxheight->value}] [{oxmultilang ident="KG"}] 
                      [{/block}]  
                [{/if}] 

aber bekomme so…

wie lautet deine Frage?

Ich möchte habe die Möglichkeit bekommen Lange, Breite und Hoch in jeden Sprachen, wie jetzt bekomme Gewicht

dafür musst du die jeweiligen Übersetzungen in cust_lang.php Dateien jeder Sprache einfügen, genau so wie beim Logo schon.

Ich habe versucht mache wie bei logos.

Der code von source/Application/views/kalamulur/tpl/page/details/inc/productmain.php

[{if $oDetailsProduct->oxarticles__oxlengt->value}]
                      <div class="lengt">

                       [{block name="oxarticles__oxlengt"}]
                           [{oxmultilang ident="lange-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxlength->value}] [{oxmultilang ident="lange-product"}]   
                       [{/block}]
                 [{/if}]
                 [{if $oDetailsProduct->oxarticles__oxwidth->value}]
                     <div class="width">
                        [{block name="oxarticles__oxwidth"}]
                           [{oxmultilang ident="width-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxwidth->value}] [{oxmultilang ident="width-product"}] 
                        [{/block}] 
                 [{/if}]
                 [{if $oDetailsProduct->oxarticles__oxheight->value}]
                      <div class="height">
                         [{block name="oxarticles__oxheight"}]
                            [{oxmultilang ident="height-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxheight->value}] [{oxmultilang ident="height-product"}] 
                         [{/block}]  
                  [{/if}]

dann in /oxid/source/Application/views/kalamulur auf den Verzeichnissen de, en es und ihren Dateien cust_lang.php schreibe,

‘lange-product’ => ‘Lange’; in de
‘lange-product’ => ‘Lang’, in en
‘lange-product’ => ‘Lang’, in es

und bekomme,

tmp geleert?

ja, beiden leer…

zeig mal die ganze cust_lang.php für Sprache Deutsch

das bild,

das Semikolon direkt hinter 'Lange' ist zu viel

Du hast besserer Augen als ich…, aber die Warnung bekomme noch…

Habe leer tmp und smarty

Auf was für einem Server entwickelst du?
Ich habe schon mal Server/Webhoster mit einem Caching gesehen, bei dem die Änmderungen an PHP Dateien teilweise 10 Minuten später sichtbar werden.
Ich habe deine Änderungen in meinem Dev Shop gemacht und da funktioniert es einwandfrei, also glaube ich, dass das Problem wo anders liegt.

Ich bin mit Debian 10

Was mysql -V sagt,

mysql Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Ohne diese Zeilen.

[{if $oDetailsProduct->oxarticles__oxheight->value}]
                      <div class="height">
                         [{block name="oxarticles__oxheight"}]
                            [{oxmultilang ident="height-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxheight->value}] 
                         [{/block}]  
                  [{/if}] 

Bekomme keine Warnung, aber lange und breite wird nicht gezeigt…

War der Server selbst eingerichtet oder vorinstalliert + vorkonfiguriert mit allen Programmen?
Da läuft vermutlich APC Cache, starte mal Apache neu und leere dann erneut tmp

War der Server selbst eingerichtet oder vorinstalliert + vorkonfiguriert mit allen Programmen?

Ich habe alles selbst installiert in meinen Rechner…, ob alle Programme installiert habe, ich Weiß nicht, aber wenn OXID installiert, hat alles Grün Farbe Farbe gegeben…

Mit diese Code bekomme,

<ul>
                          <li> [{oxmultilang ident="height-product" suffix="COLON"}]  [{$oDetailsProduct->oxarticles__oxlength->value}] cm</li>
                          <li>[{oxmultilang ident="width-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxwidth->value}] cm</li>
                          <li> [{oxmultilang ident="lange-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxheight->value}] cm</li>
                      </ul>

bekomme in der Webseite,

ERROR: Translation for height-product not found! 0.23 mm
ERROR: Translation for width-product not found! 0 mm
ERROR: Translation for lange-product not found! 5 mm

Geschafft! :grinning:

Ich hatte zwei Fehler…

  1. Auf der Verzeichnis /var/www/html/oxid/source/Application/translations/es/lang.php auf VAT_PLUS_PERCENT_AMOUNT' => 'más %s%% del importe por IVA' an ende fehlte eine komma…

  2. In source/Application/views/admin/de/cust_lang.php hatte doppelt ]; an ende…

und wie der Code habe,

[{if $oDetailsProduct->oxarticles__oxlength->value}]
                  <div class="length">

                   [{block name="oxarticles__oxlength"}]
                       [{oxmultilang ident="lange-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxlength->value}] [{oxmultilang ident="_UNIT_CM"}]   
                   [{/block}]
                [{/if}]
                [{if $oDetailsProduct->oxarticles__oxwidth->value}]
                  <div class="width">
                    [{block name="oxarticles__oxwidth"}]
                       [{oxmultilang ident="width-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxwidth->value}] [{oxmultilang ident="_UNIT_CM"}] 
                    [{/block}] 
                [{/if}]
                [{if $oDetailsProduct->oxarticles__oxheight->value}]
                  <div class="height">
                     [{block name="oxarticles__oxheight"}]
                        [{oxmultilang ident="height-product" suffix="COLON"}] [{$oDetailsProduct->oxarticles__oxheight->value}] [{oxmultilang ident="_UNIT_CM"}] 
                     [{/block}]  
                [{/if}]

@ vanilla_thunder, vielen Dank vor deinem Vorschlagen, danke ihnen haben mir geholfen, um die Fehler zu finden…

Vielen Dank auch für deine Geduld mit mir…

:+1: Find ich gut

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.