Skip to main content

[Solved]Costum Fields

More
14 years 5 months ago - 14 years 4 months ago #48273 by CMS-Buttler
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: 14 years 4 months ago by CMS-Buttler.

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

More
14 years 4 months ago #48366 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48397 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
Yes i dit choose yes.

But nothing changed in the frontend

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

More
14 years 4 months ago #48401 by nicolas
Replied by nicolas on topic Re: Costum Fields
Are you sure that you're editing the correct product listing options ?

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

More
14 years 4 months ago #48457 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
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.

More
14 years 4 months ago #48470 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48513 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
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.

More
14 years 4 months ago #48560 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48589 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
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.

More
14 years 4 months ago #48661 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48667 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
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

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

More
14 years 4 months ago #48693 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48725 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
Here is the screen

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

More
14 years 4 months ago #48769 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48829 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
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.

More
14 years 4 months ago #48831 by nicolas
Replied by nicolas on topic Re: Costum Fields
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.

More
14 years 4 months ago #48914 by CMS-Buttler
Replied by CMS-Buttler on topic Re: Costum Fields
Thx

you saved may day

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

Time to create page: 0.281 seconds
Powered by Kunena Forum