• Resolved networkwebmasters

    (@networkwebmasters)


    I want custom function for woocommerce product schema property for smartcrawl, like color, brand, manufacturer etc…

    Currently, exciting brand schema property only shows product category & product tag support, which is totally wrong. It be must support custom taxonomy like brand.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @networkwebmasters

    I hope you are doing well.

    By default, Woo doesn’t have the Brand we need to use a plugin to implement a custom taxonomy otherwise use it as a category so the SmartCralw will follow the native Woocommerce approach as not all users implement the Brand taxonomy.

    Once that is said, you can create a custom Schema that would use this custom taxonomy https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#types-builder https://schema.org/Brand

    Best Regards
    Patrick Freitas

    Thread Starter networkwebmasters

    (@networkwebmasters)

    The theme i used which supports custom brand taxonomy & custom brand taxonomy available in my website.

    1. SmartCrawl -> Schema -> Types Builder -> I added External Product Schema Type -> Brand -> Name -> Woocommerce -> Here is no option to select custom brand taxonomy.

    2. SmartCrawl -> Advanced Tools -> WooCommerce SEO -> Improve Woo Schema -> Brand -> Here i can select custom brand taxonomy.

    1 & 2 are so much confusing.

    3. I want to add woocommerce product schema property for color, brand, manufacturer etc… How can i add this? If any function please provide.

    Thread Starter networkwebmasters

    (@networkwebmasters)

    3. I want to add woocommerce product schema property for color, manufacturer etc… How can i add this? If any function please provide.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @networkwebmasters

    Thanks for response!

    I asked our SmartCrawl team for advice on this and I’m awaiting their response. We’ll update you here again as soon as we got more insights into how this could possibly be achieved.

    Kind regards,
    Adam

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @networkwebmasters,

    We got further feedback from our SmartCrawl team, at the moment I’m afraid there isn’t any out-of-the-box setting for such a workflow.

    However, we do see that such a feature would be handy and we’ll be considering implementing this feature down the plugin’s roadmap.

    At the moment, I’m afraid it’ll require custom coding to achieve such a workflow.

    We do have an example snippet that you could check and see whether it would help.

    The following snippet would allow you to pass array as values in schema.

    Snippet: https://gist.github.com/wpmudev-sls/49789d600986024e90d87b71f8e443c3

    The above snippet helps with adding a?%t:[key].[value]%?syntax for custom taxonomies in the Schema Types Builder.

    So, once you’ve uploaded the snippet to your site, you will be able to use any valid JSON syntax in the?Custom Text?fields from the Schema Types Builder, and they will be parsed and attached to the schema.

    Example screenshot:
    https://imgur.com/D99KyR1

    So instead of getting a plain text value for the “byDay” field:

    [
            "https://schema.org/Monday",
            "https://schema.org/Tuesday",
            "https://schema.org/Wednesday",
            "https://schema.org/Thursday",
            "https://schema.org/Friday"
    ]
    

    The above is just an example reference, please do check and see whether it helps.

    The snippet can be implement as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,

    Nithin

    Thread Starter networkwebmasters

    (@networkwebmasters)

    What about point no. 1 & 2?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @networkwebmasters

    Sorry I didn’t notice the Branda getting as taxonomy in that section, https://wpmudev.com/docs/wpmu-dev-plugins/smartcrawl/#improve-woo-schema as you can see on our docs:

    “Brand?– This option enables you to select a default taxonomy to use as the Brand schema for all products. If you specify a different brand taxonomy for any specific WooCommerce Product type in the?Types Builder, that taxonomy will override the default set here.”

    But it does make sense if in this setting SmartCrawl is able to see the taxonomy, it should also be in the builder, we tasked it to our developers for improvements.

    Best Regards
    Patrick Freitas


    Thread Starter networkwebmasters

    (@networkwebmasters)

    @wpmudevsupport12 Thank you so much for reply.

    Please add select a default taxonomy for these schema types in default section.

    https://schema.org/Product

    like important schema types : color, category, material, model, manufacturer, countryOfOrigin, countryOfAssembly

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    H i@networkwebmasters,

    We have already passed your feedback to our SmartCrawl team to check further regarding this so it could be considered down the roadmap.

    Best Regards,

    Nithin

    Thread Starter networkwebmasters

    (@networkwebmasters)

    @wpmudevsupport11

    I found this snippet: https://gist.github.com/wpmudev-sls/7340c4994640cc94ecd0e29da8f63e21

    and you suggest me this snippets: https://gist.github.com/wpmudev-sls/49789d600986024e90d87b71f8e443c3

    can you tell me which snippet is perfect for schema types : color, category, material, model, manufacturer, countryOfOrigin, countryOfAssembly ?

    and what is the difference between these two snippets?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @networkwebmasters

    The snippet that you found – it’s specifically for WooCommerce “Brand” taxonomy and should take care of it but only that. Ito won’t help with other issues that you asked. It could probably be extended but it would require additional custom code which is out of the scope of this support.

    The code that my colleagues suggested, on the other hand, can help with other missing data but requires SmartCrawl’s types to be manually “filled-in” with relevant data. So you can create custom schema in SmartCrawl but to “feed it” with actual data – it will not automatically read it from your site – you will need to use JSON-formatted data to provide terms to it, as explained by Nithin earlier.

    Aside from that, your suggestions (about adding support for certain missing schema types) are already forwarded to our SmartCrawl Team and developers will look into it. Note though: this doesn’t mean they’ll provide custom solution but rather that this will be implemented in one of future releases of the plugin (but I don’t have ETA at the moment, I’m afraid).

    Kind regards,
    Adam

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Custom function for woocommerce product schema property’ is closed to new replies.