• Resolved girl_number_5

    (@trutherone)


    Hi,
    As the name suggests is it possible to show Simple Product Attribute Descriptions alongside title and value on the Additional Information tab of a single product?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Am I understanding correctly that you’d like to display product attributes for simple products on the front-end as well?

    If yes, you could check the visible on product page under Attributes tab as such:

    Attributes
    Link to image: https://d.pr/i/sS99Nv

    Result:

    single product page
    Link to image: https://d.pr/i/qCaiFF

    Thread Starter girl_number_5

    (@trutherone)

    Hi Aashik P,

    Thanks for the reply – no i don’t mean there; i already have the custom attributes displaying in the right place on the ‘Additional Information’ tab. I mean the description which can be added by the user in the Product Attribute Admin page – See screenshots, Description circled in green :

    attributes setup on product page

    Displaying in Front-end Ok

    admin page url

    The description that i want to display in Front-end

    Plugin Support Aashik P – a11n

    (@aashik)

    Thank you for getting back with the screenshots @trutherone

    I’m not sure I’m looking at the right page here. There isn’t an option to include a description for those attributes on my local site:

    attributes
    Link to image: https://d.pr/i/u0p1OU

    Can you please send me the exact steps to access those details or a full-page screenshot of what you’re seeing so that we can point you in the right direction?

    Thread Starter girl_number_5

    (@trutherone)

    Hi,
    Yes thats the right page, just click the ‘Configure Terms‘ blue link in the last column – that will take you to the taxonomy details page for each attribute.

    The template page in question is, product-attributes.php

    As you can see from the screenshots i have customised mine a little by outputting them in an unordered-list. The key variables are:

    $product_attribute['label'] – which is the attribute title in the left table column and
    $product_attribute['value'] which is a comma-separated string of each value which i split with PHP explode() and output via a for each loop. So i would have thought there would be a variable in the main product array called, $product_attribute['description'] or similar but, apparently, not.

    Doing some research i think its because Simple product types dont allow this but if i were to change product types to ‘Grouped’ or ‘Variable’ then ‘description’ is available in the $product array – ill need to look into it further im still learning woocommerce …

    cheeers

    Plugin Support Aashik P – a11n

    (@aashik)

    @trutherone Sorry, I completely missed that part!

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display Simple Product Attribute Descriptions’ is closed to new replies.