[Solved]Costum Fields

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48273

Hello all,

How can i show a costum field ind table view of a product catagory?

I have disabled the pictures.

And instead of showing the pictrues i now want to show a costum field.

Maybe this is possible?

Thx

Andreas

Last edit: 12 years 8 months ago by CMS-Buttler.

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48366

In the hikashop options of your products listing menu/module you will find an option on the right area in order to display custom item fields if you're using the latest version of HikaShop.

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48397

Yes i dit choose yes.

But nothing changed in the frontend

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48401

Are you sure that you're editing the correct product listing options ?

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48457

Yes iam

when i active or deactive the link to product option it changes.

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48470

Then, you must have modified one of the view files of the product view before updating HikaShop. Do a backup of your modifications in the files of that view, delete them via the menu Display->Views and try again.

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48513

Hello Nicolas,

in product view it is working fine.

i need the costum field in listing_table instead of the thumbnails

thx

Andreas

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48560

If it's a custom field of the table "item", it will work with that option unless you've edited that view before updating hikashop.
If it's a custom field of the table "product", you will have to edit that view file in order to display the custom field yourself. It's quite easy:
echo $this->row->CUSTOM_FIELD;

where CUSTOM_FIELD is the column name of your custom product field.

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48589

Hi Nicolas.

I have two problems

Fot your first solution i need a Costum field type "item"

I have this but i cant import.

If the field ist type product it wors fine.

For the second solution.

I am not able to get a new column for the costum field un front of the name column.

Maybe you could help

Thx

Andreas

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48661

The custom fields of the table "item" are set by users for products in their cart. So the data is of course not attached to the product but to the link between the cart and the product, which then becomes the product in the order.
So there is no meaning in importing a value into such custom field since it's the customers who enter data for it, not you.

I didn't understand your second problem. Could you explain more what you want to do ? Maybe with a screenshot ?

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48667

Hi Nicolas,

On the Screenshot there is the columns "Produkt"

Before this column i want to have the costum field column.

The heading of this column should be "Artikelnummer"

In this column the artikelnummer field from costum fields should be displayed.

Thx

Attachments:

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48693

Could you do a screenshot of your custom field so that we can see what you did ?

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48725

Here is the screen

Attachments:

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48769

So you need to add the code:

echo $this->row->produktnummer;

Make sure that you enter something for it in the product. You can use the column produktnummer in your CSV in order to add data to it.

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48829

okay thx

but how do i add another column in the table list


cant find out myself

:-(

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

  • Posts: 83124
  • Thank you received: 13419
  • MODERATOR
12 years 8 months ago #48831

See the column for the product name:
<th class="hikashop_product_name title" align="center">
<?php echo JText::_( 'PRODUCT' );?>
</th>

Just do the same after it:
<th class="hikashop_product_name title" align="center">
<?php echo JText::_( 'My column' );?>
</th>

Then, in the same manner, you see the display of the product name from:
<td class="hikashop_product_name_row">
<span class="hikashop_product_name">

to:
</span>
</td>

Just add the same code after it with the line of code I gave you in my previous post.
It's more about HTML than coding...

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

  • Posts: 203
  • Thank you received: 0
12 years 8 months ago #48914

Thx

you saved may day

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

Time to create page: 0.090 seconds
Powered by Kunena Forum