Tabber - Removing tabber headings from 1st 10 words patch.

Tabbed Product and Fragment Descriptions.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Tabber - Removing tabber headings from 1st 10 words patch.

Post by norman »

If you are using the Advanced Guide "Only Displaying the First Ten Words of the Full Description" in your New Products or Best Sellers layout and you want to remove any Tabber headings, e.g. {Info} then the following will help.

Edit the First Ten Words code and look for the line

Code: Select all

$sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
Immediately after this add

Code: Select all

$sOriginal = preg_replace('/\{.*?\}/', ' ', $sOriginal);  // remove tabber headings
Norman
Post Reply