XML Feed - Example - Google Merchant Feed

Category: Phoca Cart Component
Phoca Cart includes XML Feed feature. You can define unlimited amount of XML feeds for your products.
To start using XML Feeds, you need to create one. Go to:
Joomla! administration - Components - Phoca Cart - XML Feeds and click on New.
Each XML Feed service defines own specific options. Such options need to follow specifications set by this service. See Google Merchant header and footer example:
 XML Feed
XML Feed values are defined in:
  • Products
  • Categories (Title (XML Feed), Category Type (XML Feed))
  • Stock Statuses (Title (XML Feed))
For example, if you set Categories for Google Merchant, they have specific format and specific ID:
Apparel & Accessories > Clothing (1604)
This format and ID needs to be specified exactly so the feed will be successfully parsed.
Following feed is rendered by Phoca Cart automatically when:
  • xml, rss, channel tags are set in XML Feed - in XML Header parameter
  • channel, rss tags are set in XML Feed - in XML Footer parameter
  • item tag is set in XML Feed in XML Product element
  • title, sku, price, g:availability_date, g:condition tags are set in Products
  • g:google_product_category tag is set in Categories
  • g:availability tag is set in Products and Stock Statuses
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0">
   <title>Beiv Badif</title>
   <g:google_product_category>Apparel & Accessories > Clothing (1604)</g:google_product_category>
   <g:availability_date>2019-01-08 20:24:43</g:availability_date>
   <g:availability>in stock</g:availability>
Each XML Feed includes specific URL. Such should be copied and added to XML Feed service.

XML Feed Plugins

XML Feed elements can be extended by plugins. You can define new elements in XML feed plugin and add product values to these elements in product edit:
Phoca Cart - XML Feed - Product Edit - Feed Plugin
The information is displayed in XML Feed:
Phoca Cart - XML Feed including Phoca XML Feed plugin information
If you need to insert custom elements that contain the same information for each product, it is better to use the Product Fixed Elements parameter.
Phoca Cart - Product Fixed Elements parameter

Be aware, the format and correctness of these XML elements is not checked. Make sure all tags are closed correctly.
How to work with Phoca Cart XML Feed plugins:
1) Install the plugin
2) Activate it in Plugin Manager
3) Go to product edit in administration and navigate to Feed Options - fill the values there. In this place - all plugins are listed, so you can fill data for all plugins
4) Go to XML feed edit - create one and assign plugin to this XML feed with help of parameter: XML Feed Plugin

XML Feed Stock Status

See image explaining which elements are set when stock status is managed:
Phoca Cart - XML Feed - Stock Status
Powered by Phoca