Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1223272

    Dear Support Team.

    I am happy to move a big site from Betheme to Enfold, my all time favourite WP Theme.

    However, I have stumbled upon a critical issue which I am not able to solve and kindly ask for support.

    Context: Using ACF, I have a Taxonomy Field with Multi Select in which I select some services (Woocommerce Produts) related to a product. In the backend the services can be sorted using drag and drop.

    Issue: Enfold seems to override the sorting order in the frontend and sorts the products alphabetically instead of the order in the ACF backend.

    Scope: This is an Enfold issue, as all other variables (code and plugins) are identical in the two sites I am comparing (betheme vs enfold).

    Request: Which part of the code overrides the sorting of ACF in the backend and / or how can I disable that?

    Have tried (without success):
    https://kriesi.at/support/topic/function-to-remove-woocommerce-product-sorting/
    – All options in the wp admin regarding sorting, it always sorts by product name.
    – Css will obviously point useless here.

    Looking forward to hearing from you.

    Access to the site from external parties is not possible due to company policy.

    #1224806

    Hey alvaromasiammp,

    Sorry for the delay. We are not yet sure what’s affecting the sorting of the taxonomy field, but it could be a filter that sorts the terms beforehand. Can we access the site?

    Best regards,
    Ismael

    #1224824
    This reply has been marked as private.
    #1225283

    Hi,

    How did you create the “Regal aufbauen” and “Regal abbauen” services? We are having a bit of difficulty navigating the site because of the language.

    We went through the filters and actions included in the theme, but we can’t find anything that sorts the taxonomy terms. In which taxonomy do the services “Regal aufbauen” and “Regal abbauen” belong?

    Best regards,
    Ismael

    #1225761
    This reply has been marked as private.
    #1226550

    Hi support.

    Unfortunately after 12 days of my initial query we are not much further.

    Is there anything I can do to expedit this? It is becoming a bit critical to our timeline.

    Hope to hear from you soon.

    Alvaro

    #1226722

    Hi,

    Sorry for the delay. We can’t really find anything in the theme that alters the product sorting, but it looks like ACF allows you to change the sorting or order of the Post Objects. Unfortunately, we are not sure if it’s possible to sort them based on how they were arranged in the product editor.

    // https://support.advancedcustomfields.com/forums/topic/post-object-field-sort-order/

    Example:

    // function my_post_object_query( $args, $field, $post )
    {
        // modify the order
        $args['orderby'] = 'date';
        $args['order'] = 'DESC';
    
        return $args;
    }
    
    // filter for a specific field based on it's name
    add_filter('acf/fields/post_object/query/name=heft', 'my_post_object_query', 10, 3);
    

    We’ll tag one of our developers to check the thread.

    Best regards,
    Ismael

    #1226757
    This reply has been marked as private.
    #1226767
    This reply has been marked as private.
    #1227157

    Hi!

    That is actually one of the first things that we checked — pre_get_posts used in the theme, and there’s only 5 instances, but none of them relates to the sorting of the taxonomy terms or products.

    And yes, you can use that filter to adjust the sorting of the Post Object. It’s actually the same filter that we posted previously.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.