WPSOLR: error on term

  • wpsolr
    Keymaster
    # 8 months, 4 weeks ago

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

    Save. Check notices.

    Then add a manufacturer.

    Save. Check notices.

    # 8 months, 4 weeks ago

    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
    # 8 months, 4 weeks ago

    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.

    # 8 months, 4 weeks ago

    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
    # 8 months, 4 weeks ago

    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.

    # 8 months, 4 weeks ago

    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
    # 8 months, 4 weeks ago

    I’m debugging the exact origin of the problem.

    wpsolr
    Keymaster
    # 8 months, 4 weeks ago

    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

    – The manufactures list now autocompletes as expected

    # 8 months, 2 weeks ago

    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
    # 8 months, 2 weeks ago

    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.

    # 7 months, 2 weeks ago

    You firewall is blocking me to write the code.

    ticket

    I really want to use this plugin, please help.

    wpsolr
    Keymaster
    # 7 months, 2 weeks ago

    Help how?

    # 7 months, 2 weeks ago

    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

    # 7 months, 2 weeks ago

    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
    # 7 months, 2 weeks ago

    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.