Home Forums WoodMart support forum Questions about variable products and their modifications.

Questions about variable products and their modifications.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #653781

    web-3826
    Participant

    Good 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.

    Now: https://testdev.dveen.ru/product/polotenczesushitel-dvin-f-primo/?attribute_pa_color=aged-bronze-semi-gloss&attribute_pa_equipment=k3&attribute_pa_number-of-crossbars=8&attribute_pa_grouping-of-crossbars=4-4&attribute_pa_height-between-centers=80&attribute_pa_width-by-centers=50&attribute_pa_availability-of-a-shelf=c-polkoj&attribute_pa_volume=0-078

    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.
    #653906

    Hello,

    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,

    #654046

    web-3826
    Participant

    Hi! Ok here is log and pass:

    #654256

    Hello,

    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,

    #654452

    web-3826
    Participant

    I 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?

    #654632

    Hello,

    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,

    #655702

    web-3826
    Participant

    This 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?

    #655810

    Hello,

    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,

Viewing 8 posts - 1 through 8 (of 8 total)