Please could any one help my google base feed had been working fine for 3 months now when i get to 66 items it wont work ive added lots more but keeps saying this-
Uploaded on Mar 16, 2011 6:00 am PDT
66 of 67 items inserted - Processed on Mar 16, 2011 6:01 am PDT
Destinations: Product Ads, Product Search
Total File Size: 158.54 KB
Detected file format: XML
Recent uploads
Mar 16, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 15, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 14, 2011 6:00 am PDT - 66 of 67 items inserted
Feed Level Messages
Error: XML formatting error - Error
Our system encountered an error when processing your data feed.
Learn more.
Examples: Examples:
Line Nr. Column Nr.
1,220 391 please dont know much about this hope you can help jane.
http://www.empirezone.co.uk/
steven0 wrote:Please could any one help my google base feed had been working fine for 3 months now when i get to 66 items it wont work ive added lots more but keeps saying this-
Uploaded on Mar 16, 2011 6:00 am PDT
66 of 67 items inserted - Processed on Mar 16, 2011 6:01 am PDT
Destinations: Product Ads, Product Search
Total File Size: 158.54 KB
Detected file format: XML
Recent uploads
Mar 16, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 15, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 14, 2011 6:00 am PDT - 66 of 67 items inserted
Feed Level Messages
Error: XML formatting error - Error
Our system encountered an error when processing your data feed.
its says any error will be skip but its not doing any more.
Learn more.
Examples: Examples:
Line Nr. Column Nr.
1,220 391 please dont know much about this hope you can help jane.
http://www.empirezone.co.uk/
been on file manager under feed says-steven0 wrote:steven0 wrote:Please could any one help my google base feed had been working fine for 3 months now when i get to 66 items it wont work ive added lots more but keeps saying this-
Uploaded on Mar 16, 2011 6:00 am PDT
66 of 67 items inserted - Processed on Mar 16, 2011 6:01 am PDT
Destinations: Product Ads, Product Search
Total File Size: 158.54 KB
Detected file format: XML
Recent uploads
Mar 16, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 15, 2011 6:00 am PDT - 66 of 67 items inserted
Mar 14, 2011 6:00 am PDT - 66 of 67 items inserted
Feed Level Messages
Error: XML formatting error - Error
Our system encountered an error when processing your data feed.
its says any error will be skip but its not doing any more.
Learn more.
Examples: Examples:
Line Nr. Column Nr.
1,220 391 please dont know much about this hope you can help jane.
http://www.empirezone.co.uk/
<?php
class ControllerFeedGoogleBase extends Controller {
public function index() {
if ($this->config->get('google_base_status')) {
$output = '<?xml version="1.0" encoding="UTF-8" ?>';
$output .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">';
$output .= '<channel>';
$output .= '<title>' . $this->config->get('config_name') . '</title>';
$output .= '<description>' . $this->config->get('config_meta_description') . '</description>';
$output .= '<link>' . HTTP_SERVER . '</link>';
$this->load->model('catalog/category');
$this->load->model('catalog/product');
$this->load->model('tool/image');
$products = $this->model_catalog_product->getProducts();
foreach ($products as $product) {
if ($product['description']) {
$output .= '<item>';
$output .= '<title>' . html_entity_decode($product['name'], ENT_QUOTES, 'UTF-8') . '</title>';
$output .= '<link>' . HTTP_SERVER . 'index.php?route=product/product&product_id=' . $product['product_id'] . '</link>';
$output .= '<description>' . $product['description'] . '</description>';
$output .= '<g:brand>' . html_entity_decode($product['manufacturer'], ENT_QUOTES, 'UTF-8') . '</g:brand>';
$output .= '<g:condition>new</g:condition>';
$output .= '<g:id>' . $product['product_id'] . '</g:id>';
if ($product['image']) {
$output .= '<g:image_link>' . $this->model_tool_image->resize($product['image'], 500, 500) . '</g:image_link>';
} else {
$output .= '<g:image_link>' . $this->model_tool_image->resize('no_image.jpg', 500, 500) . '</g:image_link>';
}
$output .= '<g:mpn>' . $product['model'] . '</g:mpn>';
$special = $this->model_catalog_product->getProductSpecial($product['product_id']);
$supported_currencies = array ('USD', 'EUR', 'GBP');
if (in_array($this->currency->getCode(), $supported_currencies)) {
$currency = $this->currency->getCode();
} else {
$currency = ($this->config->get('google_base_status')) ? $this->config->get('google_base_status') : 'USD';
}
if ($special) {
$output .= '<g:price>' . $this->currency->format($this->tax->calculate($special, $product['tax_class_id']), $currency, FALSE, FALSE) . '</g:price>';
} else {
$output .= '<g:price>' . $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency, FALSE, FALSE) . '</g:price>';
}
$categories = $this->model_catalog_product->getCategories($product['product_id']);
foreach ($categories as $category) {
$path = $this->getPath($category['category_id']);
if ($path) {
$string = '';
foreach (explode('_', $path) as $path_id) {
$category_info = $this->model_catalog_category->getCategory($path_id);
if ($category_info) {
if (!$string) {
$string = $category_info['name'];
} else {
$string .= ' > ' . $category_info['name'];
}
}
}
$output .= '<g:product_type>' . $string . '</g:product_type>';
}
}
$output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>';
$output .= '<g:upc>' . $product['model'] . '</g:upc>';
$output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class']) . '</g:weight>';
$output .= '</item>';
}
}
$output .= '</channel>';
$output .= '</rss>';
$this->response->addHeader('Content-Type: application/rss+xml');
$this->response->setOutput($output, 0);
}
}
protected function getPath($parent_id, $current_path = '') {
$category_info = $this->model_catalog_category->getCategory($parent_id);
if ($category_info) {
if (!$current_path) {
$new_path = $category_info['category_id'];
} else {
$new_path = $category_info['category_id'] . '_' . $current_path;
}
$path = $this->getPath($category_info['parent_id'], $new_path);
if ($path) {
return $path;
} else {
return $new_path;
}
}
}
}
?>
Who is online
Users browsing this forum: No registered users and 1 guest