Page 1 of 1
Google Base - Special Price Bug
Posted: Thu Dec 31, 2009 12:24 am
by palkema
When specifying a special price for a specific product, the price does actually change, however the google base feature does not display this change. It display's the normal price.
I believe this to be a bug.
Re: Google Base - Special Price Bug
Posted: Thu Dec 31, 2009 12:56 am
by Xsecrets
edit catalog/controller/feed/google_base.php
find
Code: Select all
$output .= '<g:price>' . $this->tax->calculate($product['price'], $product['tax_class_id']) . '</g:price>';
and replace it with
Code: Select all
$special = $this->model_catalog_product->getProductSpecial($product['product_id']);
if($special) {
$output .= '<g:price>' . $this->tax->calculate($special, $product['tax_class_id']) . '</g:price>';
} else {
$output .= '<g:price>' . $this->tax->calculate($product['price'], $product['tax_class_id']) . '</g:price>';
}
that should work.
Re: Google Base - Special Price Bug
Posted: Thu Dec 31, 2009 5:26 am
by palkema
Works great, thanks.
Re: Google Base - Special Price Bug
Posted: Mon Mar 15, 2010 9:51 pm
by speedingorange
Have tried this and am getting a bit of a glitch, double pricing. The correct price is added into the item title and the old non special offer price is listed as the searchable price on google.
Example:
http://www.google.co.uk/products?q=sabr ... t054&hl=en
any one any ideas? really need to sort this as its becoming a bit of a nuisance.
Re: Google Base - Special Price Bug
Posted: Tue Apr 27, 2010 4:40 pm
by speedingorange
just revisiting an issue i'm having, could anyone pinpoint where the error is in this page that is preventing the special price being sent through to the .rss feed?
Code: Select all
$special = $this->model_catalog_product->getProductSpecial($product['product_id']);
if($special) {
$output .= '<g:price>' . $this->tax->calculate($special, $product['tax_class_id']) . '</g:price>';
} else { $special = $this->model_catalog_product->getProductSpecial($product['product_id']);
if($special) {
$output .= '<g:price>' . $this->tax->calculate($special, $product['tax_class_id']) . '</g:price>';
} else {
$output .= '<g:price>' . $this->tax->calculate($product['price'], $product['tax_class_id']) . '</g:price>';
}
}