Support » Plugin: Advanced Dynamic Pricing for WooCommerce » SEO – Sale price not in Meta property

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    What plugin do you use to add meta property=”product:price:amount” ?
    thanks, alex

    Rank Math SEO

    Plugin Author algol.plus

    (@algolplus)

    thank you.
    we’ll check the issue asap.

    you can submit ticket https://algolplus.freshdesk.com/ and we’ll provide beta for tests.

    Plugin Support rescue_ranger

    (@rescueranger)

    @montebianco

    1. Enable option ‘Show On Sale badge for Simple product if price was modified’
    2. Add compatibility code in functions.php

    
    add_filter( 'rank_math/opengraph/facebook/product_price_amount', function ( $content ) {
    	global $product;
    
    	if ( $product instanceof WC_Product && ! $product->is_type( 'variable' ) && ! $product->is_type( 'grouped' ) ) {
    		$content = $product->is_on_sale() ? $product->get_sale_price() : $content;
    	}
    
    	return $content;
    }, 10, 1 );
    

    Returning to this as we noticed that the above function did not work.
    Since, we have manually added sales price into the sale price field of the product so had not been doing it dynamically because this still did not show in the meta that is displayed by Google.

    Plugin Author algol.plus

    (@algolplus)

    we’ll contact you on Monday. we’re still busy with major update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.