• Resolved jmkulakowski

    (@jmkulakowski)


    Hi there! I have a PPOM quantities field set up on a few products in my store. I’m also querying the products within a few custom Gutenberg blocks to create a product carousel and product grid.

    Each of these products have a variations in price based on size:

    i.e. :
        S   -  $5
        M   -  $5
        L   -  $5
        XL  -  $5
        2XL -  $7
        3XL -  $8
    

    I need to display the low and high price for each item within my carousel and grid.

    Question How can I query the value of the quantities fields for each of these products without the use of the PPOM API? i.e. I can use get_post_meta( $product_id, '_product_attributes' ); to grab values from other PPOM fields, but I cannot find any meta for the prices I have listed in my quantities fields. How do I attain these values?

    • This topic was modified 5 years, 3 months ago by jmkulakowski.
Viewing 1 replies (of 1 total)
  • Hi,

    you need to see the personalized_meta table and inside this table, you will have a column, the_meta which contains the meta in JSON.

Viewing 1 replies (of 1 total)

The topic ‘How to query PPOM meta data within the loop?’ is closed to new replies.