Schema for Products

#82164
  • Resolved Wolf Gang
    Rank Math free

    Hello Rankmath Team,

    Hope you are well during these troubled times. I first off would like to say that the Rankmath plugin is awesome and I have never looked back from switching. I give this plugin much praise and congrats to the developers who worked on it.

    To the issue, Its not an issue I’m experiencing with the plugin but mainly with my website. I am trying to run google ads but my ads keep getting disapproved to mismatch in pricing on the schema. The way my shop is set up is I have a price per unit and also total pricing for a package. Rankmath is pushing out the price per unit instead of the total price that would be added in the cart.

    Is this something that can be fixed within rankmath or would have to be hard coded by a developer?

    Thank You & Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Probably you will need to modify it by code since it is a custom thing you need in the Schema. Luckily, it shouldn’t be that hard for a developer since we have specific hooks to manipulate the Schema:

    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 10, 2);

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Wolf Gang
    Rank Math free

    Hello Alberto,

    Thank You
    I am still a beginning developer
    Where would I be able to add this piece of code?

    Hello,

    That code is just an example code and you need to be familiar with coding to make it work.

    That code goes into your theme’s functions.php file. As much as we would love to offer customized solution to each and every user we have, it just isn’t possible for a small company like ours with limited resources.

    You may consider hiring a coder if you are not sure what to do with that 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Schema for Products’ is closed to new replies.