Variable products price field isn’t being read by Google Merchant Center

#1015974
  • Resolved Beth Whitney Studio
    Rank Math free

    I have the following error on all of my art prints (variable products): “Your product has 1 missing or invalid field. You can save your progress and fix these errors later. Customers won’t see this product until you fix the errors.”

    The price is filled out for each variation. Is there a way to have all of the variations show up in Google Merchant Center? I can add the minimum price, but that’s not really helpful to buyers.

    I’m using Rankmath with Kadence Shopkit/Woocommerce.

    Thanks,
    Beth

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

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please share the affected product URL here so we can take a closer look at the issue?

    Looking forward to hearing back from you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We tested the concerned product page using the Google rich result test tool and it didn’t detect any critical issue with the schema on the page.

    Please see the test URL in the sensitive data section.

    We look forward to hearing back from you.

    Thank you.

    Here’s the error showing on Google Merchant Center for each of my 64 products with variations:

    Missing product price
    Prevents from showing in United States

    You haven’t provided a value for the price [price] attribute, which is required for all products

    Make sure your product meets the following requirements

    Add price value for all your products
    Use the same price in your product data as on your product page
    Make sure to format your price so that it follows the attribute guidelines and that the price and currency match the ones on your product page .

    The schema in use is WooCommerce product (set within Rankmath). Each of these products all have prices set at the variation level, people are purchasing them, but the prices do not transfer over to Google Merchant Center. My simple products are fine – it’s just the products with variations. It seems like this is a problem with Rankmath and Google Merchant Center not communicating, but I don’t know how to fix it.

    Thanks for your help,
    Beth

    Hello,

    Sorry for the delay in response.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi, I added the temporary login to the sensitive data area (see above). The site is backed up and I have the security audit plugin installed.

    Thanks for your help! This certainly is a mystery to me.

    Cheers,
    Beth

    Richard
    Rank Math pro
    Content AI Starter

    Hi Beth! Were you able to resolve this issues? I have the exact same one. Thank you!

    Not resolved so far. Single products are fine, variable are not.

    Hello,

    We apologize for the delay. We are doing our best to reply quickly as we have higher volumes of tickets than expected.

    Can you please re-enable the temporary login link so we can resolve the issue?

    We are now working on this ticket on a priority basis.

    Looking forward to helping you.

    Hi,

    I’ve re-enabled the temporary login for another week.

    Thanks,
    Beth

    Hello,

    After carefully checking your setup, we don’t see any issues with it, and we can confirm the product schema includes the price range.

    However, we added the code below to generate all prices of each variable:

    add_filter('rank_math/snippet/rich_snippet_product_entity', function ($entity) {
    	if (!is_product()) {
    		return $entity;
    	}
    
    	$product = wc_get_product(get_the_ID());
    	if (!$product->is_type('variable')) {
    		return $entity;
    	}
    
    	$variations = $product->get_available_variations();
    
    	if (!empty($variations)) {
    		$offers = [];
    		foreach ($variations as $variation) {
    			$offers[] = [
    				'@type'           => 'Offer',
    				'price'           => $variation['display_price'],
    				'priceCurrency'   => get_woocommerce_currency(),
    				'availability'    => $variation['is_in_stock'] ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
    				'itemCondition'   => 'http://schema.org/NewCondition'
    			];
    		}
    	}
    
    	$entity['offers'] = $offers;
    	return $entity;
    });

    You can edit the code from here: https://bethwhitneystudio.com/wp-admin/admin.php?page=edit-snippet&id=23

    See if it works with GMC.

    Looking forward to helping you.

    Was this resolved? I’m getting price mismatch errors

    Hello,

    Please share a screenshot of the report you see from your end, showing the mismatch of the pricing.

    Looking forward to hearing back from you.

    Jasbon
    Rank Math free

    This is a common issue when using variable products with WooCommerce and Rank Math. Google Merchant Center often requires specific schema markup for each product variation to correctly read prices. You might want to ensure that your product feed plugin (or a dedicated feed generator) supports exporting each variation as a distinct product with its own price. Alternatively, some users solve this by using a premium plugin that enhances WooCommerce’s structured data output.

    Also, for anyone interested in checking food options, here’s a great resource for cookout menu nutrition details.

    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 15 replies - 1 through 15 (of 17 total)

The ticket ‘Variable products price field isn’t being read by Google Merchant Center’ is closed to new replies.