This topic has 3 replies, 2 voices, and was last updated 1 years, 9 months ago ago by Tony Rodriguez
Hello,
This question is about showing individual sizing guides on single products and not showing the label on the products who don’t have assigned sizing guides to them.
Let me explain:
On my old online shop (Woodmart) i have about 10 products who all have different size guide popups. In the theme they have a specific size guide option in the control panel – you create a single size guide and select it in the sidebar on a desired single product.
On Xstore if i input size guide element on the single product builder it shows the “sizing guide” block everywhere – not just for the products i have inputed the .jpg file. This is not logical. It shouldn’t show on the products i have not assign the size guide too (only if i set it globaly).
1. Now i have an idea – i could create different single product layout (with size guide included) and show them only where i need them. But thats not an efficient way.
2. Using static block instead of image. On the products (backend) you can select an image that will show once you click on the sizing guide icon. Can i input a static block instead and not an image? The thing is i can select the static block in Theme Options (under size guide), but again thats for to set it globally.
Thank you,
Hello, @TheOne,
We are delighted to have you join our support forum and hope you are doing well.
You are correct in that if you set the Size Guide to a single product by editing it, then you must also set the size guide widget in the single product builder in order for it to be displayed. This is the current functionality.
If you would like to change the behavior or add an option to enhance its functionality, please post your request on our taskboard at https://www.8theme.com/taskboard/. If it receives votes from other customers, our development team will attempt to include it in one of our upcoming updates.
Thank you for your understanding.
Best Regards,
8Theme’s Team
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
Tagged: content, product, size guide, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up