Show price for variation without selecting size attribute.

This topic has 4 replies, 3 voices, and was last updated 5 years ago ago by Rose Tyler

  • Avatar: Tom S
    Tom S
    Participant
    March 28, 2019 at 17:13

    Hi, great theme, my client is very happy with their website so far!

    I have products which have 2 attributes for a variation (‘metal type’ which determines price, and ‘size’ which is required to purchase but does not determine price). When selecting the metal type the price does not update unless a size is selected too. At this point the appropriate variation price is displayed.

    I would like it so that when a variation metal is selected is displays the appropriate price without having select the size. Is this possible please? An advice is greatly appreciated.
    Tom. 🙂
    (Ps. see private content area for login credentials as the site is not live at present.)

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 28, 2019 at 17:48

    Hello,

    Unfortunately, there is no option in WooCommerce to show price if all the variations are not chosen but you may pre-select some most popular size in product settings http://prntscr.com/n48pfb and it will be active when you visit the product then the user will need to choose just metal to get the price.
    Also, you have a lot of variations and I would suggest you to make 2px border to highlight the chosen variation http://prntscr.com/n48sse

    .st-swatch-preview li.selected, .st-swatch-preview li:hover {
        border-width: 2px;
    }

    And maybe highlight the variation price

    .product-content .woocommerce-variation-price .price {
        font-size: 2rem;
    }

    But it’s just suggestion.

    Regards

    Avatar: Tom S
    Tom S
    Participant
    April 4, 2019 at 09:09

    Hi, sorry for the delayed response!

    excellent support as always, both your suggestions are great many thanks! 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 4, 2019 at 09:12

    Hello,

    You’re welcome!

    Regards

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

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

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