Reply 347873 to: Size guide – different content on each product

Avatar: Tony Rodriguez
Tony Rodriguez
Support staff
February 24, 2023 at 09:48

Hello, @TheOne,

In order for the size guide to function as desired, please follow the steps outlined by 8Theme’s Team.

1- We kindly request that you add a size guide element to the Single product builder, as shown in the screenshot: https://prnt.sc/mr2NpSvsP_-A.

2- Please open xstore-child/functions.php and add the following PHP snippet: https://prnt.sc/Lfk_YaTStZTH

add_action('wp', function() {
 if ( get_query_var('is_single_product', false) && etheme_get_custom_field( 'size_guide_img', get_the_ID()) == '' ) {
  remove_action( 'etheme_product_single_size_guide', 'etheme_product_single_size_guide', 10 );
 }
}, 30);

3- Please open the product where you would like to have a size guide and upload it to the following link: https://prnt.sc/55q8ir4eBXlA and save the changes.

4- Please check the product and note that those with a custom uploaded size guide image will have a size guide element on the front end, as seen in this example (https://prnt.sc/JAyhHy6OMUtB). Those without a custom-size guide image will not have such an element, as seen in this example (https://prnt.sc/kKk3ZK-JKHA0).

Best Regards,
8Theme’s Team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.