Home › Forums › WoodMart support forum › How could I add size guide for 400 product in a bulk?
How could I add size guide for 400 product in a bulk?
- This topic has 8 replies, 2 voices, and was last updated 4 years, 3 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 10, 2020 at 5:22 am #225055
crawpicParticipantI can’t go one per one product to put the size guide. How could I activate the size guide per category automatically?
September 10, 2020 at 7:16 am #225085
Aizaz Imtiaz AwanKeymasterHello,
You can create a size guide and then can assign the categories to it from there as well.
Screenshot for Clarification: https://ibb.co/G296kMd
Regard’s.
Xtemos Studio.September 10, 2020 at 4:34 pm #225269
crawpicParticipantI did that and is not working.
September 11, 2020 at 7:52 am #225404
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third-party plugins, activate the parent theme, clear cache, and check back.
If the problem continues then leave the third party plugins deactivated and tell me with the permission to debug then we will troubleshoot with theme plugins.
Best Regards.
September 11, 2020 at 1:54 pm #225536
crawpicParticipantThe problem is the following, each product don’t autoadd the size guide per category. I tried deactivating but nothing happens. You have permission to debug anything you want.
Here is a screenshot: https://imgur.com/a/IrflqU3
The only way to show the size guide is to go to each product page and select manually. I would like to do it in a whole.
September 12, 2020 at 7:22 am #225645
Aizaz Imtiaz AwanKeymasterHello,
I have tried to log in to your website and was unable to login it displayed an Error. Please make sure that you have provided a valid login URL to check it me and help you out accordingly.
Screenshot for Clarification: https://ibb.co/DRWK2qh
Regard’s.
Xtemos Studio.September 14, 2020 at 3:44 am #225908
crawpicParticipantTry again with that link please. Nevertheless your mates could log in in other topics, I think the issue is your connection.
September 14, 2020 at 3:49 am #225909
crawpicParticipantI found that topic https://xtemos.com/forums/topic/size-guide-bulk-assignments/ cause I have the same problem and I tried the following function code that you give him and is not working or “auto add” to each product in a bulk that belongs to each category.
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 );
}
}September 14, 2020 at 7:23 am #225954
Aizaz Imtiaz AwanKeymasterHello,
I have logged into your website and checked that the products on your website are added in more than one category.
And to display the size guide on all the products you need to assign the size guide to both categories then clear the cache and check back.
I have added the size guide “babuchas” to the parent category “urbanAW20 and babuchasAW20” and the size guide is displaying on all products of both categories.
Screenshot for Clarification: https://ibb.co/VByps8f
Please check the products of the category babuchasAW20 and urbanAW20 the size guide is appearing on all the products.
If you don’t want to use that option then make sure that the products are only added to one category. OR try adding the size guides to each product separately.
Regard’s.
Xtemos Studio. -
AuthorPosts
- You must be logged in to create new topics. Login / Register