Shopping Basket


Cart empty

Log In

Find Us Elsewhere


Forum Search


googlebaseXML Australian Dollars

  • ausip
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
8 years 4 months ago #220 by ausip
googlebaseXML Australian Dollars was created by ausip
How do I modify the googlebasexml component to report in AUD?

Please Log in or Create an account to join the conversation.

8 years 4 months ago - 8 years 4 months ago #221 by boggler
Replied by boggler on topic googlebaseXML Australian Dollars
It is quite straightforward actually. You need to modify the config.xml file to include Australia in the list.

Then you also need to modify the models/googlebasexml.php to edit the arrays that define the country codes:-
var $currency_map = array('US'=>'USD','GB'=>'GBP','DE'=>'EUR','FR'=>'EUR','JP'=>'JPY','NL'=>'EUR','ES'=>'EUR','IT'=>'EUR','CN'=>'CNY','AU'=>'AUD'); //map 2 digit country code to 3 digit currency
	var $country_map = array('USD'=>'US','GBP'=>'GB','EUR'=>'DE,FR,ES,IT,NL','JPY'=>'JP','CNY'=>'CN','AUD'=>'AU');//map 3 digit currency to 2 digit country
	var $country_code_map = array('US'=>'USA','GB'=>'GBR','DE'=>'DEU','FR'=>'FRA','JP'=>'JPN','NL'=>'NLD','ES'=>'ESP','IT'=>'ITA','CN'=>'CHN','AU'=>'AUS'); //map 2 digit country to 3 digit county

Also the admin/models/googlebasexmls.php needs to be edited:
var $currency_map = array('US'=>'USD','GB'=>'GBP','DE'=>'EUR','FR'=>'EUR','JP'=>'JPY','NL'=>'EUR','ES'=>'EUR','IT'=>'EUR','CN'=>'CNY','AU'=>'AUD');

However if you prefer I have uploaded a new release which includes Australia as well. Version 1.0.8 also changes the availability options to support the new values:
  • 'in stock'
  • 'available for order'
  • 'out of stock'
  • 'preorder'

We are planning a new release which will include support for the new attributes required by Google for Apparel. It is difficult to know how to develop this extension in the long term. Google keep changing the product feed specification, and it is hard to tell how much they will develop it in the future, so it is hard to plan updates of our extension.
Last edit: 8 years 4 months ago by boggler.

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.202 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.