Composite Products Metadata

#655762
  • Resolved Dan Duvalian
    Rank Math free

    My Google Merchant account was just suspended due to not having matching “price metadata” for price displayed on product pages for my composite products. I have all products in packages as optional – so meta displays $0 price, but we have all the default items we recommend selected which generates a price on the product page. Is there a way we can display the metadata for the selected items instead of “lowest price”?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    The price in the metadata is picked up from the price you enter in the product editor. Please share a screenshot of the prices you have entered in the product editor so we can check and assist you further.

    You can upload screenshots by using this tool and add the link here. Please also share the product URL so we can check

    Looking forward to helping you.

    Thank you.

    A second issue this causes is inaccurate pricing in Google results.
    Example (https://imgur.com/HADYTIX)

    Here is a link to a composite product that shows the issue: https://gwatneyperformance.com/product/l83-cam-kit-for-2014-2019-silverado-sierra-5-3l/

    Because it is a composite (a grouping of products) product, the price of the product itself is $0.00. We override this with a custom string (Varies Based on Options), but I’m leaving it as $0.00 for this example.
    Example (https://imgur.com/cSqMscv)

    Composite products shows the “base price” or “lowest price” of all the products (which in our case is $0.00 because all the products are optional).
    Example (https://imgur.com/w4NGnUQ)

    At the bottom of optional products it shows the price of all the default selected products. Is there a way to generate the metadata price based on this number if the product type is “composite”? Because it is generating a $0.00 price in the metadata it is causing my Google Merchant Center to flag my account due to a mismatch of price on product page and metadata.
    Example (https://imgur.com/647vlgd)

    Thanks in advance!

    Also, here is a copy of the plugin if needed.

    Woocommerce Composite Products
    VERSION
    8.10.4
    ACTIVE INSTALLATIONS
    10K+
    https://woocommerce.com/products/composite-products/

    Download:
    https://www.dropbox.com/s/o7jjpdsugxso29n/woocommerce-composite-products.zip?raw=1

    Hello,

    Apologies for the delay as this ticket seems to have been stuck in our drafts section for some reason.

    Rank Math does not currently support composite products. Rank Math schema is generated before the page loads, whereas composite product schema would need to be generated after the page has loaded.

    The composite products don’t have pricing information on the postmeta database table and the product you shared has a value of zero for the default _price meta key on that table, hence why it’s returning zero on the Schema markup (Free on the search results).

    In this case, you may need to alter the pricing for the products. You can use and customize the following filter and make the necessary changes to fetch the pricing data from where it’s available:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        // Make your changes here
        return $entity;
    });

    Moreover, the composite products plugin team may be more familiar with creating similar queries. Once you have the min and max price query, you can apply it inside the filter.

    Hope that helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Composite Products Metadata’ is closed to new replies.