Home › Forums › WoodMart support forum › Size guide not show
Size guide not show
- This topic has 5 replies, 2 voices, and was last updated 5 years, 8 months ago by Elise Noromit.
-
AuthorPosts
-
April 5, 2019 at 4:28 am #117093
darkfuryx11ParticipantDear 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.April 5, 2019 at 6:36 am #117124
Elise NoromitMemberHello,
Have you assigned this size guide to the appropriate category? https://xtemos.com/docs/woodmart/faq-guides/create-size-guide-table/
Best Regards
April 5, 2019 at 10:23 am #117179
darkfuryx11Participantyes , i set in shoe category .
you can see in private contect.Please fix it, thank you
April 5, 2019 at 12:46 pm #117197
Elise NoromitMemberHello,
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
April 18, 2019 at 8:33 am #119604
darkfuryx11ParticipantThank 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.April 18, 2019 at 9:22 am #119626
Elise NoromitMemberHello,
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
-
AuthorPosts
Tagged: size guide
- You must be logged in to create new topics. Login / Register