I want to bullet some text in a product description by hard coding the Product Full Description. E.g
!!<•>!! bullet point 1
!!<•>!! bullet point 2 etc
The product layout is one per page. The bullet works on this page. I am using a section link within a box with product details to list the products in a section above the one product per page. The product desription is limited to say 10 words using the php from the AUG.
The bullets are displayed in this section as follows: !!<• >!! bullet point 1
Is ther a way round this apart from ensuring the bullet points do not appear in the first 10 words?
!!<•>!! bullet point 1
!!<•>!! bullet point 2 etc
The product layout is one per page. The bullet works on this page. I am using a section link within a box with product details to list the products in a section above the one product per page. The product desription is limited to say 10 words using the php from the AUG.
PHP Code:
<actinic:block php="true" >
$sShort = "";
$nCount = 0;
$sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
foreach(explode(" ", $sOriginal) as $sWord)
{
if ($nCount > 10)
{
$sShort .= "...";
break;
}
$sShort .= $sWord . " ";
$nCount++;
}
echo $sShort;
</actinic:block>
Is ther a way round this apart from ensuring the bullet points do not appear in the first 10 words?
Comment