Hi, Florian. I sell products that are often the main subject of web pages related to either the objects themselves or their use. I have created a custom product attribute to hold the URL of the web page that has my product as its subject. I would like to put that into the global snippet for products. I have added a custom property (subjectOf) to the global snippet for the product; it takes a WebPage object, obviously. But when I go to the WebPage’s url property, the list of available field types does not include Woocommerce product attributes (as one of your how-tos indicates that it might). How should I go about doing this? It seems a perfectly reasonable thing to do….
8 thoughts on “How can I use a custom product attribute as the URL for the subjectOf property?”
Leave a Reply
You must be logged in to post a comment.
Hey there,
and thanks for your comment. That is correct. A property that should be an URL can’t have a WooCommerce product attribute at this point in time. However I can add this functionality if you need it. Shouldn’t be a big deal. 😉
Florian
It would be extremely helpful — and beneficial for SEO on individual products, if the store owner were to do it correctly. For my purposes, subjectOf , author, and illustrator are the most useful, but there are others. I’d be grateful for the fix.
t
Hey there again,
I would like to add this functionality but I’m not quite sure if it’s helpful for others, too. Are you adding URLs to WooCommerce product attributes? Is that correct?
Florian
Yes, that’s correct. Let me explain why it’s useful to me. I sell vintage/antique/traditional tools for woodworkers and machinists (see workingtools.biz). Frequently, buyers are interested either in the history of the tool, or in materials that describe the different uses of the tool and how they can use it themselves. Experience (mine and others) says that having that information available is perhaps the most helpful thing in making a sale, and it’s especially crucial for me because the site is deliberately oriented toward tool users rather than tool collectors. It’s also helpful for SEO to be able to offer subjectOf microdata pointing to (for example) a relevant Wikipedia or manufacturer web page. So, that’s the reason. It wouldn’t be nearly as important for somebody selling pens or bedsheets or shoes.
Hope that’s helpful to you in making your assessment. FWIW, this is me: https://www.linkedin.com/in/tombruce/ . I do speak Semantic Web ;).
t
Hey Tom! Got it! Thanks for the great explanation. I’ll add this feature in the next version which should be available later this day.
Greetings
Thanks, Florian. Much appreciated.
Has the new version been published yet?
Hey Tom. Yes, see Version history.