Author Topic: Google Base required attributes missing  (Read 9482 times)

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Google Base required attributes missing
« on: April 01, 2014, 05:47:04 PM »
I'm curious why AbanteCart make these extensions available when they are incomplete and simply do not work.

No images get to Google merchant center, availability and product category attributes missing

image link in the feed is set to "<g:image_link>../image/thumbnails/no_image-500x500.jpg</g:image_link>" on all products

Remove the extension or fix it

Gnel


Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Google Base required attributes missing
« Reply #1 on: April 01, 2014, 05:59:41 PM »
This is third party extension, but let us check what is happening.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: Google Base required attributes missing
« Reply #2 on: April 01, 2014, 07:24:24 PM »
Look forward to the fix asap as my merchant account feeds are pending approval by Google specialist because of these, if it requires a compensation to expedite the fix on your side simply send me pm.

Gnel

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Google Base required attributes missing
« Reply #3 on: April 02, 2014, 05:47:02 AM »
please replace file /extensions/google_base/storefront/controller/responses/extension/google_base.php by attached and let me know about result
« Last Edit: April 03, 2014, 05:34:30 AM by abolabo »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: Google Base required attributes missing
« Reply #4 on: April 03, 2014, 01:45:18 AM »
Great Dmitriy, all images are in thanks to you!

And last, all of my products are under "promotions" special price, yet feed generates the original price

I have spend some time trying to figure out how to get the specials promo price into '<g:price>' output instead of the original price in the php file with no luck

Wonder what should be updated below to make it function

$special = $this->model_catalog_product->getProductSpecial($product['product_id']);
               
               if ($special) {
                  $response .= '<g:price>' . $this->tax->calculate($special, $product['tax_class_id']) . '</g:price>';
               } else {
                  $response .= '<g:price>' . $this->tax->calculate($product['price'], $product['tax_class_id']) . '</g:price>';

Thank you!
« Last Edit: April 11, 2014, 06:54:03 PM by classicer »

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Google Base required attributes missing
« Reply #5 on: April 03, 2014, 05:36:12 AM »
i refill file to post above.. replace again:)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: Google Base required attributes missing
« Reply #6 on: April 03, 2014, 08:06:31 AM »
Same, does not get any price in

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Google Base required attributes missing
« Reply #7 on: April 03, 2014, 09:05:05 AM »
hm..did you cleared cache?
i see price inside xml
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: Google Base required attributes missing
« Reply #8 on: April 03, 2014, 09:07:58 PM »
Tax Class: is set to none on all products as I do not charge sales tax maybe that's why it is preventing final_price to get into <g:price>?

since the php calculation code includes a tax class

$response .= '<g:price>' . $this->tax->calculate($product['final_price'], $product['tax_class_id']) . '</g:price>';

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Google Base required attributes missing
« Reply #9 on: April 04, 2014, 05:56:24 AM »
Tax Class: is set to none on all products as I do not charge sales tax maybe that's why it is preventing final_price to get into <g:price>?

since the php calculation code includes a tax class

$response .= '<g:price>' . $this->tax->calculate($product['final_price'], $product['tax_class_id']) . '</g:price>';

no. i changed tax class to "none" too and it works..
mmmm... can you paste
Quote
var_dump($product); exit;
  inside loop and post output here?

to see result just go to your url http://your_domain_here/index.php?rt=extension/google_base

“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline classicer

  • Newbie
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: Google Base required attributes missing
« Reply #10 on: April 10, 2014, 07:48:31 PM »
Any update on getting the final_price in Dmitriy as there is none in the dump

may it be those are price_num or special_num?

Thanks!
Gnel

« Last Edit: April 11, 2014, 01:41:00 AM by classicer »

 

Powered by SMFPacks Social Login Mod