WPSOLR: error on term

  • wpsolr
    Keymaster
    5 years, 1 month ago #10997

    Can you create a new test product, with no taxonomy?.

    Save. Check notices.

    Then add a manufacturer.

    Save. Check notices.

    5 years, 1 month ago #11006

    I unchecked all custom taxonomies and the indexing is working fine. But my new orders are not indexing automatically . I have to run the index again and again to get them indexed.

    Give me some solution to index custom taxonomies since these will be used as filters too.

    wpsolr
    Keymaster
    5 years, 1 month ago #11007

    Orders, as all other post types, are indexed in real-time. Please open an order, publish it. Check if you see a WPSOLR notice.

    Fo your custom taxonomies, I do not know what is the problem. Perhaps try to use a free plugin to manage them, like Custom Post Type UI.

    5 years, 1 month ago #11008

    I can not use plugin to manage these taxonomies since it required data entry which is a huge task for a store with 87000 products

    You already have my admin details, please look at this problem since there will be more people using custom taxonomies and solution for my problem will help others too.

    wpsolr
    Keymaster
    5 years, 1 month ago #11010

    I installed your Manufacturer’s taxonomy code.

    It does not work as expected. When you edit a product, and add a manufacturer from the product, the new manufacturer does not appear in the Manufacturers list. Instead “0” is displayed.

    Image woo-cutom-taxonomy-manufacturers-wrong.png of

    5 years, 1 month ago #11016

    Do you know the fix ?

    I can successfully print this taxonomy on frontend

    See here — > https://medicalstore.com.pk/product/monis-tablet-xr-60-mg-30s/

    wpsolr
    Keymaster
    5 years, 1 month ago #11017

    I’m debugging the exact origin of the problem.

    wpsolr
    Keymaster
    5 years, 1 month ago #11018

    I found it.

    I replaced:
    register_taxonomy( 'Manufacturer', 'product', $args );

    with:
    register_taxonomy( 'manufacturer', 'product', $args );

    It solved both problems:
    – WPSOLR now indexes products with manufacturers
    Image woo-cutom-taxonomy-manufacturers-good1.png of
    – The manufactures list now autocompletes as expected
    Image woo-cutom-taxonomy-manufacturers-good.png of

    5 years, 1 month ago #11093

    It broked my site 🙁

    I had multiple taxonomies and after your suggestions I changed the code to

    
    register_taxonomy( 'manufacturer', 'product', $args );
    
    

    From

    
    register_taxonomy( 'Manufacturer', 'product', $args );
    
    

    It was just case sensitive problem. So I changed the codes for other taxonomies, the error from backend (returning 0) was solved but my site template was crashed.

    Is there a way to change the taxonomies without loosing the data ? or get them indexed without making changes in the code ?

    wpsolr
    Keymaster
    5 years, 1 month ago #11094

    From what I tested, the taxonomy name used in register_taxonomy() function must be in lowercase characters. This is not documented anywhere in the code, as far as I know. And it causes problems not only for WPSOLR, but on the post type edit page itself (lists of terms not appearing on the post type).

    I do not know if there is a tool/plugin to change a taxonomy name everywhere in the database.

    5 years ago #11832

    You firewall is blocking me to write the code.

    ticket

    I really want to use this plugin, please help.

    wpsolr
    Keymaster
    5 years ago #11837

    Help how?

    5 years ago #11844

    https://prnt.sc/nh62mx

    I have explained the case in the above link, I you have any solution to fix this taxonomy problem please advise

    4 years, 12 months ago #11876

    Thanks for your time. I have found the solution in case anyone else is facing the same problem you can visit this link for the solution :

    WordPress – updating custom taxonomy name

    wpsolr
    Keymaster
    4 years, 12 months ago #11880

    Thanks for the tip to rename a taxonomy slug.

Viewing 15 posts - 16 through 30 (of 76 total)

You must be logged in to reply to this topic.