Announcement

Collapse
No announcement yet.

Bullet points in product description

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bullet points in product description

    I want to bullet some text in a product description by hard coding the Product Full Description. E.g

    !!<&bull;>!! bullet point 1
    !!<&bull;>!! 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
    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?
    Regards,

    Keith

    Central Heating Supplies | Life Insurance Quotes | Be Modern Orlando Electric Fires | Grant Boilers | Honeywell Heating Controls | Worcester Bosch Oil Boilers | Oil Boilers

    #2
    No, I usually pad out the description to allow for this problem but perhaps you can add a block to remove the bullet in the layout as required.

    Comment


      #3
      Sounds like a <ul> should be used on section descriptions to me.

      Comment


        #4
        Try adding after

        Code:
        $sOriginal = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />';
        the following
        Code:
        $sOriginal = str_replace('!!<', '', $sOriginal);
        $sOriginal = str_replace('>!!', '', $sOriginal);
        to strip the Actinic embedded HTML markers.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Originally posted by leehack
          Sounds like a <ul> should be used on section descriptions to me.
          Yes, a better way to do it (bulleted list), but the !!<>!! still shows in the layout using php.

          The code Norman suggested appears to work. Thank you.
          Regards,

          Keith

          Central Heating Supplies | Life Insurance Quotes | Be Modern Orlando Electric Fires | Grant Boilers | Honeywell Heating Controls | Worcester Bosch Oil Boilers | Oil Boilers

          Comment

          Working...
          X