Excellent! :clap:
Thanks for the information and good luck with your store. :D
Printable View
Just to summarise what I have found, (in case Numinix reads this)..when adapting this to cope with both english and spanish.
Bugs
1) for the country pulldown list in the admin.
The function call as named by the sql install and the actual function name are not the same. Probably easiest to rename the function
This has been mentioned above but I would like to point out its a bug.PHP Code:
if (!function_exists('google_cfg_pull_down_country_list')){
function google_cfg_pull_down_country_list($countries_id, $key = '') {//steve was google_cfg_pull_down_country_iso3_list
2) the options for automatically adding the product types based on your category path.
"bottom" is incorrectly coded in googlefroogle.php.
Correction:
3) in the same location, the category names go through the htmlentities function to encode special characters (as per google feed specs). This garbles utf-8 as php defaults to iso-8859 so the correct code should be:PHP Code:
$bottom_level = $product_type[sizeof($product_type) - 1]; // sets last category in array as bottom-level, steve bug was +1
However, when the accented characters are represented correctly in the feed, Google still complains of invalid format.PHP Code:
$product_type = htmlentities($bottom_level, ENT_QUOTES,'UTF-8');
So, get rid of the function altogether in the three instances, for example:
4) Duplicated <g:google_product_category> after each item.PHP Code:
$product_type = $product_type[0];//steve removed htmlentities, Google no like
} elseif (GOOGLE_PRODUCTS_PRODUCT_TYPE == 'bottom') {
$bottom_level = $product_type[sizeof($product_type) - 1]; // sets last category in array as bottom-level, steve bug was +1
$product_type = $bottom_level;//steve removed htmlentities, Google no like
} elseif (GOOGLE_PRODUCTS_PRODUCT_TYPE == 'full') {
$full_path = implode(",", $product_type);
$product_type = $full_path;//steve removed htmlentities, Google no like
There is duplicated code in both googlefroogle and/classes/ google_base to deal with attributes. I did not investigate this fullly as I don't use attributes.
I chose to comment out the code in google_base, this may not be the correct solution for your store.
In any case search for g:google_product_category to find the repeated code.
I have added code to the mod to be able to generate each feed with its own store description, currency, and default google category. If anyone wants it for their dual language store, pm me.
Numinix released a new version yesterday - nothing major but does include a bug fix - don't know what.
http://www.numinix.com/zen-cart-modu...-center-feeder
No, there are no database changes.
I haven't seen it happen myself. Would need access to the cart where it's happening before I could figure it out.