HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Location attribute

If your website supports more than one country, then you can provide the product data using a location attribute within an RSS feed.

The following elements support location information.

  • <p:title>
  • <p:description>
  • <p:link>
  • <p:imageLink>
  • <p:inStock>
  • <p:stock>
  • <p:recommend>
  • <p:recommended>

See Mandatory item elements and Optional item elements for descriptions of these elements. See also RSS 2.0 feed sample for a more comprehensive example.

Examples

The following examples show how you can provide location data.

<p:title>

<p:title location=”en-GB”>ProductTitle</p:title>
    <p:title location=”de”>Produkttitel</p:title>

<p:description>

<p:description location=”en-GB”>...</p:description>
    <p:description location=”de”>...</p:description>

<p:link>

<p:link location=”en-GB” >... </p:link>
    <p:link location=”de” >... </p:link>

<p:imageLink>

<p:imageLink location=”en-GB”>http://yourdomain.com/image/c001.jpg</p:imageLink>
    <p:imageLink location=”de”>http://yourdomain.com/image/c001.jpg</p:imageLink>

What’s Next
Did this page help you?