- Posts: 50
- Thank you received: 3
Using custom field in language
- stefanfrei
-
Topic Author
- Offline
Less
More
7 years 11 months ago #299696
by stefanfrei
Using custom field in language was created by stefanfrei
Hi,
how can i use a custom field (with the Bottle Size) in the Language-File.
I want to show
Price per Bottle Size. ie. 9.80 € per 0,75 lt
the Bottle Size is in a custom field.
Is there a way to display this?
In every view where the price is displayed.
Thanks,
Stefan
how can i use a custom field (with the Bottle Size) in the Language-File.
I want to show
Price per Bottle Size. ie. 9.80 € per 0,75 lt
the Bottle Size is in a custom field.
Is there a way to display this?
In every view where the price is displayed.
Thanks,
Stefan
Please Log in or Create an account to join the conversation.
7 years 11 months ago #299699
by nicolas
Replied by nicolas on topic Using custom field in language
Hi,
Yes. To know which view file to edit, you can activate the "Display view files" setting of the HikaShop configuration.
Then, you can edit them via the menu Display>Views.
There, you can use :
echo $this->row->XXX;
where XXX is the column name of the custom field to display the value entered for the custom field in the product.
Yes. To know which view file to edit, you can activate the "Display view files" setting of the HikaShop configuration.
Then, you can edit them via the menu Display>Views.
There, you can use :
echo $this->row->XXX;
where XXX is the column name of the custom field to display the value entered for the custom field in the product.
The following user(s) said Thank You: stefanfrei
Please Log in or Create an account to join the conversation.
Time to create page: 0.186 seconds