X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Site Structured Data module for X-Cart Classic (https://forum.x-cart.com/showthread.php?t=73542)

voodoo1967 08-01-2019 10:16 AM

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)

cflsystems 08-01-2019 10:57 AM

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.

voodoo1967 08-01-2019 12:28 PM

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.

voodoo1967 08-02-2019 01:09 AM

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

peggyr 01-29-2020 01:26 PM

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

peggyr 01-30-2020 12:16 PM

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.


All times are GMT -8. The time now is 09:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.