Details

    • Type: Sub-Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: GoogleMerchant
    • Component/s: None
    • Labels:
      None

      Description

      In GMC, a feed can be applied to multiple countries of sale and languages. We can use Supplemental feeds to supply attributes in different languages.
      1. Country of Sale: US, Language: English
      2. Country of Sale: US, Language: Spanish
      3. Country of Sale: Italy, Language: English

      In Liferay, a site can be configured to support these different locales.

      Use this configuration to generate XML for a Site Channel in different languages and for different countries. The XML must contain information in the correct language. For MVP, we will not convert the prices and currencies. We will instead use the configured currency in the Commerce channel for all translations and rely on Google's Currency Conversion tool to convert the prices.

      https://support.google.com/merchants/answer/160637

       

      Steps to test:

      1. Create a Commerce site using an accelerator.
      2. Configure the site to use multiple locales.
      3. Generate XML for commerce channel in en_US. The resulting XML should contain all of the products because by default, they are added with en_US locale.
      4. Generate XML for commerce channel in one of the current site locales. The resulting XML should not contain any products because they are not translated to the specified locale.
      5. Add or update a product to provide the translation to one of the current site locales.
      6. Generate XML for commerce channel in the locale from step 5. The resulting XML should contain the product added/updated in step 5 because it contains information for the specified locale.

      Sample generated XML:

      <feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
      	<title>Test Portal</title>
      	<link rel="self" href="http://localhost:8080/es/web/test-1" />
      	<updated>2020-02-07T17:41:15.643Z</updated>
      	<entry>
      		<g:id>112</g:id>
      		<g:title>Prueba 2 Package Quantity: 112</g:title>
      		<g:link>http://localhost:8080/es/web/test-1/p/test-2</g:link>
      		<g:image_link>http://localhost:8080/o/commerce-media/products/41402/test-2/41422/test.jpg?download=false</g:image_link>
      		<g:availability>out of stock</g:availability>
      		<g:price>100.00 USD</g:price>
      		<g:identifier_exists>false</g:identifier_exists>
      		<g:item_group_id>41401</g:item_group_id>
      		<g:tax>
      			<g:rate>0.00</g:rate>
      		</g:tax>
      		<g:tax_category>Normal Product</g:tax_category>
      	</entry>
      	<entry>
      		<g:id>48</g:id>
      		<g:title>Prueba 2 Package Quantity: 48</g:title>
      		<g:link>http://localhost:8080/es/web/test-1/p/test-2</g:link>
      		<g:image_link>http://localhost:8080/o/commerce-media/products/41402/test-2/41422/test.jpg?download=false</g:image_link>
      		<g:availability>out of stock</g:availability>
      		<g:price>60.00 USD</g:price>
      		<g:identifier_exists>false</g:identifier_exists>
      		<g:item_group_id>41401</g:item_group_id>
      		<g:tax>
      			<g:rate>0.00</g:rate>
      		</g:tax>
      		<g:tax_category>Normal Product</g:tax_category>
      	</entry>
      	<entry>
      		<g:id>WHITE</g:id>
      		<g:title>Prueba Color: Blanco</g:title>
      		<g:description>Prueba</g:description>
      		<g:link>http://localhost:8080/es/web/test-1/p/prueba</g:link>
      		<g:availability>in stock</g:availability>
      		<g:cost_of_goods_sold>10.00 USD</g:cost_of_goods_sold>
      		<g:price>30.00 USD</g:price>
      		<g:sale_price>20.00 USD</g:sale_price>
      		<g:identifier_exists>false</g:identifier_exists>
      		<g:item_group_id>41225</g:item_group_id>
      	</entry>
      	<entry>
      		<g:id>RED</g:id>
      		<g:title>Prueba Color: Rojo</g:title>
      		<g:description>Prueba</g:description>
      		<g:link>http://localhost:8080/es/web/test-1/p/prueba</g:link>
      		<g:availability>in stock</g:availability>
      		<g:cost_of_goods_sold>10.00 USD</g:cost_of_goods_sold>
      		<g:price>30.00 USD</g:price>
      		<g:sale_price>20.00 USD</g:sale_price>
      		<g:identifier_exists>false</g:identifier_exists>
      		<g:item_group_id>41225</g:item_group_id>
      	</entry>
      </feed> 

        Attachments

          Activity

            People

            Assignee:
            austin.kim Austin Kim
            Reporter:
            kayleen.lim Kayleen Lim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                GoogleMerchant