• yabdali

    (@yabdali)


    Hi,
    I have this issue reported to your github project issues two days ago but I haven’t got any reply. Github Issue Report

    Using your plugin for Woocommerce, simple product and it adds priceValidUntil property to the same day of the product publish date or the date the schema was generated. This is causing Google search indexing to exclude the price from the search results, I assume it considers it outdated! In the past, I used Yoast and had no problems but wanted more extended structured data for products and hence decided on using your plugin. Appreciate your support.

    {
        "@context": "https:\/\/schema.org",
        "@type": "Product",
        "@id": "https:\/\/www.capitano.om\/discover\/adventures\/bandar-al-khayran-camping\/#Product",
        "url": "https:\/\/www.capitano.om\/discover\/adventures\/bandar-al-khayran-camping\/",
        "name": "Al Khayran Camping",
        "sku": "CO-TOR-03",
        "description": "Experience unforgettable moments and and find out about places in Muscat that you never thought about!\u00a0 Discover Bandar Al Khairan which is one of the best weekend escapes, an ideal hotspot, and more known for outdoor adventure.\r\n\r\n ",
        "offers": {
            "@type": "Offer",
            "availability": "https:\/\/schema.org\/InStock",
            "price": "280",
            "priceCurrency": "OMR",
            "url": "https:\/\/www.capitano.om\/discover\/adventures\/bandar-al-khayran-camping\/",
            "priceValidUntil": "2021-09-26T01:23:55+04:00"
        }
    • This topic was modified 3 years ago by yabdali. Reason: Missing code issue

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    Hi there! Thanks for using our plugin.

    Actually we take priceValidUntil from Schedule field (Ref: https://prnt.sc/1u2n2ci) but in case if we can not find this date we add product modified date to overcome google validation issues..

    Thread Starter yabdali

    (@yabdali)

    Thanks Sanjeev,
    The practice followed by other plug-ins is set the validity for 1 year if the validity isn’t provided. Would it be possible to provide a work around? Maybe at least a code snippet to check if the price validity is not provided to it to expire 1year from the modified date? Thanks.
    Note: I suspect that setting the validity date equal to the last modified date makes google exclude the pricing info!

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    There are very few people who does not add schedule date in simple product.

    Yes, We suspect the same so We will make a changes to it. We will push changes to your created github ticket ( https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1537 ).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce-Product priceValidUntil’ is closed to new replies.