• Resolved palomar83

    (@palomar83)


    Hello,
    I see it is possible to fetch taxonomies and custom fields in the grid. Is it possible with Woocommerce product attributes?
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hey @palomar83

    Sure, most WC attributes, are in fact just taxonomies (so you can choose them with the taxonomy field).

    Some data is stored as custom fields, and you should be able to use our Custom Field element to target that (such as price for example).

    We are working on WC specific blocks for things like a purchase button, and stock status.

    Feel free to give the plugin a spin and if you have any further questions I’d be happy to answer those.

    Best

    Thread Starter palomar83

    (@palomar83)

    Tnaks for your reply. I talk about these attributes: https://drive.google.com/file/d/1VsCgh34_4sIHil2riwVuMnmJhPBa4a0W/view?usp=sharing

    I was not able to access them with the taxonomy of the custom field blocks in the custom layout template.

    Hi I’m having the same issue i need to show the attributes here also. Or the woocommerce shop loop ’cause i’ve alredy added the attribute there.

    Or how can i just show the Divi theme’s shop module here. Because it loads everything just as i want it.

    Plugin Author Code Amp

    (@codeamp)

    Hi all

    I’m going to double check this all later on today – I know product attributes by default are registered as taxonomies, so this should work – or it might require a tweak in our plugin to get going.

    Either way, I will update with my findings as soon as I can.

    Best

    • This reply was modified 3 years, 1 month ago by Code Amp.
    Plugin Author Code Amp

    (@codeamp)

    Hey @palomar83 + @nitof

    I managed to figure this one out – if your attribute is not public it won’t be shown.

    It seems enabling “archives” sets the taxonomy for the attribute as “public” (via the WC attributes screen):

    https://snipboard.io/yfoHNX.jpg

    Can you test and let me know?

    Best

    • This reply was modified 3 years, 1 month ago by Code Amp.
    Thread Starter palomar83

    (@palomar83)

    Thank you, I confirm it works.

    I have another question, I need to order posts in a layout through a meta key. I managed to do it by toggling Use S&F in the layout settings and creating a search form that orders through this meta key (even if I don’t use a filter on this layout).

    It is a bit of a tweak. I see that in a forum post you suggest using the filter query_args, is it preferable in terms of performance?

    Best.

    Plugin Author Code Amp

    (@codeamp)

    Hey @palomar83

    Regarding ordering by post meta – you can go either way. I would probably say, loading S&F on to the query, just for ordering is probably overkill – I’d would just use the query_args filter…

    If you plan to let you users Search + Filter the layout later, then I would go the S&F route…

    I’ll mark this as resolved for now then, @nitof please let me know how you got on.

    Best

    • This reply was modified 3 years, 1 month ago by Code Amp.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Product attributes in templates’ is closed to new replies.