Bulk set WooCommerce products

#104695
  • Resolved S.H.
    Rank Math free

    Hi, I have an issue with the plugin because we have roughly 1300 products and after RankMath (free) being installed and configured, I still have to go manually from product to product and define via Schema Generator that this is a “products”. By default it’s “Woocommerce product” which means that schema offers won’t show on front end until I manually set it to “product”.

    Is there a way I set all products to “products” and set price (%wp_price%), brand, currency etc. in bulk?

    Thanks.

    • This topic was modified 3 years, 5 months ago by S.H..
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    When WooCommerce Product schema is set, Rank math automatically generates the product schema from your WooCommerce product schema. That said, adding WooCommerce Product schema automatically adds the Offers markup if the product has price set in WooCommerce.

    If you are using the product schema, this requires adding the schema manually to your products.

    You can however remove the assigned post schema using this filter: https://rankmath.com/kb/filters-hooks-api-developer/#remove-schema-data-from-posts then add the product schema using this schema: https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    Looking forward to helping you. Thank you.

    ​​​​​​

    S.H.
    Rank Math free

    Well, this is not true for our page I guess. Please see:
    https://www.tus.si/izdelki/krompirjevi-kroketi-zito-zamrznjeno-1kg/

    In admin I have “Schema: WooCommerce Product” for this product and as you can see, the code does not include offers schema. I would need to change WooCommerce Product into Product and then, as you well said, manually edit it. With about 1300 products, this will be hard to do, so I am looking for bulk solution.

    Hello,

    The URL you shared seems to have product schema with the offers defined just fine. If you are still facing this issue, assuming you are using the latest version of all the plugins and the themes (please update if not yet), please check for a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please record a video screencast using a tool like Loom showing the troubleshooting and edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    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/

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

    We really look forward to helping 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 ‘Bulk set WooCommerce products’ is closed to new replies.