Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Table of Contents
outlinetrue
stylenone

General settings

The majority of the feed-specific attributes have been set up automaticaly but is some cases you may find usefull to adjust attribute behavior more specificaly.

  • Feed attribute - Name of the element/column in target XML/CSV feed.
  • XPath - Element location in XML feed.
  • Prefix - Constant prefix for exported value. The same for all products.
  • Default value - Constant value.The same for all products. This value is exported in case that Magento attribute is not chosen or its value is empty.
  • Magento attribute - The value of selected Magento product attribute is exported as feed attribute value.
  • Convert attribute - Described below in more detail.
  • Suffix - Constant suffix for exported value. The same for all products.
  • Export parent product attribute value - Export the parent product attribute value instead of Magento attribute value of given child product.
    • Yes - Export the parent product attribute value for all its child products.
    • No - Export of the parent product attribute value is disabled.
    • If empty - Export the parent product attribute value only if the attribute value of its child product is empty.
  • Chars limit - Character limitation for exported value.
  • Post-process action- Text processing functions for an exported value. The value is processed as a text string. This is multi-select option.
    • Cdata - Characted data. Text is enclosed in "<![CDATA[]>".
    • Remove end of lines - Removes end of character lines.
    • Remove spaces - Removes character spaces, e.g. tab, end of line, space etc.
    • Strip tags - Strips HTML and PHP tags.
    • Encode special chars - Converts special characters to HTML entities.
    • Decode special chars - Converts special HTML entities back to characters.
    • Encode html entities - Convert all applicable characters to HTML entities.
    • Decode html entities - Convert all HTML entities to their applicable characters.
    • Insert HTML line breaks - Inserts HTML line breaks (<br/>) before all newlines  (\r\n\n\r\n and \r) in a string.


 


Info
titleTable row is disabled

Disabled row in Attribute mapping table means that the given row is already preconfigured according to the feed requirements and it is not possible to change that option.

...

Code Block
titleExample
In Prefix or Sufix column you may use following expression to increases price by 15%.
[[{{price_final_include_tax}} * 1.15]]

// increasing the price by 25
[[{{price_final_include_tax}} + 25]]

Note that attribute code you may find in attribute detail under Catalog > Attributes > Manage Attributes.

...

Code Block
titleEmpty Attribute Condition example
// if value of the 'meta_titlename' attribute is not empty the 'meta_titlename' value is used, otherwise it is used the value of the 'namedescription' attribute
  [[('{{meta_titlename}}' != '') ? '{{meta_titlename}}': '{{namedescription}}';]]
 
// note double curling brackets surrounding attribute codes

...

Code Block
titleAttribute Value Condition example
// if product price is higher than 100 then use product price as the final price, otherwise increase the price for 20 (adding 20 as shipping costs)
[[({{price_final_include_tax}} > 100) ? {{price_final_include_tax}} : {{price_final_include_tax}} + 20]]
 
// note double curling brackets surrounding attribute codes

Image Added

Addition of a new attribute

If the given Feed authority feed template allows it, you can add custom attributes at the end of Attributes mapping table:

Troubleshooting

Magento attribute displayed in red color

...

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "attributes"
labelsattributes