Announcement

Collapse
No announcement yet.

thumbnail image no description layout

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

    thumbnail image no description layout

    Product name thumbnail image only
    no description no price no attributes or componants layout is what im after

    i am a little stuck on two items from the advanced users guide

    here's what im trying to achive

    i want to have a section for instance say call it cars
    then next section say ford
    then i want my products like ford puma, ford focus,

    now in my section for ford i want it to list title price & thumbnail image no description and no buy now

    i thought of doing

    Only Displaying the First Ten Words of the Full Description
    It is possible to include a PHP statement which only displays the first 10 words of the full description in the store pages. This is useful if you are displaying a compact version of the product, and don't want the full description to appear.
    Simply click on the product description (in the 'Design' tab) that you want to shorten.
    Then locate the 'ProductDescription' variable in the layout code.
    Highlight that variable and replace it with the following 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>
    but it only works if i do it to the product (ford focus) and not just to the section

    i also tried

    Using the 'Thumbnail' Image in the 'Mini' Item Layouts
    The items in the best sellers list, new products list, also bought list and related items list all have a 'Mini' item layout. This includes the name, price and description of the product, and also includes a small version of the product image.
    By default, the layout just uses the standard product image scaled down – but it is possible to use the image specified in the actual 'Thumbnail' product field instead.
    To do this, click on the 'Mini' layout that you want to edit.
    Locate the following code:
    Replace all three lines with the following:
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22ProductImageFileName%22%20%2f%3e%20%21%3d%20%22%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22ProductThumbnailImageFileName%22%20%2f%3e%20%3d%3d%20%22%22%29" >
    <img src="<actinic:variable name="ProductImageFileName" />" width="75" alt="<actinic:variable name="ProductName" />" />
    </actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductThumbnailImageFileName%22%20%2f%3e%20%21%3d%20%22%22" >
    <img src="<actinic:variable name="ProductThumbnailImageFileName" />" alt="<actinic:variable name="ProductName" />" />
    </actinic:block>
    Apply the changes to the layout.
    The layout will now use the 'Thumbnail' image, if available.
    but that seems to afect the products too and its the section i want to thumnail image not the products

    any ideas please
    thanyou very much in advance

    #2
    Without delving into what you have done, I think you have to step back to examine your hierarcy, it seems to me you are trying to use the same code at both product and section levels.

    Comment


      #3
      thankyou for your reply wasnt to sure what you mean but you did give me an idea to change the section tree and add a section before and name it along with from price with thumbnail works great

      Comment

      Working...
      X