RO CSVI

Google Sitemap

Requirements:
CSVI 7.0 version
VirtueMart 3.0 or higher

A Google sitemap can be created using VirtueMart product export operation with the following steps.

Step 1

Create a template by selecting Component as VirtueMart, Action as Export and Operation as Product in template Details tab.

Step 2

Under File tab set the following optins

  1. Set Export type to XML
  2. Set Website to Custom
  3. Set Export State to Published. This is needed because only published products should appear in the sitemap as unpublished products are not accessible.

Google Sitemap File tab settings

Step 3

To design the layout of the sitemap, under XML layout tab set the following

  1. Fill the header with the text:
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
            xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  2. Fill the body with the text:
    <url> 
        <loc>[product_url]</loc> 
        <image:image>
           <image:loc>[picture_url]</image:loc> 
        </image:image>
      </url>
  3. Fill the footer with the text:
    </urlset>
  4. Click on apply to save your changes

Google Sitemap XML layout

Step 4

Add the template fields needed for export on CSVI template fields page.

  1. Add the fields:
    • product_url
    • picture_url
    • product_sku
    as shown on the image.
  2. Fill in the column header for the product_url and picture_url fields
  3. Publish the fields product_url and picture_url and to unpublish product_sku field.

Google Sitemap template fields

Step 5 

Finally we are done with setting up the template. Go to CSVI Export page and select the Google sitemap template to download the sitemap file.

References:

Creating Sitemaps - Webmaster Tools Help