• Resolved noahidy

    (@noahidy)


    Hi, I would likt to use your plugin to add a structured data markup to my restaurant. It is very important that I can add this markup:
    “potentialAction”: {
    “@type”:”OrderAction”,
    “target”: […
    ],
    “deliveryMethod”: [
    Is it possible with you plugin?
    Thank you very much for your answer

    noahidy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    Sure, that could be doable. I would need to see the complete markup though. ??

    js.

    Thread Starter noahidy

    (@noahidy)

    Hi js.
    thank you very much for your answer! Basically we need what they have:
    https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin
    Please go to the site and look into their code.
    But the most important part is: “potentialAction”: “@type”:”OrderAction”, “deliveryMethod” “priceSpecification”

    },
        "potentialAction": {
            "@type":"OrderAction",
            "target": [
                "https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
                "android-app://com.yopeso.lieferando/lieferando-de/restaurant/pizzeria-dorado-berlin"
            ],
            "deliveryMethod": [
                "https://purl.org/goodrelations/v1#DeliveryModeOwnFleet"
            ],
            "priceSpecification": {

    So that google knows that we are delivering.
    Thank you
    noahidy

    Thread Starter noahidy

    (@noahidy)

    Hi js.
    thank you very much for your answer! Basically we need what they have:
    https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin

    Here is the code:

    <section class="yd-jig-schemajson yd-jig-schemajson"><script type="application/ld+json">
    {
        "@context":"https://schema.org",
        "@type":"Restaurant",
        "@id":"https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
        "url":"https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
        "menu":"https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
        "name":"Pizzeria Dorado",
        "logo":"https://image.yourdelivery.de/lieferando.de/service/17204/Pizzeria+Dorado-110-72.jpg",
        "description":"HIER beim Pizzeria Dorado Lieferservice Berlin bequem online Pizza? Pasta? Lasagne? & mehr bestellen & bargeldlos zahlen",
        "address": {
            "@type":"PostalAddress",
            "streetAddress":"Regattastr. 36",
            "addressLocality":"Berlin",
            "addressRegion":"Berlin",
            "postalCode":"12527",
            "addressCountry":"DE"
        },
        "geo": {
            "@type": "GeoCoordinates",
            "latitude": "52.4247742",
            "longitude": "13.5747404"
        },
        "telephone":"03056590029",
        "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": "4.78",
            "reviewCount": "229"
        },
        "potentialAction": {
            "@type":"OrderAction",
            "target": [
                "https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
                "android-app://com.yopeso.lieferando/lieferando-de/restaurant/pizzeria-dorado-berlin"
            ],
            "deliveryMethod": [
                "https://purl.org/goodrelations/v1#DeliveryModeOwnFleet"
            ],
            "priceSpecification": {
                "@type":"DeliveryChargeSpecification",
                "appliesToDeliveryMethod":"https://purl.org/goodrelations/v1#DeliveryModeOwnFleet",
                "priceCurrency":"EUR",
                "price":0.00,
                "eligibleTransactionVolume": {
                    "@type":"PriceSpecification",
                    "priceCurrency":"EUR",
                    "price":9.00
                }
            }
        }
    }
    </script>

    But the most important part is: “potentialAction”: “@type”:”OrderAction”, “deliveryMethod” “priceSpecification”

    So that google knows that we are delivering.
    Thank you
    noahidy

    Plugin Author JS Morisset

    (@jsmoriss)

    I’ll see about adding this to the WPSSO PLM extension in the next few weeks.

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    I’ve added the following to the next version of WPSSO, WPSSO JSON, and WPSSO PLM:

    
    "potentialAction": {
            "@type":"OrderAction",
            "target": [
                "https://www.lieferando.de/lieferservice-pizzeria-dorado-berlin",
                "android-app://com.yopeso.lieferando/lieferando-de/restaurant/pizzeria-dorado-berlin"
            ]
    }
    

    I haven’t added deliveryMethod or priceSpecification since these values should probably come from an e-commerce plugin and added to the product / variation markup. Adding these kinds of option to a business doesn’t make much sense since delivery methods and delivery prices are too variable (and often depend on distance, product weight, dimensions, etc.).

    Since you have a very specific need, which may not be shared with anyone else, I would suggest you hook the ‘wpsso_json_prop_https_schema_org_potentialaction’ filter and add them yourself:

    
    function filter_json_prop_https_schema_org_potentialaction( $action_data, $mod, $mt_og, $page_type_id, $is_main ) {
        if ( $is_main ) {
            // add custom properties here
        }
        return $action_data;
    }
    

    js.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Json LD markup for Restaurants’ is closed to new replies.