how to disable fields on the front end?

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241342

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

moving this from hikamarket

2.also you have an option on the product listing menu for Custom item fields. it say Inherit, Yes, No. but even if a click on No it still appears.
what to do?

example on menu 1 i want custom fields to display but not on menu 2. So i configure the menu for custom fields to NO but the custom fields still appear.


thanks again

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

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
7 years 11 months ago #241373

Hi,

First, please make sure that you set the display settings of the custom field like you want and save the settings of the custom field.
Then, if you still have the problem, can you provide a screenshot of the settings of your custom field, of your menu item, and a link to the page with the issue ?

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241395

hi again please check the settings

the settings for the custom fields



settings for the menu



Part of the message is hidden for the guests. Please log in or register to see it.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
7 years 11 months ago #241507

Hello and sorry for the late reply,

Are you sure that you disabled the "Custom item fields" of the content menu which have the ID number "1697" ?

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241515

yup here, please check

Attachments:

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

  • Posts: 4557
  • Thank you received: 613
  • MODERATOR
7 years 11 months ago #241584

Hello,

Can you try to set "Front-end Listing" to "No" in your custom field back end configuration like on this screenshot :



Hope this will solve your trouble for now, so I'm awaiting news from you.

Regards

Attachments:
Last edit: 7 years 11 months ago by Philip.

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241606

Can you try to set "Front-end Listing" to "No" in your custom field back end configuration like on this screenshot :


yup that setting is working but it won't solve my problem. i need some custom fields to appear on the menu. if i disable the custom link on the front end listing it wont appear on the listings menu

can we fix this bug? i need this function.

By the way it doesnt work on modules as well...

thanks

Last edit: 7 years 11 months ago by ronron.

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241677

hi,

friendly bump.

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

  • Posts: 4557
  • Thank you received: 613
  • MODERATOR
7 years 11 months ago #241680

Hello,

Sorry for the delay, we are working on this because it's seems that you find here a bug, and so we will provide quickly a bug fix for this issue.
I know that this answer isn't enough for your current trouble...
May I suggest you before this fix to use some Css rule in order to hide the custom field when it don't fit your needs ?

Regards

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #241899

do we have an ETA for this?

also how do i achieve your recommendation using css? css for modules? css for menus? if i add for example

dl.hikashop_product_custom_code {display:none !important;} to the css then all custom fields with this will not appear.

thanks

Last edit: 7 years 11 months ago by ronron.

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

  • Posts: 4557
  • Thank you received: 613
  • MODERATOR
7 years 11 months ago #241917

Hi,

Ah, I see. I had overlooked the table of the custom field, and by proceed some test with your configuration I realize my error, sorry for that.

That custom fields display option in the menu item is for custom item fields not custom product fields. So that's normal that it doesn't change anything for your custom field.
You need to disable the display of the custom field on the listings ( Front end listing to No ), and edit the file "listing_img_desc" of the view "product" via the menu Display>Views and add such code:

global $Itemid;
if($Itemid==XXX){
 echo $this->row->YYY;
}
Note : With this you will create an override view that won't be modify by updating HikaShop.

where XXX is the id of the current menu item and YYY the column name of the custom field and that will display the custom field only on that menu item.

Hope this will solve your issue.

Regards

Last edit: 7 years 11 months ago by Philip.

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #242037

thank you but the only thing displayed is the value of the row with out the label.

this is the code i used

global $Itemid;
if($Itemid==1697){echo $this->row->custom_price;}

if i use this nothing happends

global $Itemid;
if($Itemid==1697){echo $this->row->hikashop_product_custom_fob_price_line;}

what code should i use to include the label?

thanks

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

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
7 years 11 months ago #242064

Hi,

This was just an example. If you want to have the label, just add it in the echo. like that:

global $Itemid;
if($Itemid==1697){echo 'Label of my custom field:'. $this->row->custom_price;}

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

Time to create page: 0.106 seconds
Powered by Kunena Forum