Home Forums WoodMart support forum Get Attribute Image

Get Attribute Image

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

    pmctool
    Participant

    How to grab the attribute image on the brands attribute? I’m able to get the description through code because it’s a default WC feature, but can’t seem to find the code for the Woodmart-specific attribute image.

    #259447

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    You can find all the detailed instructions here: https://xtemos.com/docs/woodmart/faq-guides/how-to-setup-brands/

    As you can see you need to add the image to the attribute item and it would appear. If you need any further help, please contact me.

    Best Regards

    #259450

    pmctool
    Participant

    No, I’m not asking how to set them up. I’m asking what code to grab the image already set. I’m looking to display the brand’s image and description on the brand’s page itself.

    #259515

    Hello,

    You can create the template in the HTML block with an image and any content as per your needs and then add this HTML block to the Description of the Brand item as described here: https://xtemos.com/docs/woodmart/html-blocks-2/#cat_att_tag

    Please let me know if you need further help.

    Best Regards

    #261544

    pmctool
    Participant

    Just by creating an HTML block the image is not dynamic. I am looking to dynamically grab the attribute description (which I’ve done successfully) and the attribute image. But any documentation on the attribute image is not in the WooCommerce docs because it’s a Woodmart specific feature. Do you have the code or variable to grab the image set? I am applying this dynamically on all of my brands pages.

    #261618

    Hello,

    Please describe your purpose in more detail. Perhaps you can provide the screens. Do you want to show brand attributes images? How should they change dynamically? I will check with our dev team.

    Best Regards

    #261629

    pmctool
    Participant

    I have created a shortcode to grab the term description of the brand. I’ve inserted the shortcode into the shop page widget area, and therefore this description changes according to what brand page is being viewed on the frontend. I am looking to be able to grab the term image associated with the brand to display this above the brand description on the frontend. See photos attached. (image1 is frontend display, image2 is backend brand attributes)

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

    Hello,

    Please add a text block into the Shop page widget area and insert the shorcode.

    Enable “Enable archives?” and insert the description into each attribute item. You can create HTML block and add any content https://xtemos.com/docs/woodmart/html-blocks-2/#cat_att_tag

    Best Regards

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