Home Forums WoodMart support forum Size Guide disappeared!

Size Guide disappeared!

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #116959

    dogvibe
    Participant

    Hello guys!
    After the last update, all my products that have size guides had this option hidden. Can you help me?

    Product example: https://www.dogvibe.com.br/loja/humanos/t-shirts/t-shirt-dog-vibe-summer/

    Thank you!

    #117017

    dogvibe
    Participant

    I am sending a printscreen of the product. I already checked the theme settings and it is activated and also checked the size guides menu and everything is ok.

    https://uploaddeimagens.com.br/imagens/size-png-8615c804-f46e-4d6e-b039-bfba21662291

    thank you

    #117019

    Hello,

    Please update your credentials and deactivate all the plugins not related to the theme.

    Best Regards

    #117033

    dogvibe
    Participant

    I deactivated all the plugins and did not solve the problem. About updating my credentials I did not understand how to do.

    Thanks!

    #117052

    dogvibe
    Participant

    Look. I just did a version downgrade and installed it to 3.2 and the size guide went back to working immediately. Then I decided to reinstall 3.6.1 and the “Size guide” disappears again.
    Remembering that the plugins are almost all disabled, being only active the plugins that accompany the theme and the woocommerce.

    #117089

    Hello,

    Please update the credentials and confirm the permit to deactivate the plugins for checking.

    Best Regards

    #117196

    dogvibe
    Participant

    Hi!

    I am sending the credentials of my staging which is an identical copy. So I ask that when you find a solution, let me know how to do it on the main site. Plugins are already disabled, but you can do whatever you feel is necessary in this installation.

    Thank you!!

    #117201

    Hello,

    We shall fix this in our nearest update. Meanwhile please add this code to the functions.php of the child theme and activate your plugins:

        function woodmart_sguide_display( $post_id = false ){
            $post_id = ( $post_id ) ? $post_id : get_the_ID();
            
            $sguide_post_id = get_post_meta( $post_id, 'woodmart_sguide_select' );
            
            if ( isset( $sguide_post_id[0] ) && $sguide_post_id[0] == 'disable' ) return; 
            
            if ( isset( $sguide_post_id[0] ) && !empty( $sguide_post_id[0] ) ){
                $sguide_post_id = $sguide_post_id[0];
            }else{
                $terms = wp_get_post_terms( $post_id, 'product_cat' );
                if ( $terms ) {
                    foreach( $terms as $term ){
    					$sguide_post_meta = get_term_meta( $term->term_id, 'woodmart_chosen_sguide' );
                        if ( $sguide_post_meta[0] ) {
                            $sguide_post_id = $sguide_post_meta[0];
                        }else{
                            $sguide_post_id = false;
                        }
                    }
                }
            }    
            if ( $sguide_post_id ) {
                $sguide_post = get_post( $sguide_post_id );
                $size_tables = get_post_meta( $sguide_post_id, 'woodmart_sguide' );
                    
                woodmart_sguide_display_table_template( $sguide_post, $size_tables );
            }
        }

    Best Regards

    #117202

    dogvibe
    Participant

    Hello,
    I do not use child theme, but anyway the placement of the code generated the error of the attached image.

    Best.

    Attachments:
    You must be logged in to view attached files.
    #117219

    Hello,

    Please install the child theme or you will have to wait till the update has been released.

    Best Regards

    #117222

    dogvibe
    Participant

    Hello!

    No problems! I will keep it as it is in version 3.2 that is ok for me at the moment and will wait for the update.

    Thanks a lot for the help!!

    #117226

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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