edit catalog/controller/feed/google_base.php
find
and replace it with
that should work.
find
Code: Select all
$output .= '<g:price>' . $this->tax->calculate($product['price'], $product['tax_class_id']) . '</g:price>';
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>';
}
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
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.
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.
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>';
}
}
Who is online
Users browsing this forum: No registered users and 14 guests