Home Forums WoodMart support forum Size guide not show

Size guide not show

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #117093

    darkfuryx11
    Participant

    Dear Team

    I want to show size guild in shoe catagory , then i enable size guild in theme setting and create new size guide “SafetyJogger” then upload picture for size.

    But in product cant show size guide.

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

    Hello,

    Have you assigned this size guide to the appropriate category? https://xtemos.com/docs/woodmart/faq-guides/create-size-guide-table/

    Best Regards

    #117179

    darkfuryx11
    Participant

    yes , i set in shoe category .
    you can see in private contect.

    Please fix it, thank you

    #117197

    Hello,

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

        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

    #119604

    darkfuryx11
    Participant

    Thank you team , it ‘s worked.

    next i want size chart change to tab as picture.

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

    Hello,

    There is no such option. You can create an HTML block with sizes and insert it into Custom Tab http://prntscr.com/ndlfw6

    You will have to do it manually in each product.

    Best Regards

Tagged: 

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