Skip to main content

Display a SINGLE custom field

10 years 2 months ago #250586 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

Please Log in or Create an account to join the conversation.

10 years 2 months ago - 10 years 2 months ago #250634 by Philip
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
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
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

Please Log in or Create an account to join the conversation.

10 years 2 months ago #250665 by nicolas
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.

Please Log in or Create an account to join the conversation.

10 years 2 months ago #250875 by lensky
thank you!!
now it works perfectly

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum