sale price snippet

#982739
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with setting the right snippet for the sale price in Rank Math Pro. To configure the sale price snippet correctly, you need to ensure that you have set both the regular price and the sale price in your WooCommerce product settings. Here’s how you can do it:

    1. Set Regular Price: Go to your WooCommerce product settings and under the General tab, set the regular price for your product.
      Regular price of product in WooCommerce

    2. Set Sale Price: If you are running a sale, enter the sale price in the same section. When a sale is active, Rank Math will use this sale price for the Product Schema.
      Sale price for Product in WooCommerce

    3. Price Valid Until: Make sure to set a Price Valid Until date if you want to avoid warnings in Google Search Console. You can schedule this when setting the sale price.
      Sale Price to date set in WooCommerce

    4. Check Schema Output: After saving your changes, you can use Google’s Rich Results Test tool to check if the schema is being output correctly for your product page.

    If you continue to experience issues, please reply to this ticket with any specific error messages or details, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    How to Use Product Schema for WooCommerce Products » Rank Math

    Igor Payet
    Rank Math free

    hi there , i work with yay pricing plugin to set discounts

    Hello,

    We checked the product page you’ve shared and we can see Rank Math has added the correct price on the schema which is added to your page:

    Can you please confirm if you want to add a different price on the schema? If so, you can use and modify the following filter code:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        if ( isset( $entity['offers'] ) ) {
            $entity['offers'] = "99"; //change your price here
    	}
        return $entity;
    } );
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    However, you mentioned you’re currently using the Rank Math PRO plugin on your websites, but the account you have used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

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

The ticket ‘sale price snippet’ is closed to new replies.