Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1481444

    Hallo Enfold-Team,

    ich verwende Enfold mit WooCommerce und möchte die Sortieroptionen im Produktkatalog auf „Datum“ (Neueste zuerst) beschränken. Alle anderen Sortieroptionen – insbesondere „Standard“ (menu_order) – sollen vollständig entfernt werden, da sie für meinen Anwendungsfall nicht sinnvoll sind.

    Ich habe den folgenden Code auf Basis eures Forenbeitrags hier verwendet:

    Das brachte uns hierhin:
    https://woo.gwup.org/shop/ (nur noch zwei Optionen)

    Problem:
    Trotz Entfernung von menu_order über alle relevanten Filter erscheint im Frontend weiterhin die Sortieroption „Standard“ PLUS „Datum“ – das ist redundant weil der Standard bereits “nach Datum” ist..
    Die tatsächliche Standardsortierung funktioniert korrekt (neueste Produkte zuerst), aber das Dropdown zeigt weiterhin „Standard“ an.

    Frage:
    Gibt es in Enfold (ggf. via avia_woocommerce_catalog_ordering oder internem Template) noch eine Stelle, die menu_order oder „Standard“ manuell wieder hinzufügt oder ignoriert diese Filter vollständig?

    Ich wäre für einen konkreten Hinweis oder einen override-sicheren Lösungsansatz sehr dankbar.

    Mit freundlichen Grüßen
    Andrè

    ————————————————————-

    Hi Enfold team,

    I’m using Enfold with WooCommerce and would like to restrict the product sorting dropdown to show only “Date” (newest first). All other options should be removed, as they are not relevant for our shop.

    Based on your support forum post i used the code from here:

    That is the result
    https://woo.gwup.org/shop/ ( only two sortings left)

    The issue:
    Despite all filters removing menu_order, the “Standard” option is still visible in the sorting dropdown alongside “Date”.
    This is redundant since the standard is already set to “date” and we dont need any other sort option than “date”
    The sorting functionality works correctly — products are sorted by date as expected — but the “Standard” label is still displayed and selectable in the frontend.

    Question:
    Is there any part of Enfold (e.g. avia_woocommerce_catalog_ordering or a template override) that forcibly adds back the “Standard” entry or bypasses the WooCommerce filters?

    I would appreciate any advice or a clean and update-safe way to fully remove that option.

    Best regards,
    Andrè

    #1481563

    Hey kalla77,

    Thank you for the inquiry.

    Have you tried unsetting the default item?

    function my_woocommerce_catalog_orderby( $orderby ) {
            unset($orderby["default"]); // remove default item
    	unset($orderby["menu_order"]);
    	unset($orderby["rating"]);
    	unset($orderby["rand"]);
    	unset($orderby["id"]);
    
            return $orderby;
    }
    add_filter( "avf_wc_product_order_dropdown_frontend", "my_woocommerce_catalog_orderby", 20 );

    If you can promote the user to an admin account, we’ll try to it further.

    Best regards,
    Ismael

    #1481602

    Liebes Enfold Team,

    vielen Dank für Ihre Rückmeldung.

    Wir hatten das Sortier-Dropdown in unserem Setup bereits auf zwei wesentliche Optionen reduziert:
    – Standard
    – Datum

    Nach der Einbindung Ihres zuletzt vorgeschlagenen Codes wurden jedoch wieder zahlreiche Sortieroptionen angezeigt, die wir zuvor bewusst entfernt hatten.

    Unser Ziel ist es, ausschließlich die Sortierung nach Datum anzubieten. Weitere Sortieroptionen sind für unseren Anwendungsfall nicht erforderlich und sollen daher nicht angezeigt werden.

    Unsere Website enthält sensible Daten von fast 4000 Kunden und Mitgliedern. Aus Gründen der DSGVO ist es uns leider nicht möglich, Ihnen einen administrativen Zugang zur Verfügung zu stellen.

    Wir bitten Sie höflich um Unterstützung dabei, das Dropdown-Menü auf die alleinige Option „Datum“ zu beschränken.

    Mit bestem Dank im Voraus und freundlichen Grüßen
    Andrè

    English:

    Dear Enfold Team,

    thank you for your response.

    We had already reduced the sorting dropdown on our website to two essential options:
    – Default
    – Date

    However, after implementing the code you provided, multiple additional sorting options reappeared, which we had intentionally removed earlier.

    Our goal is to offer sorting by date only. No other sorting options are required for our specific use case and should therefore not be shown.

    Our website contains sensitive data of nearly 4,000 customers and members. Due to GDPR regulations, we are unfortunately unable to provide you with admin access.

    We kindly ask for your assistance in limiting the dropdown menu to the “Date” option only.

    With many thanks in advance and kind regards,
    Andrè

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.