Category Table - Custom Field Display

  • Posts: 260
  • Thank you received: 25
11 years 9 months ago #95177

Hi All,

I am wondering how to get a custom filed to display on a Category Table.

I read here that it is done via editing the product/listing_table.php but he doesnt mention how (dont you just hate that :) )

Any clues most welcome!


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 83050
  • Thank you received: 13410
  • MODERATOR
11 years 9 months ago #95207

Hi,

How is configured your custom field ? Could you do a screenshot ? And could you do a screenshot of the listing where you want to add it ?

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

  • Posts: 260
  • Thank you received: 25
11 years 9 months ago #95214

Hi Nicolas,

Sorry I should have thought of including screenshots:

1) Front end - Cat Table (blue is where I am thinking/hoping)



2) Back End (Custom Field)



Possible?


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Attachments:

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

  • Posts: 83050
  • Thank you received: 13410
  • MODERATOR
11 years 9 months ago #95229

Hi,

Your custom field needs to be of the type "text" and not "custom text" so that you can enter different text for different products. Otherwise, if you want the same text for all the products, there is no need for a custom field... you can directly add the text in the view file.

With a custom field of the type "text" and the column name "weight", you can simply add the line:
<?php echo $this->row->weight; ?>
after the code

echo $this->row->product_name;
							if($this->params->get('link_to_product_page',1)){ ?>
								</a>
							<?php } ?>
						</span>
in the view file "listing_table" via the menu Display->Views.

The following user(s) said Thank You: sambob

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

  • Posts: 260
  • Thank you received: 25
11 years 9 months ago #95398

Hi Nicolas,

Perfect!

Appreciate the help on this project.

Great support as always


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

Time to create page: 0.071 seconds
Powered by Kunena Forum