We recently have been trying to implement google's sitelinks search box feature into our website.
See (
https://developers.google.com/webmasters/richsnippets/sitelinkssearch?utm_source=wmc-blog&utm_medium=direc...inks-searchbox)
We've followed the steps provided by Google and implemented the following code into common_files/customer/search.tpl:
Code:
{literal}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://www.OURSITE.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.OURSITE.com/search.php?mode=search&substring={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
{/literal}
We've checked the JSON-LD markup for any errors and aren't seeing any. It's been over two weeks and we've had no luck with Google implementing the sitelinks search box when searching for our website.
Has anyone gotten this to work on X-Cart? If so, how long did it take for Google to implement this, and what code did you use?