- Posts: 25
- Thank you received: 0
Custom field to Variable
10 years 5 months ago #243131
by ingjjaa
Custom field to Variable was created by ingjjaa
-- HikaShop version -- : 3.5.6
-- Joomla version -- : 3.5.2
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : Get custom fields to variable
HI i have create a custom field in the product page call 'principal' which would be 1 to 3 (number) the idea of that field is that i could evaluate with php code using if and is that field is 1 the cell background would be green, else it would be red.
My problem is that i don't know how to get the value of the that custom field in the view listing_table
would you help me please i just need to transfer the value of the fiel to a varibale into php code
-- Joomla version -- : 3.5.2
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : Get custom fields to variable
HI i have create a custom field in the product page call 'principal' which would be 1 to 3 (number) the idea of that field is that i could evaluate with php code using if and is that field is 1 the cell background would be green, else it would be red.
My problem is that i don't know how to get the value of the that custom field in the view listing_table
would you help me please i just need to transfer the value of the fiel to a varibale into php code
Please Log in or Create an account to join the conversation.
10 years 5 months ago #243151
by nicolas
Replied by nicolas on topic Custom field to Variable
Hi,
You can find that value in the variable $this->row->principal in listing_table.
You can find that value in the variable $this->row->principal in listing_table.
Please Log in or Create an account to join the conversation.
10 years 4 months ago #243361
by ingjjaa
Replied by ingjjaa on topic Custom field to Variable
I am develoment to reports in backend in the view Show php is just a query so simple but i need get the order id or the order number, how could i transfer the code if to a pho variabl call $order_yo or wahtever
Please Log in or Create an account to join the conversation.
10 years 4 months ago #243365
by nicolas
Replied by nicolas on topic Custom field to Variable
Hi,
I'm sorry but I don't understand your question.
Can you provide more details and/or some screenshots of what you're talking about ?
I'm sorry but I don't understand your question.
Can you provide more details and/or some screenshots of what you're talking about ?
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds