Product CUSTOM Fields

  • Posts: 77
  • Thank you received: 3
12 years 2 weeks ago #83688

We need the Custom Fields to be displayed on separate areas on Sales Page.
As apposed to under the specifications tab when using tubular for example.

For Example:
We are using No number TABS
Ideally we would like the OUTPUT of EACH custom field value to be displayed
On it`s own tab. These field values will also be dynamic, depending on the product.

Thank YOU

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
12 years 1 week ago #83964

Hi,

In the file "show_default" (for the default layout) or "show_tabular" (for the tabular layout) that you can edit via the menu Display->Views, you can add such code to display the content of a custom field:
<?php echo $this->fieldsClass->show($this->fields, $this->element->CUSTOM_FIELD_COLUMN_NAME); ?>

And if you don't want to display the normal specification area, you can remove that code:
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();

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

  • Posts: 77
  • Thank you received: 3
11 years 11 months ago #86851

When I attempt to apply this code ( your idea ) now on to the product / listing_img_title in view
in order to display a custom feild on a menu listing/ category listing
It whites out the page and only shows the 1st product.

Is this because of the custom entire block or something not being in this layout by default ?

All I want to do is simply show the contents of a custom field.(from: product table,field type:text) NOT as a text box or anything ....

I wanted to use a custom field in order to show a kind of SUB title.
Just static text entered when adding new product, that will show on a listing.

Thanks Again ...

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
11 years 11 months ago #86863

In that case you can use that code:
<?php echo $this->row->CUSTOM_FIELD_COLUMN_NAME; ?>

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

  • Posts: 77
  • Thank you received: 3
11 years 11 months ago #87014

Sweet ! Thank YOU nicolas ! that worked......

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

Time to create page: 0.069 seconds
Powered by Kunena Forum