Remove Tab Names from product feeds.

Post Reply
norman
Site Admin
Posts: 1237
Joined: Sat Feb 07, 2004 9:55 pm

Remove Tab Names from product feeds.

Post by norman » Wed May 01, 2019 2:59 pm

To remove the {Tab Name} heading from the product feeds, do the following:

Go to Design / Library / Layouts / TabbeDescriptions.
Right-click UntabbedProductDescription and choode Copy.
Rename that copy to be StrippedProductDescription.
Open StrippedProductDescription and replace the contents with:

Code: Select all

<actinic:block php="true">
// Tabbed Product Description V3.14
$desc = <<<TBPRDSC
<actinic:variable name="ProductDescription" encoding="Strip and Encode" selectable="false" />
TBPRDSC;
echo preg_replace('/&#123;(.*?)&#125;/s', ' ', $desc);
</actinic:block>
Ok out.

Go to Design / Library / Layouts / XML Feeds / Google Product Feed Layout.
Replace the line:

Code: Select all

				<![CDATA[<actinic:variable encoding="Strip and Encode" name="ProductDescription" />]]>
With:

Code: Select all

				<![CDATA[<actinic:variable name="TabbedDescription" value="StrippedProductDescription" />]]>
Ok out and that should be you fixed.
Norman

Post Reply