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

Site Structured Data module for X-Cart Classic
 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #11  
Old 08-01-2019, 10:16 AM
 
voodoo1967 voodoo1967 is offline
 

eXpert
  
Join Date: Sep 2009
Posts: 391
 

Default Re: Site Structured Data module for X-Cart Classic

Sorry for any confusion - but yes that is what I meant - basically "FAQ rich snippets"
You can generate the code online eg

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is the best xcart mod?",
"acceptedAnswer": {
"@type": "Answer",
"text": "My mods are the best etc."
}
},{
"@type": "Question",
"name": "",
"acceptedAnswer": {
"@type": "Answer",
"text": ""
}
}]
}
</script>

So I guess my question is - if there isnt an xcart mod that can do it - how can I manually add this is a category or perhaps maybe create a static page instead. Id rather be able to get it on a specific category page though (hope that makes sense)
__________________
x-cart Gold Plus 4.7.11
CDSEO Pro latest ver
php 7.0.15
Reply With Quote
  #12  
Old 08-01-2019, 10:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,733
 

Default Re: Site Structured Data module for X-Cart Classic

You have to have the actual FAQs visible on the page for the customer not just the markup. Google may not even consider it if there is nothing that customers see or if the info is different.

If this is going to be all the same on all categories repeating it on every category page is really not the way to go. Just create FAQ static page and you can add the markup to it as well.

If every category will have different FAQ block you can still use static pages but you will have to reference them conditionally in the subcategories template and this can get really messy if there are more than say 2-3 FAQ pages. In this case it is really better to have a simple custom module to allow you to add FAQs on per category basis in admin and this will also output all the info.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
voodoo1967 (08-02-2019)
  #13  
Old 08-01-2019, 12:28 PM
 
voodoo1967 voodoo1967 is offline
 

eXpert
  
Join Date: Sep 2009
Posts: 391
 

Default Re: Site Structured Data module for X-Cart Classic

Thanks Steve - I sort of came to the same conclusion re a static page or category page with code added in the editor etc.
__________________
x-cart Gold Plus 4.7.11
CDSEO Pro latest ver
php 7.0.15
Reply With Quote
  #14  
Old 08-02-2019, 01:09 AM
 
voodoo1967 voodoo1967 is offline
 

eXpert
  
Join Date: Sep 2009
Posts: 391
 

Default Re: Site Structured Data module for X-Cart Classic

And now todays xcart issue - trying to get an expandable faq list on click using the html editor.....

sorted eventually using an expandable grid
__________________
x-cart Gold Plus 4.7.11
CDSEO Pro latest ver
php 7.0.15
Reply With Quote
  #15  
Old 01-29-2020, 01:26 PM
 
peggyr peggyr is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 400
 

Default Re: Site Structured Data module for X-Cart Classic

Is anyone successfully using Steve's Site Structured Data module with X-Cart Classic 4.7.11 and Phil's reBOOT with 4.7.11?

When I try using both, and then testing with the Google tool

https://search.google.com/structured-data/testing-tool

When I add one of my product URLs,

https://www.mystore.com/myproduct.html

the google test tool redirects my product URL to my homepage.php.

https://www.mystore.com/home.php

Breadcrumb List and WebSite are created, but NOT for my product URL, but for the home page redirected php.

If anyone is using this combination, please PM me.

Thanks.

Peggy
__________________
X-Cart 4.7.12 GP | XCARTMODS reBOOT reDUX | Test
X-Cart 4.7.12 GP | XCARTMODS reBOOT | Prod
IONOS Hosting | Linux | PHP 7.4 | MySQL 5.7
Reply With Quote
  #16  
Old 01-30-2020, 12:16 PM
 
peggyr peggyr is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 400
 

Default Re: Site Structured Data module for X-Cart Classic

I found my problem.

My redirect to my 'home.php' when entering a test url into the google structured data test tool, was coming from a line at the bottom of the reCaptcha_js.tpl.

{* {if $main eq "catalog" && $cat eq "0"}{else}<noscript><meta http-equiv="refresh" content="0.0;url=home.php"></noscript>{/if} *}

Thanks to Paul, Phil and Steve for helping my muddle through this.

Hopefully this is helpful to others that may run into this problem.
__________________
X-Cart 4.7.12 GP | XCARTMODS reBOOT reDUX | Test
X-Cart 4.7.12 GP | XCARTMODS reBOOT | Prod
IONOS Hosting | Linux | PHP 7.4 | MySQL 5.7
Reply With Quote

The following 2 users thank peggyr for this useful post:
elmirage001 (02-06-2020), Thomasb134 (01-30-2020)
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:30 AM.

   

 
X-Cart forums © 2001-2020