View Single Post
  #4  
Old January 10th, 2011, 11:13 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

OK, for the meta tags...

Basically, the extra double quote is appearing because some of your product names have double quotes in them.

Anyway, they can easily be filtered out.
  1. Log into the Factory
  2. Go into your store
  3. Go to VIEWS > PRODUCT DETAIL > Default
  4. Go to the View menu > View <head> Elements
  5. Delete everything that is there.
  6. Paste the following code into the textarea:
    Code:
    <?php
    $product_name = str_replace('"', '', $product->name);
    $category_name = str_replace('"', '', $category->name);
    ?>
    
    <title>[product.name] | [category.name] | </title>
    <meta name="description" content="[product.description]" />
    <meta name="keywords" content="<?php echo str_replace(' ', ',',$product_name); ?>,<?php echo str_replace(' ', ',',$category_name); ?>" />
  7. Save
  8. Update store.

Basically, that removes all double quotes from the product name and category name, then replaces any spaces with commas to generate your meta keyword values.

Eric