X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Structure Data Highlighting in 4.0.1 (https://forum.x-cart.com/showthread.php?t=76350)

mcupka 06-22-2018 11:46 AM

Structured Data Highlighting in 4.0.1

I wanted to set up some structured data sets for my products with name and price, etc. Since we have a regular and sale price, the regular one shows up fine in the data highlighter. However, the sale price is completely hidden.

On my category pages, the <span class> is constantly changing with random class names for each price. However, on my product pages, it uses 'product_price' so I'm not sure why they're still invisible. Has anyone ever ran into issues with this before?


Does anyone have an install they could possibly test this with?

zone1creative 07-24-2018 06:50 AM

Re: Structure Data Highlighting in 4.0.1
You will find that its best to not use google data highlighter. Only works on simple sites with less javascript.

Your best off having the structured data in the html as JSON notation.

mcupka 07-24-2018 06:52 AM

Re: Structure Data Highlighting in 4.0.1
Thanks for the feedback. How would I go about implementing that on all of these product pages? A bunch of if statements?

All times are GMT -8. The time now is 06:43 PM.

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