Hello,
Bloody google base and its constant changing!
A site we did running 1.5.1 had google base errors due to availability bit missing...
I simply went into;
/public_html/catalog/controller/feed/google_base.php
And added this in;
$output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>';
$output .= '<g:upc>' . $product['upc'] . '</g:upc>';
$output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>';
$output .= '<g:availability>in stock</g:availability>'; <- this bit
$output .= '</item>';
Its not mega detailed, but it works!
HTH
Bloody google base and its constant changing!
A site we did running 1.5.1 had google base errors due to availability bit missing...
I simply went into;
/public_html/catalog/controller/feed/google_base.php
And added this in;
$output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>';
$output .= '<g:upc>' . $product['upc'] . '</g:upc>';
$output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>';
$output .= '<g:availability>in stock</g:availability>'; <- this bit
$output .= '</item>';
Its not mega detailed, but it works!
HTH
Professional UK Based eCommerce - Our Free Opencart Mods - Our Premium Opencart Mods
Kashflow Integration
Try
1. EDIT: catalog/controller/feed/google_base.php
2. FIND:
3. AFTER, ADD:
Added to the core
1. EDIT: catalog/controller/feed/google_base.php
2. FIND:
Code: Select all
$output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>';
Code: Select all
$output .= '<g:availability>' . ($product['quantity'] ? 'in stock' : 'out of stock') . '</g:availability>';
You should totally make me a "contributer" to OC now



Professional UK Based eCommerce - Our Free Opencart Mods - Our Premium Opencart Mods
Kashflow Integration
I am a noob , what is the core code?? how would someone like me find it? Thank you so much I have the newest version also in case you needed to know
I think it means it's been added into new Opencart versions (into the core files of the system).
So it will be included when there is an updated version, but may not be in the current one - someone else will need to confirm that.
So it will be included when there is an updated version, but may not be in the current one - someone else will need to confirm that.
Who is online
Users browsing this forum: No registered users and 1 guest