SEO

HTML Vehicle Sitemap

The sitemap is automatically loaded if it is enabled in the configuration. Simply place an indexable link where Google can see it somewhere in your page, such as the footer. We recommend removing any links from your built in Magento sitemap, and disallowing them in your robots.txt, there is no need to have the Magento sitemap as well as the vehicle site map. Choose one and stick with it to avoid duplicate content penalization.

The default Vehicle Sitemap URL is at:
http://example.com/vafsitemap/vehicle

The extension will list each vehicle that has product with application mappings


The extension will list each product mapped to that vehicle, as Google crawls the site map!

Rewrite Product Titles

Product titles may be rewritten, for example if the user has "2000 Honda Civic" as their selected vehicle, a product with a title of "Widget" would appear as "Widget for 2000 Honda Civic". Any custom title formatting may also be used... for example replacing 'for' with 'for your' to get 'Widget for your 2000 Honda Civic'.

Product titles may be rewritten on a global or local basis. When rewritten locally, you can cherry pick specific locations where you want the product title to appear rewritten (Ex: product view, shopping cart, home page). When rewritten globally, the product title will appear rewritten eveywhere [globally], including but not limited to the page's html title tag and shopping cart.

With global rewriting, there is no need to modify any tempaltes, as shown in example #1. With local rewriting, there a need to modify each template where you want to rewrite the titles. The product view page is treated as "global" even if you are in local mode, this cannot be disabled.

Example 1: Global Rewrites
Configuration is set to:

[seo]
rewriteProductName = true
globalRewrites = true
        
With global rewriting, there is no need to modify any tempaltes, as shown:
// when global rewrites are on & product fits current vehicle selection
$product->getName(); // Widget for Honda Civic 2002

// when global rewrites are on & product does not fit selection
$product->getName(); // Widget
        

Example 2: Local Rewrites
Configuration is set to:

[seo]
rewriteProductName = true
globalRewrites = false
        
With local rewriting, there a need to modify each template where you want to rewrite the titles, as shown:
// when global rewrites are off & product fits current vehicle selection
$product->setCurrentlySelectedFit( VF_Singleton::getInstance()->getFit() );
$product->getname(); //  Widget for Honda Civic 2002

// when global rewrites are off & product does not fit current vehicle selection
$product->setCurrentlySelectedFit( VF_Singleton::getInstance()->getFit() );
$product->getname();  // Widget
        

Google Products

Export this under Vehicles -> SEO -> Export

You must run the export on a store by store basis. Select a store and select 'CSV' for the format. If you have over a few thousand application mappings its recommended to use the CLI / Crontab

Sitemap XML (Google, Yahoo, and other crawlers)

Export this under Vehicles -> SEO -> Export

You must run the export on a store by store basis. Select a store and select 'XML' for the format. If you have over a few thousand product application fitments its recommended to use the Command Line Interface (CLI).

Command Line Interface (CLI) / Crontab

Navigate to Elite/Vafsitemap/cron
Rename google-base.default.php to google-base.My-Store.php (put your store name)
Open config.php and set the path information & database details.
Open google-base.My-Store.php and set the store ID on the second line.
Run this file like this:

php google-base.My-Store.php

Or as a background process:

nohup php google-base.My-Store.php > seo.My-Store.log &


Repeat for each store.