- Posts: 82
- Thank you received: 1
Display a SINGLE custom field
10 years 2 months ago #250586
by lensky
Display a SINGLE custom field was created by lensky
-- url of the page with the problem -- :
www.trichi.it/maglia/maglia-top-down/pat...cache-col-con-frange
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.0
-- Browser(s) name and version -- : Firefox
hi
how can I display a single custom field?
I already have the full custom field block working but I want to duplicate one of them in bigger size to make it more visible.
how can I reach this target?
thank you
Elena
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.0
-- Browser(s) name and version -- : Firefox
hi
how can I display a single custom field?
I already have the full custom field block working but I want to duplicate one of them in bigger size to make it more visible.
how can I reach this target?
thank you
Elena
Please Log in or Create an account to join the conversation.
10 years 2 months ago - 10 years 2 months ago #250634
by Philip
Replied by Philip on topic Display a SINGLE custom field
Hello,
I'm not sure to understand your needs, but here you can see a tutorial to learn more about custom fields.
If that's not enough, I need more elements like what kind of custom field (address, product, order, item...etc).
Where do you want to display it ?
For what purpose ?
Awaiting news from you.
Regards
I'm not sure to understand your needs, but here you can see a tutorial to learn more about custom fields.
If that's not enough, I need more elements like what kind of custom field (address, product, order, item...etc).
Where do you want to display it ?
For what purpose ?
Awaiting news from you.
Regards
Last edit: 10 years 2 months ago by Philip.
Please Log in or Create an account to join the conversation.
10 years 2 months ago #250661
by lensky
Replied by lensky on topic Display a SINGLE custom field
Hi Philip,
thank you for this answer.
I set a lot of custom fields for my product, as you can see in the screenshot attached. What I want (but I'm not a programmer...) is the string for calling a single custom field to put in other parts of the template, in this case I want to put the custom field 'language' near the title of my item.
thank you so much for your support
elena
thank you for this answer.
I set a lot of custom fields for my product, as you can see in the screenshot attached. What I want (but I'm not a programmer...) is the string for calling a single custom field to put in other parts of the template, in this case I want to put the custom field 'language' near the title of my item.
thank you so much for your support
elena
Please Log in or Create an account to join the conversation.
10 years 2 months ago #250665
by nicolas
Replied by nicolas on topic Display a SINGLE custom field
Hi,
You can edit the file "show_default" via the menu Display>Views and add such code near the beginning:
<?php echo $this->element->XXX; ?>
where XXX is the column name of the custom field.
You can edit the file "show_default" via the menu Display>Views and add such code near the beginning:
<?php echo $this->element->XXX; ?>
where XXX is the column name of the custom field.
Please Log in or Create an account to join the conversation.
10 years 2 months ago #250875
by lensky
Replied by lensky on topic Display a SINGLE custom field
thank you!!
now it works perfectly
now it works perfectly
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds