Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TonyRawson

Pioneers
  • Posts

    6
  • Joined

  • Last visited

TonyRawson's Achievements

  1. Hi, i don't know if i've missed something but when I check my merchant centre product feed, the products shown seem to use the product title for 'brand:' - is this correct or should it be taking the information from the manufacturer? Thanks Tony
  2. Thanks, i had everything in place, google must have been uploading a cached version of my feed, when i look at it from the server it's fine.
  3. Hi is there something i need to add via mysql? or have i turned something off within the site which would stop it working? Thanks Tony
  4. I've used the one from your contribution, looks like this : <?php /** * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ /* Google Product feed configuration for The Feedmachine Solution based on google-simple.php by: Lech Madrzyk ---------------------------- This configuration is complient with the Google-Feed specifications from 22nd of september 2011. It has to be used together with the modified feedmachine.php file which includes the 'IS_IN_STOCK' Keyword definition. */ $feed_config = array('name' => 'Google Product Search', 'authors' => 'Musicstreet', 'filename' => 'musicstreet.txt', 'schema_version' => '2.0', 'fields' => array('id' => array('output' => 'FM_RS_product_id_us_en', 'type' => 'FUNCTION' ), 'title' => array('output' => 'products_name', 'type' => 'DB', 'options' => array('STRIP_HTML', 'STRIP_CRLF') ), 'price' => array('output' => 'FINAL_PRICE_WITH_TAX', 'type' => 'KEYWORD', ), 'brand' => array('output' => 'manufacturers_name', 'type' => 'DB', 'options' => array('STRIP_HTML', 'HTML_ENTITIES', 'STRIP_CRLF') ), 'mpn' => array('output' => 'products_model', 'type' => 'DB' ), 'Google product category' => array('output' => 'FM_RS_google_categories_us_en', 'type' => 'FUNCTION' ), 'product_type' => array('output' => 'CATEGORY_TREE', 'type' => 'KEYWORD', 'options' => array('STRIP_HTML', 'STRIP_CRLF') ), 'link' => array('output' => 'PRODUCTS_URL', 'type' => 'KEYWORD' ), 'image_link' => array('output' => 'IMAGE_URL', 'type' => 'KEYWORD' ), 'condition' => array('output' => 'new', 'type' => 'VALUE' ), 'description' => array('output' => 'products_description', 'type' => 'DB', 'options' => array('STRIP_HTML', 'STRIP_CRLF') ), 'shipping_weight' => array('output' => 'FM_RS_shipping_weight_and_unit', 'type' => 'FUNCTION', ), 'availability' => array('output' => 'in stock', 'type' => 'VALUE', ) ), 'currency_decimal_override' => false, 'currency_thousands_override' => '', 'add_field_names' => true, 'category_tree_seperator' => ' ', 'seperator' => "\t", 'text_qualifier' => '', 'newline' => "\n", 'encoding' => 'false', 'include_record_function' => '' ); //FEED FUNCTIONS BEGIN function FM_RS_product_id_us_en($product) { return 'Your_shops_shortname_' . $product['products_id'] . '_us_en'; } function FM_RS_google_categories_us_en($product) { $output_field_category = ($product['parent_id'] > 0) ? $product['parent_id'] : $product['categories_id']; return (($output_field_category == 1) ? 'Google > Category > Tree1' : (($output_field_category == 2) ? 'Google > Category > Tree2': (($output_field_category == 3) ? 'Google > Category > Tree3': (($output_field_category == 4) ? 'Google > Category > Tree4': (($output_field_category == 5) ? 'Google > Category > Tree5': (($output_field_category == 6) ? 'Google > Category > Tree6': (($output_field_category == 7) ? 'Google > Category > Tree7': (($output_field_category == 8) ? 'Google > Category > Tree8': (($output_field_category == 9) ? 'Google > Category > Tree9': (($output_field_category == 10) ? 'Google > Category > Tree10': (($output_field_category == 11) ? 'Google > Category > Tree11': (($output_field_category == 12) ? 'Google > Category > Tree12': (($output_field_category == 13) ? 'Google > Category > Tree13': (($output_field_category == 14) ? 'Google > Category > Tree14': (($output_field_category == 15) ? 'Google > Category > Tree15': (($output_field_category == 10000) ? '': (($output_field_category == 10000) ? '': (($output_field_category == 10000) ? '': (($output_field_category == 10000) ? '': (($output_field_category == 10000) ? '': '')))))))))))))))))))); } //FEED FUNCTIONS END ?>
  5. Hi Raiwa, i've made the changes but it looks like the 'availability' column is not being outputted when the file is generated, i get this as my first line (can't see availability as a field) : link title description expiration_date price image_link genre id weight manufacturer mpn payment_accepted product_type currency location tax quantity brand condition age_range made_in have i missed something? Thanks Tony
  6. I'm running a 2.2 store and feedmachine with the changes as recommended for google, when i upload the feed I get errors on the whole catalog on the 'availability' which is highlighted red in the data feed (nothing shown in the box to the right). any ideas how to force 'in stock' on all items in the feed. Thanks in advance
×
×
  • Create New...