Link Field in Custom Fields

  • Posts: 15
  • Thank you received: 0
  • Hikashop Business Hikashop Style
2 months 3 weeks ago #358882

-- url of the page with the problem -- : whatfroggybakes.com.au/
-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.0.2
-- PHP version -- : 8.2.15

Hi

i want to create a link - some text that is a link on each product page - so that user can click a link to check a chart of information.

I attempted to do this using a Display->Custom Fields
chosing Link Field and then entering the URL and Display Text.

however it displays as per the attached image - it is just showing URL text and Display Text and there is no URL link

see settings - also attached

what am i doing wrong

peter

Attachments:

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
2 months 3 weeks ago #358890

Hi,

A custom field of the table "item" is to allow the user to provide information to you, not display display static information to him.
That's why you see the input fields on the product page.
You should either:
- use a custom item field of the type "custom text", where you provide the HTML for the link
- use a custom product field of the type "link", and then you need to provide the URL in each product (if you want different links for different products)
- directly edit the view file product / show_default via the menu Display>Views and add your link where you want it.

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

  • Posts: 15
  • Thank you received: 0
  • Hikashop Business Hikashop Style
2 months 3 weeks ago #358989

So the adding a Product \ Link to customer fields appears to work. But it comes under a heading of Specifications... how do i remove this heading and just have the field only??



Peter

Attachments:
Last edit: 2 months 2 weeks ago by nicolas.

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

  • Posts: 4540
  • Thank you received: 612
  • MODERATOR
2 months 2 weeks ago #359009

Hello,

If you want to remove the label in your frontend page, you can use a custom css, learn more about how to process, here .

in details, your command have to use the "display" command, example :

.Your_html_label {
    display: none;
}
Where "Your_html_label" is your html class of your element, use your navigator inspector tool to see your Html.
Regards

Last edit: 2 months 2 weeks ago by Philip.

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

  • Posts: 1
  • Thank you received: 1
2 months 2 weeks ago #359067

Inspect the HTML output of the product page to ensure that the link markup is being generated correctly. Right-click on the page, select "Inspect" (or a similar option depending on your browser), and navigate to the section where the link should appear. Verify that the <a> tag is present with the correct href attribute.

The following user(s) said Thank You: Philip

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

Time to create page: 0.081 seconds
Powered by Kunena Forum