Home › Forums › WoodMart support forum › Questions about variable products and their modifications.
Questions about variable products and their modifications.
- This topic has 7 replies, 2 voices, and was last updated 4 days, 16 hours ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 14, 2025 at 6:44 am #653781
web-3826ParticipantGood day!
1. I want to make it so that the URLs for variable products consist of their SKU. That is, instead of all the parameters of the variable product that we see in the URL, there should be only SKU. I give an example of the URL as it is now and as it should be.
How I want: https://testdev.dveen.ru/product/polotenczesushitel-dvin-f-primo/?sku= 4627086049554
2. Can we display only one parameter for an active variation in the product details? Currently we see all possible variation parameters, not just one specific one.
3. How can we change the display of the product name for the variation? Now only the name of the parent product is constantly displayed. Although in the fields for the names of variations, a different name is specified and it is displayed in the catalog. But on the product page it is not.
Attachments:
You must be logged in to view attached files.April 14, 2025 at 3:40 pm #653906
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and give you a possible solution.
Best Regards,
April 15, 2025 at 6:52 am #654046
web-3826ParticipantHi! Ok here is log and pass:
April 15, 2025 at 2:32 pm #654256
Aizaz Imtiaz AwanKeymasterHello,
Sorry, but there is no option in Theme Settings available for that. It requires customizations, and this is beyond our limitations and support policy.
Best Regards,
April 16, 2025 at 7:40 am #654452
web-3826ParticipantI agree with the first two points. But the third point. Your theme has a special field for the Variation Title, but it is not displayed on the product page itself. While on the catalog page the title for the variation is visible. This is an obvious error. How can I fix this?
April 16, 2025 at 3:12 pm #654632
Aizaz Imtiaz AwanKeymasterHello,
What you’re referring to is related to the “Show single variation” feature in the theme. This feature is designed to display product variations on the archive (catalog) pages as if they were individual products, including showing the custom variation title in place of the main product title.
If you need the variation title to be dynamically displayed on the product page when a user selects a variation, Navigate to Theme Settings > Custom JS > Add the following code.
jQuery( document ).ready( function( $ ) { var title_text = $( '.product-type-variable .product_title' ).text(); // get default title function add_variation_txt_to_title() { var new_title_text = ''; $( '.variations select' ).each( function() { new_title_text += ' ' + $( this ).find( ':selected' ).val(); // collect all variation selected <options> }) $( '.product-type-variable .product_title' ).text( title_text + new_title_text ); // set new title } add_variation_txt_to_title(); // call on load $( '.variations select' ).change( function() { // call on <select >change add_variation_txt_to_title(); }) })
Hope this Helps!
Best Regards,
April 22, 2025 at 9:35 am #655702
web-3826ParticipantThis did not help at all. Because instead of what you wanted, your code adds slugs of product attributes. Not even their names. But I solved the problem in my own way. Tell me, can you send me the solution I need to output exactly the TITLES of variations?
April 22, 2025 at 3:15 pm #655810
Aizaz Imtiaz AwanKeymasterHello,
Sorry, but there is no option in Theme Settings available for that.
It requires customizations, and this is beyond our limitations and support policy.
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register