Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1100025

    Hi,
    I like to come back to a very old problem I face with the Enfold and / or woocommerce product sort. It simply does not work at all, it never did. I am not a coder. As some agents, coding experts and myself tried so many things, read post in the forum, but all in vain, I decided to tolerate this bug for a while. But it is an imposition to the user, of course.

    Please have a look at any product catagorie of https://brandgeister.de, and try to sort products by what you want, up or down. See, what I mean?
    I tried with and without your recommended code:
    remove_action( ‘woocommerce_before_shop_loop’, ‘avia_woocommerce_frontend_search_params’, 20);
    My product column is 4, prod count per page is 20.
    Accidently, without knowing, for a long while we had the menu order for many products set to any numbers. I cleared that, each product now has the order number 1.
    No matter if you set the standard sort options in the theme customizer to newest, price, most sold or standard. The clue here is, that in the preview of the customizer it seems to work fine, but in the Live-Frontend nothing ever changes. All caches emptied, of course.

    On this occasion, I like to delete the option “date” from the sort menue, because it is irrelevant for our users.

    I would be very happy, if anyone could help.
    Best regards, joerg

    #1101023

    Hey brandgeist17,

    Thank you for using Enfold.

    Did you try to update to 4.5.7?

    Can you create us a WP admin account so We can check your settings in the backend and try to reproduce it on our dev servers?

    Also try to disable other plugins and check to exclude a possible plugin conflict.

    Best regards,
    Günter

    #1102442

    Hey Günter,
    I don’t understand: Enfold is 4.5.3 and the theme’s setting say no updates available. Besides: this issue persists for almost 2 years now with any WP / Woo / Enfold versions or plugin combinations you can imagine.
    I tried once more, though, to be sure, and deactivated all plugins except the fundamental ones which are needed to keep the shops basic functions (Germanized, Layer Slider, Woocomerce, Heidelpay, Yoast). The problem persists exactly as I described it: the preview responds to changes in -> Customizer / Woocommerce / Produktkatalog / Standard-Produktsortierung, but the Frontend does not.
    Switching off Enfolds product order function and using the Fallback Woocommerce instead – could this be way to gain a somehow acceptable order functionality? Then, please tell me how to get this done.
    best regards, Joerg

    #1102456

    Hi,

    Enfold latest version is 4.5.7 – and it contains changes to fit better in WC 3.6.2.

    Envato has deprecated the old API for updates – so you might not recieve any notifications from that side. Can you please try to download the latest Version of Enfold from Themeforest and update with FTP.

    If you have a staging site you can test it there. Maybe the problems are already solved.
    If not it could be a problem with germanized. As a try also disable this and check and let us know.

    If you have problems with downloading and FTP update let us know and we can do it for you (please provide FTP and WP admin credentials).
    Do not forget to make a backup of your site for a fallback (also of the theme files).

    Best regards,
    Günter

    #1102497

    Hi,
    I’d say OMG! So it took Enfold almost 2 years to fix this? Besides, it was not Germanized causing this trouble. I switched this plugin on and off so many times before to test, but it had no effect.
    There are 2 questions left. The minor one: how and where can I controll in the WP backend, if the theme is outdated? The major one: How to kill these new and superflous ordering categories from the frontend dropdown? These are for me: custom, average rating, relevance, Zufall, Product ID and most of all “Standard”. How could a user understand, what Standard is? This makes no sense at all. And it is possible to rename “Datum” to “Neu” and “Popularity (sales)” to “Beliebt” ?
    best regards, Joerg

    #1102513

    Hi,

    You have to create an Envato private token key and add it to Enfold Options -> Theme Update -> Enter a valid Envato private token.
    You find a link there how to create this token.

    There is a filter to customize the dropdown:

    https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/woocommerce/avf_wc_product_order_dropdown_frontend.php

    If you need help with it, let us know.

    Best regards,
    Günter

    #1102550

    Hi,
    yeah, I know all that and did it before. How else could I have updated Enfold last autumn? All recommended permissions set.
    Although the Token is validated, Enfold tells me “No Updates available. You are running the latest version! (4.5.3)”
    As to your filter: To be put in the theme functions.php, I guess, or somewhere else?
    best regards, Joerg

    #1102770

    Hi,

    Filter is in functions.php of the child theme (or parent theme if no child theme).

    Did you try to check manually for Theme Updates?

    To get an extended log about update checks add this to functions.php:

    
    add_theme_support( 'avia_envato_extended_log' );
    

    This gives you a detailed info list about the last update checks – and possible errors.

    Best regards,
    Günter

    #1102821

    Hi Günter,
    I copy/pasted the filter from github to functions.php via FTP and it broke the site again
    reg. joerg

    #1102830

    update: I managed somehow so that the site does not brake, but then the changes have no effect in the front end. Cache cleared. Please see code in private

    #1102851

    Hi,

    Remove the // (= comment line):

    
    // unset( $product_order[‘menu_order’] );
    

    must be:

    
     unset( $product_order[‘menu_order’] );
    

    see below.

    Best regards,
    Günter

    #1102930

    Ok, thank you!
    I adjusted the code now like this:

    unset( $product_order[‘rating’] );
    unset( $product_order[‘relevance’] );
    unset( $product_order[‘rand’] );
    unset( $product_order[‘id’] );
    unset( $product_order[‘date’] );
    unset( $product_order[‘default’] );
    unset( $product_order[‘order_menu’] );

    /**
    * To rename remove // and use the following as an example
    */

    $product_order[‘popularity’] = ‘Oft gekauft’;

    The only ugly thing left now is: Besides the 3 defined order criteria always a fourth named “Custom” is being displayed in the front end. I found no way to delete it, nor to change the name to a description of what is meant really. And I wonder why the selection being displayed by the choice of “custom” is different every time depending on what you choose before (name, price…)
    How to repair this?
    Kind regards, Joerg

    #1102966

    PS: before reproducing the theme update in the live installation, I sent you a screenshot of the status in private. Is this normal?

    #1103234

    Hi,

    Replace

    
    unset( $product_order[‘order_menu’] );
    

    with

    
    unset( $product_order[‘menu_order’] );
    

    The custom sorting is defined by WC with “menu_order title”.
    When editing a product under Product Data -> Advanced Tab you find Menu order where you can define a custom ordering position (and in same ordering Position it is sorted by product title).

    Concerning the update I will check if Envato has changed something again and I will come back.

    Best regards,
    Günter

    #1103243

    Hi,

    Concerning Updates – there has been a fix in 4.5.4 – so 4.5.3 (see screenshot) shows a wrong behaviour.

    If you have a staging site with 4.5.7 you can edit enfold/style.css and change the version number to 4.5.6.
    If you click “check manually” you will get a correct info to update (I checked it with 4.5.5 and 4.5.7).
    It might take up to 12 hours to recognise the manual version change by WP as WP caches the versions in a transient for update checks.

    So please update your sites with ftp to 4.5.7 and future updates should work.

    Best regards,
    Günter

    #1103253

    Hi,
    ok with the theme update, thanks for inquiry.
    As to product order, sorry, there is no effect. “custom” is still there, please see screenshot (I understood, you meant unset( $product_order[‘menu_order title’] );

    #1103268

    Hi,

    Sorry for confusing.

    You have to add:

    
    unset( $product_order[‘menu_order’] );
    

    and can remove:

    
    unset( $product_order[‘order_menu’] );
    unset( $product_order[‘menu_order title’] );
    

    The rest was only an explanation how the custom sorting is implemented by WooCommerce.

    Best regards,
    Günter

    #1103362

    Hooray!
    I did not dare to hope anymore that this very, very annoying bug could be fixed after so many tries within almost 2 years by so many so called experts in woocommerce. I should have asked earlier.
    Thanks a lot, Joerg

    #1103372

    Hi,

    Glad it works now and that we could help.

    Enjoy the theme and feel free to come back when you need further assistance – I will close the topic for now.
    Have a nice day.

    Best regards,
    Günter

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Woocommerce Product Sort by’ is closed to new replies.