Linked variation upgradation - by Yasir Alam 8Theme

This topic has 8 replies, 2 voices, and was last updated 3 months, 3 weeks ago ago by Luca Rossi

  • Avatar: Yasir Alam 8Theme
    Yasir Alam 8Theme
    Participant
    December 4, 2024 at 11:28

    1st i am very thankful for 8theme developer team to add new feature for me i have a request how can we display attribute name rather than product title? For example Product Color is Black i want to display attribute name Black rather than product title

    7 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    December 5, 2024 at 05:06

    Dear @Yasir Alam,

    Thank you for reaching out to us.

    Could you kindly confirm if you are referring to adding the black color attribute next to the product title? For example: “Black – Magic Keyboard.”

    Please try adding this custom codes under functions.php file locates in your child theme:

    
    add_filter('the_title', 'wh_insertAfterShopProductTitle', 15, 2);
    function wh_insertAfterShopProductTitle($title, $post_id)
    {
    	$product = wc_get_product($post_id);
    	if ($product) {
            $abv = $product->get_attribute('pa_color');
            if (!empty($abv)) {
                return $abv . ' - ' . $title;
            }
        }
        return $title;
    }
    

    Best regards,
    The 8Theme Team

    Avatar: Yasir Alam 8Theme
    Yasir Alam 8Theme
    Participant
    December 5, 2024 at 10:21

    No I want to Hide Title and Display only attribute name for example color “Black”

    Avatar: Justin
    Luca Rossi
    Support staff
    December 5, 2024 at 10:33

    Dear @Yasir Alam and 8Theme Team,

    Achieving this functionality would require significant customization through coding.

    If you would like to propose the addition of a new element, we kindly encourage you to submit your suggestion on our Taskboard via the following link: [https://www.8theme.com/taskboard/](https://www.8theme.com/taskboard/). Suggestions that garner sufficient support from other customers will be thoughtfully reviewed by our development team for potential inclusion in future updates.

    Thank you for your understanding and cooperation.

    Kind regards,
    The 8Theme Team

    Avatar: Yasir Alam 8Theme
    Yasir Alam 8Theme
    Participant
    December 5, 2024 at 22:13

    Please Check Private Content Area

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    December 6, 2024 at 06:23

    Hi @Yasir Alam 8Theme,

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    @media (max-width: 380px){
        .etheme-product-grid-item .price {
            font-size: 10px !important;
        }
    }
    

    Kind regards,
    The 8Theme Team

    Avatar: Yasir Alam 8Theme
    Yasir Alam 8Theme
    Participant
    December 6, 2024 at 15:21

    Please Check the Private content area

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    December 6, 2024 at 18:03

    Hi @Yasir Alam 8Theme,

    Please add this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    .single-product form.cart.variations_form span.st-custom-attribute::after {
        content: attr(data-name);
        order: 1;
        margin-bottom: 5px;
    }
    
    .single-product form.cart.variations_form span.st-custom-attribute span.variation-title {
        display: none;
    }
    .single-product form.cart.variations_form span.st-custom-attribute span.variation-price {
        order: 2;
    }
    .single-product form.cart.variations_form span.st-custom-attribute span.variation-price del {
        display: none;
    }
    

    https://prnt.sc/FR1jMooksUmG

    Kind regards,
    The 8Theme Team

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.