Help - Search - Members - Calendar
Full Version: Microformats For Zen Cart
Web Design Seo Forum > 3D Web Design English Forum > Online Shops
Web Design Seo
Microformats rating addon for Zen Cart 1.5.0.

This addon will add rich snippets feature to your Zen Cart online shop over votes for Zen Cart products in html 5 Microformats.

Add-on for Zen Cart is similar to Microformats seo votes for Joomla and Microformats rating for Oscommerce and use Zen Cart standart rating system.

Цитат
In package are files and install guide. Only three files needed to be modified, so this addon for ZenCart can be installed in 5-10 minutes.


After install you will see new option in administration to format votes for products with three new options - Microdata, Microformats and RDF. Microdata view support price and availability, RDF view support picture of product.

Rich Snippets info:
Цитат
Rich Snippets in Google serp are shown over web standart Microformats and are supported from 2006 year from Google. Over these formats included in your ZenCart online shop you can receive quick and cheap advantage over your competitors. Your products will be shown in google results with stars, price, availability and Google will shown rates for your products. How this look:



In this way on current page in Google serp, your products will be not only like titles and links, all of your products will be shown in google serp with link, pictures, stars and text for number of ratings.


Examples:
Example Product in Oscommerce online shop
Example look of Product in google serp

Or open this link - multiple products are shown with ratings (example is from oscommerce shop):
Код
http://www.google.co.uk/search?q=site:maternityband.co.uk&start=10



Screenshots from microformats rating for Zen Cart:

Microformats rating on product page:


Microformats rating options in Zen Cart admin:



Price for plugin: 29 USD. In package are plugin and install guide. Download and online purchase: Microformats rating for Zen Cart.
Ivan Stamenov
In addition to the microformatsvotes functionality, there is an add-on for allowing anonymous users to write reviews in Zen Cart based sites.
Web Design Seo
Anonymous voting idea is to receive faster more reviews for products. You need more than 2 reviews for some product to show rich snippets for this product in Google.

Switch on rating from anonymous users, post many reviews for some products and if you want switch off again.
Web Design Seo
Microformats addon for Zen Cart is developed for latest version v.1.5.0 but is tested and work perfect also with v.1.3.9h.

Now plugin is added to our file directory - link to online purchase and download: Microformats for Zen Cart
pavelKukov
We have tested microformatvotes with Zen Cart version 1.5.1. It works fine, but installation have one small difference in step number six, file extension from ".tpl" becomes ".php".

6. Edit /includes/templates/template_default/templates/tpl_product_info_display.tpl

becomes

6. Edit /includes/templates/template_default/templates/tpl_product_info_display.php
enzo
awaiting for update
Ivan Stamenov
The latest version has the -25000px offset removed when using the Microdata format.


Plugin is now uploaded in our website and available for download.

Example html 5 code on product page when using Microdata option:
Код
<span itemscope itemtype="http://schema.org/Product">
<meta itemprop="brand" content="onlinemerchant" />
<meta itemprop="name" content="Pro PHP Security - 1590595084" />
<meta itemprop="url" content="http://onlinemerchant/index.php?Products&pro_php_security" />
<meta itemprop="productID" content="upc:1" /><meta itemprop="image" content="http://onlinemerchant/public/products/product_info/pro_php_security.jpg" /><meta itemprop="description" content=".... my product description" />
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="price" content="44.99" />
<meta itemprop="priceCurrency" content="USD" />
<link itemprop="availability" href="http://schema.org/InStock" />
<span itemprop="seller">
<span itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="onlinemerchant" />
<meta itemprop="url" content="http://onlinemerchant/index.php" />
</span>
</span>
</span>
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="itemReviewed" content="Pro PHP Security - 1590595084" />
<meta itemprop="ratingValue" content="0" />
<meta itemprop="bestRating" content="5" />
<meta itemprop="worstRating" content="1" />
<meta itemprop="ratingCount" content="0" />
</span>
</span>
strychnine



Is all of this completed with-in the Plug in? It will set the information within each page?

Are there screen shots of the admin panel?
Web Design Seo
Yes, microforamts votes addon will set information on every product page. Screenshots are added in first post and on product page.
strychnine
QUOTE (Web Design Seo @ Jan 17 2013, 10:41 AM) *
Yes, microforamts votes addon will set information on every product page. Screenshots are added in first post and on product page.



Awesome!

I figured it out, thanks!
strychnine
I am find this "/>" on my menu and cannot find the portion of code that needs to be removed. I double checked the entry on the product information php and do not see any stray "/>". It only shows up on the product information listing.

I removed the entire portion of code that goes into this php and it removed the /> from the page. Any ideas where I should look?

Home > Apple > iPhone > iPhone - 3G, 3GS > Dooney & Bourke Brown Wristlet Pouch
iPhone - 3G, 3GS" />

http://www.allthebestcases.com
Ivan Stamenov
Hi, strychnine!

Цитат
Any ideas where I should look?


blink.gif My bad...

/includes/modules/microformatsvotes.php, line 169:

Change

Код
<meta itemprop="category" content="'.implode(' &gt; ', $mfv_category).'">'.htmlspecialchars($mfv_product->fields['categories_name']).'" />


into

Код
<meta itemprop="category" content="'.implode(' &gt; ', $mfv_category).'" />
Web Design Seo
Zen Cart Addon is updated again today to work with latest google's microformats changes. Latest version is v.1.5.2, released on 11 February 2013.


Цитат
Only file microformatsvotes.php is changed. If you have addon installed, update only this file.
strychnine
QUOTE (Web Design Seo @ Feb 11 2013, 01:05 PM) *
Zen Cart Addon is updated again today to work with latest google's microformats changes. Latest version is v.1.5.2, released on 11 February 2013.



For whatever I cannot find my username for the website. I purchased the plug in. (IE look above) Can someone help me with this?
strychnine
Is this correct on an item that has zero?

hreview-aggregate

rating:
best: 5
worst: 1
average:

Warning: Rating could not be normalized.
Warning: Rating is empty.
Warning: Either "count" or "votes" field needs to be present.

Also I noticed there is numbers within the stars on the item page.

http://allthebestcases.com/navy-blue-silic...ml#.URo8l6Xpfwk

User Rating:
1 5
(0 votes)

I updated all the microformatvotes.php within the file structure.

and this is with a vote.

http://allthebestcases.com/systm-asphalt-o...ml#.URo9jKXpfwk

Web Design Seo
Yes, with zero votes is normal. With one vote is ok:
Код
http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fallthebestcases.com%2Fsystm-asphalt-orange-chisel-case-iphone-2980.html&html=
strychnine
QUOTE (Web Design Seo @ Feb 12 2013, 02:16 PM) *
Yes, with zero votes is normal. With one vote is ok:
CODE
http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fallthebestcases.com%2Fsystm-asphalt-orange-chisel-case-iphone-2980.html&html=



Alright. Why are the numbers visible in between the stars on the image? A 1 and a 5.
Web Design Seo
All of these elements must be visible on page. If is hidden content, stars will dissapeared. Is not possible to work perfect with every zen cart online shop. If you want different look, edit addon code.
strychnine
QUOTE (Web Design Seo @ Feb 12 2013, 02:48 PM) *
All of these elements must be visible on page. If is hidden content, stars will dissapeared. Is not possible to work perfect with every zen cart online shop. If you want different look, edit addon code.


Its all good. I just wanted to make sure it was normal for the functionality.
Casper
In the original file includes/modules/microformatsvotes.php the brand is dislaying the store name only. <meta itemprop="brand" content="'.htmlspecialchars(STORE_NAME).'" /> (Around line 168)
I changed it to the following to enable the display of the manufacturersname: <meta itemprop="brand" content="'.htmlspecialchars($mfv_product->fields['manufacturers_name']).'" />

Around line 40, I've added the following to call the manufacturer from the database:
Код
$mfv_product = $db->Execute("
        SELECT
            pd.products_name,
            p.products_model,
            pd.products_description,
            p.products_price,
            p.products_image,
            p.products_tax_class_id,
            p.products_status AS availability,
            p2c.categories_id,
            cd.categories_name,
            mf.manufacturers_name
        FROM
            " . TABLE_PRODUCTS . " p
        LEFT JOIN
            " . TABLE_PRODUCTS_DESCRIPTION . " pd
        ON
            p.products_id = pd.products_id
            AND pd.language_id = '".(int)$_SESSION['languages_id']."'
        LEFT JOIN
            " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
        ON
            p2c.products_id=p.products_id
        LEFT JOIN
            " . TABLE_CATEGORIES_DESCRIPTION . " cd
        ON
            p2c.categories_id = cd.categories_id
            AND cd.language_id = '".(int)$_SESSION['languages_id']."'
        LEFT JOIN
            " . TABLE_MANUFACTURERS . " mf
        ON
            mf.manufacturers_name=mf.manufacturers_name
            AND cd.language_id = '".(int)$_SESSION['languages_id']."'
        WHERE
            p.products_id = " . (int)$_GET['products_id']
); //AND p.products_status = 1


It now calls the first manufacturer from the database and not change manufacturer on other products.
Any idea how make the brand/manufacturer part work?
Stig
I've installed the plug-in on our ZenCart 1.51 installation. There were no problems with the database modifications or template modifications.

All the microdata item-props are inserted properly when the page is generated, except the itemprops associated with the AggregateRating. Nothing is inserted and of course Google's Test Tool does not show it.

Here's a product with three reviews from our site. If you look at the source code you'll see AggregateRating itemprops are not showing up.

Anyone else experience this ?

Код
http://industrialcamerasales.com/cart/sony-xc56-bw-progressive-scan-ccd-camera-p-83.html
Stig

Unfortunately this plug-in is apparently of no use at all for display Rich Snippet or Microformats details for display in Google Search.

The plug-in generates this block of code within a product page

<div itemscope itemtype="http://data-vocabulary.org/Product">
<meta itemprop="brand" content="Industrial Camera Sales &amp; Service" />
<meta itemprop="category" content="Inspection Cameras &gt; Sewer Camera" />
<meta itemprop="name" content="Sewer Camera with DVR and Audio - WPS-710ND" />
<meta itemprop="identifier" content="upc:54" />
<meta itemprop="image" content="http:/XXXXXXX/cart/images/SewerCamera.jpg" />
<meta itemprop="description" content="&lt;p&gt;The perfect tool for drain pipe and interior plumbing inspection. The SC60 combines a waterproof color camera, packaged in a stainless steel housing, with 65 feet of fiberglass cable and a 7 inch LCD video display. The camera housing incorporates bright LED lights for inspection in total darkness.&lt;/p&gt;

The following is Google's comments -


HIDDEN MARKUPS

Your content is marked up for rich snippets, but that content isn’t actually visible on the page itself. In general, Google won't display any content in rich snippets that human visitors can’t see. Here’s an example of the hidden content we found on your site:

URL: http://industrialcamerasales.com/cart/cell...amera-p-40.html

Markup Type: Product
Hidden content:

<div itemscope="" itemtype="http://data-vocabulary.org/Product
">
<meta itemprop="brand" content="Industrial Camera Sales &amp; Service">
<meta itemprop="category" content="Microscope Cameras">
<meta itemprop="name" content="CellPad Megapixel Microscope Camera - CellPad E">
<meta itemprop="identifier" content="upc:40">
<meta itemprop="image" content="http://industrialcamerasales.com/cart/images/201311832825323.jpg

">
<meta itemprop="description" ...



Is there a fix for this ?

Web Design Seo
Where you see hidden markup? I just open your url and don't see in html code any hidden content. This is possible only with some old version of plugin.
Web Design Seo
Just send you instructions on PM how to change code.
Stig
QUOTE (Web Design Seo @ Sep 25 2013, 08:19 AM) *
Where you see hidden markup? I just open your url and don't see in html code any hidden content. This is possible only with some old version of plugin.



You don't understand. Yes, all the product properties are shown on the page, e.g. image, description, price, etc... And it even passes Google's Rich Snippet Test

But your code uses Meta tags to insert the itemprop tag. Doing it this way does not label the actual product property, it just inserts the itemprop tag for Google to see.

Google disallows this usage and ignores the itemprop tags. The item properties do not show up in search results.

This is direct from Google. The itemprop tags need to wrap around the specific property as in the following;

<span itemprop="description"><?php echo stripslashes($products_description); ?></span>
pavelKukov
Цитат(Stig @ Sep 30 2013, 02:49 AM) *
You don't understand. Yes, all the product properties are shown on the page, e.g. image, description, price, etc... And it even passes Google's Rich Snippet Test

But your code uses Meta tags to insert the itemprop tag. Doing it this way does not label the actual product property, it just inserts the itemprop tag for Google to see.

Google disallows this usage and ignores the itemprop tags. The item properties do not show up in search results.

This is direct from Google. The itemprop tags need to wrap around the specific property as in the following;

<span itemprop="description"><?php echo stripslashes($products_description); ?></span>


  1. First alternative is to switch from Microdata to Microformats or RDF
    Edit file "\includes\modules\microformatsvotes.php"
    Remove from (lines ~190 and ~205)

    Код
    style="position:absolute;left:-25000px;"

  2. Second option is to change the way that Microdata is displayed
    Edit file "\includes\modules\microformatsvotes.php"
    Find (line ~167 - 186)

    Код
    <div itemscope itemtype="http://data-vocabulary.org/Product">
        <meta itemprop="brand" content="'.htmlspecialchars(STORE_NAME).'" />
        <meta itemprop="category" content="'.implode(' &gt; ', $mfv_category).'" />
        <meta itemprop="name" content="'.htmlspecialchars($mfv_title).'" />
        <meta itemprop="identifier" content="upc:'.(int)$_GET['products_id'].'" />
        <meta itemprop="image" content="'.HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.$mfv_product->fields['products_image'].'" />
        <meta itemprop="description" content="'.htmlspecialchars($mfv_product->fields['products_description']).'" />
        <span itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
            <meta itemprop="price" content="'.$price.'" />
            <meta itemprop="currency" content="'.DEFAULT_CURRENCY.'" />
            '.$special_offer_exp_date.'
            <span itemprop="seller">
                <span itemscope itemtype="http://data-vocabulary.org/Organization">
                    <meta itemprop="name" content="'.htmlspecialchars(STORE_NAME).'" />
                    <meta itemprop="url" content="'.HTTP_SERVER.'" />
                </span>
            </span>
            <meta itemprop="availability" content="'.$availability['value'].'" />
        </span>
    </div>


    Replace it with:
    Код
    <div itemscope itemtype="http://data-vocabulary.org/Product">
        <span itemprop="brand">'.htmlspecialchars(STORE_NAME).'</span>
        <span itemprop="category">'.implode(' &gt; ', $mfv_category).'</span>
        <span itemprop="name">'.htmlspecialchars($mfv_title).'</span>
        <span itemprop="identifier">upc:'.(int)$_GET['products_id'].'</span>
        <img itemprop="image" src="'.HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.$mfv_product->fields['products_image'].'" />
        <span itemprop="description">'.htmlspecialchars($mfv_product->fields['products_description']).'</span>
        <span itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
            <span itemprop="price">'.$price.'</span>
            <span itemprop="currency">'.DEFAULT_CURRENCY.'</span>
            '.$special_offer_exp_date.'
            <span itemprop="seller">
                <span itemscope itemtype="http://data-vocabulary.org/Organization">
                    <span itemprop="name">'.htmlspecialchars(STORE_NAME).'</span>
                    <a itemprop="url" href="'.HTTP_SERVER.'">'.htmlspecialchars(STORE_NAME).'</a>
                </span>
            </span>
            <span itemprop="availability">'.$availability['value'].'</span>
        </span>
    </div>


In both cases your data will be visible on product page. May be you will find the way to hide it from users and show it only to google. Other option is to edit this html and your template in the way that they will look nice and you will not have need to hide them.
Aldo Campione
Hallo

I buyed and installed Microformats on my zencart shop www.portaorologi.it

If I check a product's page on Google Structured Data Testing Tool

for this product

http://www. portaorologi.it/custodie-rivestite/vetrina-6-orologi-carbon-fiber

I get errors on review-aggregate

Can you help ?
Web Design Seo
Hello. We will check and will send you update or at least advice here how to change code.
Web Design Seo
Ready. This version was very old. We just update it to work ok. Now latest version of Microdata Zen Cart add-on is v.1.5.3.

Please, update your version to latest. Changes are only in file microformatsvotes.php
Aldo Campione
QUOTE (Web Design Seo @ Dec 28 2015, 10:29 AM) *
Ready. This version was very old. We just update it to work ok. Now latest version of Microdata Zen Cart add-on is v.1.5.3.

Please, update your version to latest. Changes are only in file microformatsvotes.php


Do I have to pay again 29$ ??
Web Design Seo
No. Just login to your account and download update.
Aldo Campione
QUOTE (Web Design Seo @ Dec 29 2015, 04:50 PM) *
No. Just login to your account and download update.


Where do I have to login ?
Web Design Seo
Read more here: http://3dwebdesign.org/forum/support-and-t...of-service-t489

If you have problems, send me email at admin at our website and I will check your account tomorrow morning.
Aldo Campione
QUOTE (Web Design Seo @ Dec 29 2015, 04:57 PM) *
Read more here: http://3dwebdesign.org/forum/support-and-t...of-service-t489

If you have problems, send me email at admin at our website and I will check your account tomorrow morning.


I cam't remember login details and with which email I made the order sad.gif
Web Design Seo
I will send you new login details in next minutes.
Aldo Campione
QUOTE (Web Design Seo @ Dec 29 2015, 05:07 PM) *
I will send you new login details in next minutes.


It seems ok now. Thank You
Aldo Campione
Цитат(Aldo Campione @ Dec 29 2015, 05:23 PM) *
It seems ok now. Thank You


No sad.gif

I stil got errors

http://www.portaorologi.it/orologi-a-cucu/...sta-nera-rh1111

http://www.portaorologi.it/cinturini-per-o...amouflage-22-mm

I think that the errors are on products that have no reviews
Web Design Seo
Yes, you must add at least one vote.
Aldo Campione
QUOTE (Web Design Seo @ Dec 30 2015, 06:13 AM) *
Yes, you must add at least one vote.


Hallo I still have problems. Look

http://www.aldocampione.it/custodie-rivest...gi-carbon-fiber


The problem is that on this line

<span itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">

and the HTML code of the description is printed

Aldo Campione
well all the <span itemprop are printed out
Aldo Campione
QUOTE (Aldo Campione @ Dec 30 2015, 10:14 AM) *
well all the <span itemprop are printed out


i solved in this way

<div itemscope itemtype="http://data-vocabulary.org/Product" style="display: none">

could it be correct ?

Web Design Seo
We will check your site in next hour and will post here answer.
Aldo Campione
QUOTE (Web Design Seo @ Dec 30 2015, 10:36 AM) *
We will check your site in next hour and will post here answer.


The web site seems ok now because with this instruction

<div itemscope itemtype="http://data-vocabulary.org/Product" style="display: none">

the <span itemprop.... are not printed out

I wait for you check
Web Design Seo
Google say "all is OK": https://developers.google.com/structured-da...gi-carbon-fiber

But we think better is to change your template. Is not good idea to post info on page twice - first time as hidden text (your changes with display:none), and again the same info bottom.
Aldo Campione
The template is OK. The problem is the module microformat.
With the previous version of the module it did not happen.
If I take out display: none
all the itemporp are printed out

look here it is a TEST site where I make tries
Код
http://www.aldocampione.it/custodie-rivestite/vetrina-6-orologi-carbon-fiber


Here is the original version of mirocofrmatvotes.
Aldo Campione
But in previous versio the ITEMPROP where META TAGS now they are SPAN TAGS
It is obvious that they are printed out
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.

Web Analytics