- Posts: 25
- Thank you received: 0
Getting Custom Fields to Display in Back End Listing
- mjs23112005
-
Topic Author
- Offline
Less
More
3 years 9 months ago #347550
by mjs23112005
Getting Custom Fields to Display in Back End Listing was created by mjs23112005
-- HikaShop version -- : HikaShop Business 4.7.0 [2211181750]
-- Joomla version -- : Joom 3.10
HI,
I am trying to get a custom filed to display in the back end listing. I have created the custom fields and can see the column header in the back end listing. I can also see the custom text when going into an order, but nothing appears in the column in the back end listing,
I have followed other posts such as checking database, adjusting settings, resaving etc.
The custom text we would like should appear when order placed with a certain shipping method, but on all test it does not populate the column. But is on the order additional information.
Please see attached.
Thanks
Mike
-- Joomla version -- : Joom 3.10
HI,
I am trying to get a custom filed to display in the back end listing. I have created the custom fields and can see the column header in the back end listing. I can also see the custom text when going into an order, but nothing appears in the column in the back end listing,
I have followed other posts such as checking database, adjusting settings, resaving etc.
The custom text we would like should appear when order placed with a certain shipping method, but on all test it does not populate the column. But is on the order additional information.
Please see attached.
Thanks
Mike
Please Log in or Create an account to join the conversation.
3 years 9 months ago #347555
by nicolas
Replied by nicolas on topic Getting Custom Fields to Display in Back End Listing
Hi,
The type "custom text" is there for you to be able to add custom text on the form where the custom fields are being displayed.
A custom text custom field won't display anything on a listing.
To do what you want, you need to do two things:
- create a custom field of the table "order" and of the type "text".
- create a mass action with a trigger "after an order is created", and a trigger "after an order is updated", a filter on the order_shipping_id column with the value being equal to the id of the shipping method you're targetting, and an action "update the values" on the column of your custom field and the value being the text you want to be displayed on the listing for the orders made with that shipping method.
Note that it will only apply to new orders or orders you'll modify after setting up the mass action. Also, at least 1 order has to have the custom field filled for the column to be displayed on the listing.
The type "custom text" is there for you to be able to add custom text on the form where the custom fields are being displayed.
A custom text custom field won't display anything on a listing.
To do what you want, you need to do two things:
- create a custom field of the table "order" and of the type "text".
- create a mass action with a trigger "after an order is created", and a trigger "after an order is updated", a filter on the order_shipping_id column with the value being equal to the id of the shipping method you're targetting, and an action "update the values" on the column of your custom field and the value being the text you want to be displayed on the listing for the orders made with that shipping method.
Note that it will only apply to new orders or orders you'll modify after setting up the mass action. Also, at least 1 order has to have the custom field filled for the column to be displayed on the listing.
Please Log in or Create an account to join the conversation.
- mjs23112005
-
Topic Author
- Offline
Less
More
- Posts: 25
- Thank you received: 0
3 years 9 months ago #347568
by mjs23112005
Replied by mjs23112005 on topic Getting Custom Fields to Display in Back End Listing
That makes sense, and works perfectly. Thank You.
Please Log in or Create an account to join the conversation.
Time to create page: 0.216 seconds