Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Google Base Problems Quick Fix
 
TIpsy
Jr. Member
 
Total Posts:  2
Joined:  2009-07-05
 

Hello All,

Google Base Integration has some problems with magento trying to solve some of them. Please let me know if i am wrong or nto helpful. Please let me know (PM me) about any improvements or suggestions so that the main thread can be updated and make life easier for every one. If any one can make a custom extension for this it will be helpful.

The main file that needs to be modified is

app/code/core/Mage/GoogleBase/Model/Service/Item.php

Fixing the special price problem in Google Base integration

Search for

$this->_setAttributePrice(false$object->getPrice());

Replace with

if ($object->getSpecialPrice())
        
{
        $this
->_setAttributePrice(false$object->getSpecialPrice());
        
}
        
else
        
{
        $this
->_setAttributePrice(false$object->getPrice());
        
}

Setting the default location of the product

Search for

if ($object->getData('image_url')) {
            $this
->_setAttribute('image_link'$object->getData('image_url'), 'url');
        
}

Add below

$this->_setAttribute('location''Your Address Goes Here''location');

For Payment Methods Accepted add below line

$this->_setAttribute('payment_accepted''Payment Method example MasterCard goes here''text');

For Payment Notes add below line

$this->_setAttribute('payment_notes''We gladly accept all major credit cards through PayPal, Money Bookers and 2CO Checkout payment Gateways.''text');

Adding multiple payment methods to be worked. Anyone can help me with this. Hoping this post will be helpful to some people. Will add more options.

Bye

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vitalityshop
Member
 
Avatar
Total Posts:  39
Joined:  2008-08-31
 

There is still a problem with fixing the special price for google base (Magento 1.3.2.4).

After submitting the following products to google base:

product price special_price
P001 
10.0 
P002 10.0 9.0
P003 
10.0 
P004 10.0 8.0

the following prices are send to google base:

P001 10.0
P002 
9.0
P003 
9.0 !!!!
P004 8.0

So if you have a product without a special_price, it inherits the special_price from a previous product with a special_price.

I think it’s because of a wrong object initialization in app/code/core/Mage/GoogleBase/controllers/ItemsComtroller.php line 100:

foreach ($productIds as $productId{
    $product 
Mage::getSingleton('catalog/product')
        ->
setStoreId($storeId)
        ->
load($productId);

    if (
$product->getId()) {
        Mage
::getModel('googlebase/item')
            ->
setProduct($product)
            ->
insertItem()
            ->
save();

        
$totalAdded++;
    
}
}

This works for me:

$product Mage::getModel('catalog/product')
  ->
setStoreId($storeId)
  ->
load($productId);
 
Magento Community Magento Community
Magento Community
Magento Community
 
Template fans
Guru
 
Total Posts:  446
Joined:  2009-11-02
 

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
imacache
Member
 
Total Posts:  35
Joined:  2009-04-23
Durango, CO
 

So is this a fix for special price and does it send promo prices via catalog price rules?  If this does the trick, I’ll make a damned 1.3.2.4 google base fix-all end-all module for free.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jwhitson
Jr. Member
 
Total Posts:  20
Joined:  2009-02-19
 

It doesn’t seem like ANYONE has a fix for this. I’ve searched high and low and this is the closest thing to a “fix” but no updates on whether it applies to the newer versions of Magento.

Anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mgarratt
Jr. Member
 
Total Posts:  18
Joined:  2010-04-08
 

Try this thread

http://www.magentocommerce.com/boards/viewthread/24089/P45/#t285646

 
Magento Community Magento Community
Magento Community
Magento Community
 
fancyfiber
Jr. Member
 
Avatar
Total Posts:  27
Joined:  2009-12-25
 

Just completed a very flexible module for Magento version 1.6 (may work on previous versions, but is untested at this time) that will create an XML file to be submitted to Google Merchant Center that will be compatible with the changes on Sept. 22nd. It has reporting to check products before they are added to your feed. It uses a JavaScript taxonomy checker to get the Google Product Category for your product (no more cut and paste from Google to your product and create a custom attribute). It allow for custom mapping for certain attributes. It accounts for up to 10 additional images per product (per Google specification). Uses Magento Cron to schedule file generation.

Check out the user guide at: http://fancyfiber.com/studios/products/en/buy/google_merchant_center_feed_user_guide

Buy it for $20 at:  http://fancyfiber.com/studios/products/en/buy/magento-modules/google-merchant-center-feed.html

Features at a glance:
JavaScript selector for Google Product Taxonomy (required by Google as of Sept 22, 2011)
Automatic selection of store category for inclusion in file
Automatic inclusion of special price and dates
Ability to create custom attribute mapping to your product attributes
Cron scheduled creation of XML file
Works with multiple stores
Select products by attribute set and ability to exclude specific products
Reports to verify the majority of the most common errors with Feed files (include troublesome apparel products)
Able to override most attributes sent to Google so they don’t have to match store values exactly (I use this to fix long store titles)
Support for configurable products - item group id sent for the configurable parent.
Separate feed files per store - can disable feeds per store view
And more…

 
Magento Community Magento Community
Magento Community
Magento Community
 
galenvorgr
Jr. Member
 
Total Posts:  4
Joined:  2012-03-14
 
imacache - 12 August 2010 08:53 AM

So is this a fix for special price and does it send promo prices via catalog price rules?  If this does the trick, I’ll make a damned 1.3.2.4 google base fix-all end-all module for free.

that would be great smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top