Skip to main content

How to add text to table display

More
12 years 8 months ago #139092 by mike22
Is it possible to add text to this with after so many signs saying read more?
Or just how to let it display the text in general, but not on the front page?

Many thanks for your help and patience

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

More
12 years 8 months ago #139133 by nicolas
Can you give a link to the page where you want to do that ?

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

More
12 years 8 months ago #139151 by mike22
sorry it was supposed to be linked in the "this" but sth went wrong, here is the link: aedoszaden.nl/hikashop-menu-for-products...ng/category/12-bonen

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

More
12 years 8 months ago #139163 by Mohamed Thelji
Hi,
Can you show me some screenshots of what you really want to do ?

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

More
12 years 8 months ago #139219 by mike22
of course, I had a picture of a website with hikashop I think which had it, but I lost it so I had to recreate it with paint I hope it is clear ;-)

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

More
12 years 8 months ago #139424 by Xavier
Hi,

Yes it is possible, you have to edit the view "product / listing_table" and replace the in the column of the product name "$this->row->product_name" by "$this->row->product_description".

The edition can be done through the menu Display > Views.
Here is some documentation:
hikashop.com/support/153.html

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

More
12 years 8 months ago #139455 by mike22
thank you very much, but how do I now make it so that there is also the product name? and is it possible to cut off the description after a while?

see here how it looks now:
aedoszaden.nl/zaden-catalogus/category/12-bonen

compared to the picture I uploaded only product name need to be added, and perhaps the ... after so many signs but that is not essential

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

More
12 years 8 months ago - 12 years 8 months ago #139460 by Xavier
You can replace:
Code:
<td class="hikashop_product_name_row"> <span class="hikashop_product_name"> <?php if($this->params->get('link_to_product_page',1)){ ?> <a href="<?php echo $link;?>"> <?php } echo $this->row->product_name; if($this->params->get('link_to_product_page',1)){ ?> </a> <?php } ?> </span> <?php if(!empty($this->row->extraData->afterProductName)) { echo implode("\r\n",$this->row->extraData->afterProductName); } ?> </td>
By:
Code:
<td class="hikashop_product_name_row"> <span class="hikashop_product_name"> <?php if($this->params->get('link_to_product_page',1)){ ?> <a href="<?php echo $link;?>"> <?php } echo $this->row->product_name; echo '<br/>'.substr($this->row->product_name,0,200); // replace 200 by the desired length. if($this->params->get('link_to_product_page',1)){ ?> </a> <?php } ?> </span> <?php if(!empty($this->row->extraData->afterProductName)) { echo implode("\r\n",$this->row->extraData->afterProductName); } ?> </td>
Last edit: 12 years 8 months ago by Xavier.

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

Time to create page: 0.238 seconds
Powered by Kunena Forum