custom filed in categury listing

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #205879

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.6.0

hi ,
i need a custom filed below each product in category listing .
i need this custom filed in one category and if i put code this will show for all the shop .

tanls


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”

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

  • Posts: 83860
  • Thank you received: 13578
  • MODERATOR
9 years 11 months ago #205954

Hi,

You can create a custom field of the table "item" via the menu Display>Custom fields in HikaShop. You can restrict it to a category if you want with its categories setting.
Make sure that the "display item fields" option of your products listing menu is activated and you'll then see it on the listing.

The following user(s) said Thank You: armanemadi

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

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #205971

Hi nicolas
i do it , a little box show in category and ready to fill by user ,
i want to this filed fill by admin and it be read only in front end . i put i readonly for frontend but where should i put data on it ,
when i want to create new product or when i edit old one , the filed will not show in product page ?
it should be in custom filed place ?

tanks


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #205986

Hello,
If you want it to be filled by administrators, you should set an access level and restrict it to your administrator group.

when i want to create new product or when i edit old one , the filed will not show in product page ?
it should be in custom filed place ?

Can you tell me how do you exactly want your field to be used ?
Note that if you want :
- to fill a field for your product
- to display it through your product detail page
The best solution will be to use a PRODUCT custom field, to fill it through your back-end product configuration page and they'll be displayed through your product detail page.

Last edit: 9 years 11 months ago by Mohamed Thelji.

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

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #206125

Hi
i need a custom files show in categuri listing
display --> item . that position is very good for me , it show exactly where i want , but that filed complete with user . i want this filed fill by admin and only shown to user . no custom filed is not good for me


regards


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #206139

Hi,
So in your case the best solution will probably be to directly use some code customization through the files of the "product" view via "Hikashop->Display->Views".
But note that if your really want your admin accounts to edit their product custom fields through your front-end, the solution can be to directly use the HikaMarket front-edition component : www.hikashop.com/extensions/hikamarket-front-end.html

The following user(s) said Thank You: armanemadi

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

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #206320

hi ,
i need a custom filed below each product in category listing .
i need this custom filed in one category and if i put code this will show for all the shop .

i dont want admin fill custom filed in front end , i just need a custom filed or whatever you call it that this filed shown in category listing
category listing contain : product name , price , buttons and that filed . filed should be fill by admin to help user to find write product . i need this show in listing page . i can that field in title name but i get dirty


tanks


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”

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

  • Posts: 13201
  • Thank you received: 2322
9 years 11 months ago #206323

Hi,

If I understand correctly your needs, the best solution will be to use a custom product field, this way it can be filled in backend by an admin. And then in frontend edit the view "product / listing_img_title" in order to display the content of that field.

So if you named, for example, your field "custominfo" in the view you will just have to use the code:

echo $this->row->custominfo;

This will only display the value, then you can improve the display by adding html tags around the php code, to have for example an input field with a readonly attribute on it.

The following user(s) said Thank You: armanemadi

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

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #206413

hi
tanks , and how to set it just for one category , if i change the code all of category listing will show extra filed
is there any thing like item filed that fill by admin and show just like that


tanks


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”

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

  • Posts: 83860
  • Thank you received: 13578
  • MODERATOR
9 years 11 months ago #206442

Hi,

If you don't enter anything in the field in the product, even if you display its content for the product, nothing will appear on the screen.
So I don't see the problem with that ?
And in the custom product field settings, you can restrict the display of the field in the backend to only the categories you want so that you won't be able to fill it for products not in these categories.

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

  • Posts: 49
  • Thank you received: 0
9 years 11 months ago #206473

hi

may be i cant say what i want !!
images always is more clear , please see the attach


tanks


With them the Seed of Wisdom did I sow,
And with my own hand labour’d it to grow:
And this was all the Harvest that I reap’d—
“I came like Water, and like Wind I go.”
Attachments:

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

  • Posts: 83860
  • Thank you received: 13578
  • MODERATOR
9 years 10 months ago #206623

Hi,

When you edit your custom item field via the menu Display>Custom fields, you can use the "categories" area in order to select the categories for which you want the custom field to display. It won't be displayed for products in other categories.

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

Time to create page: 0.112 seconds
Powered by Kunena Forum