How to add text to table display

  • Posts: 23
  • Thank you received: 0
10 years 10 months ago #139092

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.

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 10 months ago #139133

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.

  • Posts: 23
  • Thank you received: 0
10 years 10 months ago #139151

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.

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #139163

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.

  • Posts: 23
  • Thank you received: 0
10 years 10 months ago #139219

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 ;-)

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #139424

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.

  • Posts: 23
  • Thank you received: 0
10 years 10 months ago #139455

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.

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #139460

You can replace:

					<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:
					<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: 10 years 10 months ago by Xavier.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum