- Posts: 198
- Thank you received: 4
How to hide one custom field in checkout view?
8 years 4 months ago #295925
by arnask
How to hide one custom field in checkout view? was created by arnask
i have some different custom fields in table Order. And one of them i don't need to display in checkout window. I only need to display it in frontend order details page. So how to hide one field in checkout window? I think i need to edit some view file, but what code do i need to type for hiding X custom field?
Please Log in or Create an account to join the conversation.
8 years 4 months ago #295926
by nicolas
Replied by nicolas on topic How to hide one custom field in checkout view?
Hi,
Go in the settings of the custom field. There, turn off the "frontend" setting and make sure that the "frontend order details page" setting is activated.
That way, you'll get it in the order details page but not on the checkout.
Go in the settings of the custom field. There, turn off the "frontend" setting and make sure that the "frontend order details page" setting is activated.
That way, you'll get it in the order details page but not on the checkout.
Please Log in or Create an account to join the conversation.
8 years 4 months ago #295952
by arnask
Replied by arnask on topic How to hide one custom field in checkout view?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 4 months ago #295960
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to hide one custom field in checkout view?
Hello,
The solution will be to directly edit the "Show" file of your "Order" view of your front-end template via "Hikashop->Display->Views" and change that line :
By :
Thank you for your feedback !
PS: We just added that fix through the last HikaShop version.
The solution will be to directly edit the "Show" file of your "Order" view of your front-end template via "Hikashop->Display->Views" and change that line :
Code:
if(!@$oneExtraField->field_frontcomp || empty($this->order->$fieldName))
By :
Code:
if(empty($this->order->$fieldName))
Thank you for your feedback !
PS: We just added that fix through the last HikaShop version.
The following user(s) said Thank You: arnask
Please Log in or Create an account to join the conversation.
8 years 4 months ago #296031
by arnask
Replied by arnask on topic How to hide one custom field in checkout view?
That works. Thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds