Ankündigung

Einklappen
Keine Ankündigung bisher.

Bug filter select / text field

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Tim
    antwortet
    Die frischen Versionen sind bereits ausgerollt. VG, Tim

    Einen Kommentar schreiben:


  • tj_rising
    antwortet
    Super, danke dir!

    Einen Kommentar schreiben:


  • Tim
    antwortet
    Zitat von tj_rising Beitrag anzeigen
    Moin Tim,
    ich klink mich hier mal ein.
    Habe gerade auf die neueste Version geupdatet und bei meinen Filter Selects werden auch keine Labels mehr im Frontend angezeigt. Es handelt sich dabei um das Attribute "Auswahl,einfach (Select/Radio)". Im Backend werden die Labels korrekt angezeigt, auch beim Filter in der Listenansicht.
    Danke Dir. Das stimmt. Eine PHP8 bezogene Anpassung in CE 4.4.10 ist ausschlaggebend. Das System denkt es gäbe in diesem Moment einen übersetzten Wert im Label.

    Ich habe es notiert und mach da gleich einen kleinen hotfix draus. Das spart ein Downgrade von CE
    Zuletzt geändert von Tim; 24.06.2022, 09:34.

    Einen Kommentar schreiben:


  • tj_rising
    antwortet
    Moin Tim,
    ich klink mich hier mal ein.
    Habe gerade auf die neueste Version geupdatet und bei meinen Filter Selects werden auch keine Labels mehr im Frontend angezeigt. Es handelt sich dabei um das Attribute "Auswahl,einfach (Select/Radio)". Im Backend werden die Labels korrekt angezeigt, auch beim Filter in der Listenansicht.

    Einen Kommentar schreiben:


  • iGweb
    antwortet
    It's perfect ! Thanks a lot

    Einen Kommentar schreiben:


  • Tim
    antwortet
    Try this one.

    When the label is empty, it uses the value instead. Should work fine for a textfield.

    Code:
    <?php foreach($this->options as $option): ?>
    <?php
    $label = $option['label'];
    if ( empty($label) )
    {
    $label = $option['value'];
    }
    ?>
    <option value="<?php echo $option['value']; ?>"<?php if($option['selected']):?>selected<?php endif;?>><?php echo $label; ?></option>
    <?php endforeach; ?>

    Angehängte Dateien

    Einen Kommentar schreiben:


  • iGweb
    antwortet

    Yes the filter is working fine.
    It's just the display of the text in the filter that doesn't work...

    I think we should modify the template "customcatalog_filter_select_nocount.html5"...

    Einen Kommentar schreiben:


  • Tim
    antwortet
    I understand.

    Does the select filter work correctly besides just the labels. You can modify the filter template and add the raw text as labels

    Einen Kommentar schreiben:


  • iGweb
    antwortet
    Thank you for your reply.

    The problem is that I need to have a free field in my catalog.
    Because my client must be able to choose the title independently...

    Is it possible with a select attribute?

    Einen Kommentar schreiben:


  • Tim
    antwortet
    Hi,
    better use a select attribute in combination with a select filter.

    Einen Kommentar schreiben:


  • iGweb
    hat ein Thema erstellt Bug filter select / text field.

    Bug filter select / text field

    Hello,

    I have a bug on a site under development.

    - I have a select filter that does not display the "text" values ​​of the filter (see screenshot)
    - The corresponding field behind the filter is a text field
    - The two other filters above and below work, they are tags.

    Here is the link to the site under development: http://www.symbiaigweb.prod-igweb.fr...de-stages.html

    Do you have a solution to my problem?

    Thanks

    (License number: 1386094235)
Lädt...
X