Display a SINGLE custom field

  • Posts: 82
  • Thank you received: 1
8 years 5 months ago #250586

-- 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.

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
8 years 5 months ago #250634

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: 8 years 5 months ago by Philip.

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

  • Posts: 82
  • Thank you received: 1
8 years 5 months ago #250661

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

Attachments:

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
8 years 5 months ago #250665

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.

  • Posts: 82
  • Thank you received: 1
8 years 5 months ago #250875

thank you!!
now it works perfectly

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

Time to create page: 0.060 seconds
Powered by Kunena Forum