Hi!
I made to my Woocommerce attributes a color picker and an image upload.
I want to use the image upload option to th “brand” attribute, and print the brand’s logo to the page. (example single product page.)
But when i want print it, the image is broken? The allowed image type is svg
What i make wrong? Or is it a bug?
Hi Patrik,
in general I can say that this is not a Bricks problem
Your ACF fields are assigned to taxonomies (tags), which you want to output in the Single Product. This is not so easy, because posts and taxonomies are two different objects.
the dynamic data tag you used was wrong because you queried the terms but not the ACF field.
On the fly, this seems to work: I loop through the tags and check if the ACF field contains data. If so, I output it directly to an image tag.
I was hoping that calling in dynamic content would work in the same way as with JetEngine and that there would be no need to fiddle with individual php code.
The strange thing about your solution is that the logo does not appear for certain products (eg the Fisher brand), even though the brand logo is uploaded among the attributes.
Ohhhh! Sorry! I didnt see it.
Thank you very much.
It was not by chance that I wanted to add it as a product attribute.
1.) It would be possible use in filters (not text but with brand logo appearance)
3.) It can also be turned into an Archive page, linkable.
Used as a tag, it’s just visual eye candy.
I have seen such a solution on several ready-made templates, that you can use a color picker and image upload next to the product attribute, and then call them instead of the text.
I have already done this myself with the Elementor JetEngine combo, and a similar method was able to call an image instead of text, without any unique php coding.
I was confident that this kind of no-coding visual representation would also work under Bricks Builder.
Regardless, I am grateful for your efforts and work. I already looked for a solution for this, but unfortunately it doesn’t exist under Bricks Builder. I just was hoping that this really wonderful builder would know such a “basic” thing.
Yes it working to me, but not to smart. Can’t link, just print one image.
Put the code into a code widget and change in the code the necessary items. (example pa_marka it is my brand attribute name…)