No fixed price or currency

#58595
  • Resolved Dranawat
    Rank Math free

    Hi, our business is a wholesale exporter. So we don’t have fixed pricing or currency. Given we’re a wholesaler, pricing is quantity based (eg, $1 for buyer of 10-100 units, $0.75 for 100+ units). And given exports, we sells in all currencies in all countries.

    As such we can’t put in prices or currency.

    And most products don’t have reviews or ratings.

    So our rich snippet shows error on prices, reviews and aggregate ratings.

    How can we avoid this.

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

    Thank you for contacting Rank Math today.

    You can add the following filter to your function.php and let us now how it goes.

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	global $product;
    	if ( $product->is_type( 'variable' ) ) {
    		$variations = $product->get_available_variations();
    		foreach ( $variations as $key => $variation ) {
    			$entity['offers'][ $key ]['priceValidUntil'] = '2021-01-01';
    		}
    	} else {
    		$entity['offers']['priceValidUntil'] = '2021-01-01';
    	}
    
    	return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thank you, Michael. Will check it out and update.

    Hello,

    Please do and let us know.

    Do not hesitate to let us know if you need our assistance with anything else.

    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 ‘No fixed price or currency’ is closed to new replies.