Announcement

Collapse
No announcement yet.

Limiting length of full description

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

    Limiting length of full description

    I see in the AUG that you can limit the length of the main description in the layouts.

    Is there an easy way to do this for each item that I have already entered in to Catalog?

    It seems that you have to alter the ProductLayout when you enter the details and not after?

    Is that right?

    I do not feel like going through the whole 500 items one by one

    Andrew
    Jewellery247.co.uk
    AndrewBerry.com

    W: http://www.WelshGoldOnline.co.uk
    W: http://www.jewellery247.co.uk
    W: http://www.AndrewBerry.com

    #2
    you can wrap the variable in a php function that limits the length of the string.

    PHP Code:
     $string "Your long string here";
    $max 100;
    substr($string,0,strpos($string," ",$max)); 
    when you edit its template, it should reflect in all items that use the template

    Comment


      #3
      Originally posted by gabrielcrowe
      when you edit its template, it should reflect in all items that use the template
      Yep - ensure you are using the same layout for the products as once installed it will replicate through all other products using that layout. If you have created a new layout with the code you can set the new layout as the default at the top of the site and this will be used as the default parent layout until you then override.


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment

      Working...
      X