Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Google Sitelinks Search Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-08-2014, 05:37 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Google Sitelinks Search Box

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?
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote

The following 2 users thank mcanitano for this useful post:
MeenaBhattacharya (12-09-2014), totaltec (12-08-2014)
  #2  
Old 12-11-2014, 07:50 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: Google Sitelinks Search Box

It looks like you have it right, however your site redirects https to http. You may need to turn that off or have the code use http instead of https.

Thanks,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote

The following user thanks BCSE for this useful post:
mcanitano (12-12-2014)
  #3  
Old 12-11-2014, 07:55 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: Google Sitelinks Search Box

See requirement A which further shows you need to do my suggestion. Your canonical url is http, not https. It may matter.

Thanks,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #4  
Old 12-12-2014, 05:16 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Google Sitelinks Search Box

Quote:
Originally Posted by BCSE
See requirement A which further shows you need to do my suggestion. Your canonical url is http, not https. It may matter.

Thanks,

Carrie

Carrie, thanks for the suggestion. Since our canonical is http, should the "target" URL in my JSON code be HTTP?

We turned off the HTTPS to HTTP redirect.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #5  
Old 12-12-2014, 09:06 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: Google Sitelinks Search Box

Quote:
Originally Posted by mcanitano
Carrie, thanks for the suggestion. Since our canonical is http, should the "target" URL in my JSON code be HTTP?

We turned off the HTTPS to HTTP redirect.

I would recommend trying it. I installed it on our site yesterday so I'll let you know how long it takes to get picked up for us too.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote

The following user thanks BCSE for this useful post:
mcanitano (01-13-2015)
  #6  
Old 12-15-2014, 11:15 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Google Sitelinks Search Box

We were looking around at a website that currently has the sitelink search bar working, and noticed it is in between the <head></head> tags on their site, and ours are between the body tags. Should we move it to the head?

Also, if it's in the head tag, should the rel="canonical" link come before it?
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #7  
Old 01-13-2015, 10:02 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Google Sitelinks Search Box

Quote:
Originally Posted by BCSE
I would recommend trying it. I installed it on our site yesterday so I'll let you know how long it takes to get picked up for us too.

Carrie

Any update on if Google has noticed and included your search box?

It's been close to a month and no luck for us yet.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #8  
Old 01-13-2015, 10:49 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: Google Sitelinks Search Box

No I'm not seeing it either.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #9  
Old 03-05-2015, 11:32 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Google Sitelinks Search Box

Three months later, and still no search box. Wondering if it's due to google choosing just simply to not include it?
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #10  
Old 04-02-2015, 07:45 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Google Sitelinks Search Box

Another month passed and no update.

BUT, we ran into an error on our site with another .php file, and we realized it was a JSON error. Our server host informed us that JSON was disabled.

They recently ran maintenance and it may have been disabled during the maintenance, but if that's not the case, JSON would not be working from the beginning; therefore this code would have never been recognized by Google.

Will wait another month to see if it works now.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:07 PM.

   

 
X-Cart forums © 2001-2020