Home Forums WoodMart support forum Show product attribute in simple product

Show product attribute in simple product

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #453756

    xyrios.nl
    Participant

    Hi there,

    I want to show my customers what attribute my single products have.

    LIke in the picture that I have added to this topic.

    You can see there in the red circle, you can see the product attribute (that is always selected and can not be deselected).

    How can I make this on my own website?

    Attachments:
    You must be logged in to view attached files.
    #453863

    Hello,

    By default for the Simple Products at WooCommerce end, the Attributes doesn’t show on the Single Product page above the Add to Cart buttons. They are shown under the Additional Information tab: https://snipboard.io/vws3ae.jpg

    If you want a Single Attribute to show for the Product and selected by default then you need to make your Product a Variable Product and add only one Variation in it. Now, to make that only Attribute selected by default, you need to select the Default Form Values as the one Attribute that you created: https://snipboard.io/pfEGzl.jpg

    And then when you view the Product, that Attribute Variation will be selected by default: https://snipboard.io/Oyti2X.jpg

    Hope this helps !

    Best Regards.

    #454172

    xyrios.nl
    Participant

    OKe thank you for the information.

    BUt is it possible to remove the “X Clear” next to the attribute for a product that only has one attribute?

    #454339

    Hello,

    Yes, it could be done specifically by using the respective Product’s ID being generated in the body tag > and then using that ID along with the class of the Reset Variations text you can apply the CSS to hide the Reset Variations text from that specific Product like it is shown in the following image: https://snipboard.io/CwrxdZ.jpg

    Here is the CSS that was shown in the above image:

    .postid-8654 .wd-reset-var {
       display: none;
    }

    Location to paste Custom CSS, go to Dashboard >> Theme Settings >> Custom CSS >> Global CSS section >> paste the CSS.

    Hope this helps!

    Best Regards

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