Short description in table layout

  • Posts: 46
  • Thank you received: 1
11 years 3 months ago #117450

Hi

Using the table layout to show my products i would like to add a short description of 150 chars to the table layout.

Is there an option to do this or if not which file do i need to edit?

Many thanks

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #117454

Hi,

I think that you'll probably find your answer there .

Please Log in or Create an account to join the conversation.

  • Posts: 46
  • Thank you received: 1
11 years 2 months ago #117462

Thanks for that.

Any ideas on how to pass in only the first 150 characters though of the description text?

Please Log in or Create an account to join the conversation.

  • Posts: 46
  • Thank you received: 1
11 years 2 months ago #117463

i think this echo substr($this->row->product_description,0,150); ?>

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #117483

Sure, using the substr PHP function will do the job :) :

<td class="hikashop_product_description_row">
              <?php
          echo substr($this->row->product_description, 0, 150); ?>
            </td>

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum