Custom Field Link removing https on save
- jameswadsworth
-
Topic Author
- Offline
Less
More
1 year 1 month ago #368021
by jameswadsworth
Custom Field Link removing https on save was created by jameswadsworth
-- HikaShop version -- : 6.0.0
-- Joomla version -- : 4.4.10
-- PHP version -- : 8.1
Hi, I've created a custom field link for the products. In the default field URL I've put in a value:
When I save the custom field link, the https part of the field is stripped from the defalut value URL as in screenshot. Then if I go to any product, the field is already filled out with the default values but without https and the field will not display in the frontend until I add https to the url. When saving the product, the https part of the URL is saved correctly. This means going into each product, adding https and saving.
Is this a bug?
Thanks James
-- Joomla version -- : 4.4.10
-- PHP version -- : 8.1
Hi, I've created a custom field link for the products. In the default field URL I've put in a value:
When I save the custom field link, the https part of the field is stripped from the defalut value URL as in screenshot. Then if I go to any product, the field is already filled out with the default values but without https and the field will not display in the frontend until I add https to the url. When saving the product, the https part of the URL is saved correctly. This means going into each product, adding https and saving.
Is this a bug?
Thanks James
The following user(s) said Thank You: oxido
Please Log in or Create an account to join the conversation.
1 year 1 month ago #368025
by nicolas
Replied by nicolas on topic Custom Field Link removing https on save
Hi,
Yes and no. The goal of a link custom field is to provide a text and a URL so that the field can display it as a link.
So, if you only use it to provide a URL, the system doesn't work properly as it is not meant to be used that way.
In that case, you could use a "text" field to provide the URL, and you could the "format" setting to make it into a link if necessary for the frontend display.
Now, following your message, I've worked on this so that the field behave properly when using it only with a URL. I've added the patch for that on our end.
So, if you download the install package of HikaShop on our website and install it on yours, you'll get the patch and it will work properly with your use case.
Yes and no. The goal of a link custom field is to provide a text and a URL so that the field can display it as a link.
So, if you only use it to provide a URL, the system doesn't work properly as it is not meant to be used that way.
In that case, you could use a "text" field to provide the URL, and you could the "format" setting to make it into a link if necessary for the frontend display.
Now, following your message, I've worked on this so that the field behave properly when using it only with a URL. I've added the patch for that on our end.
So, if you download the install package of HikaShop on our website and install it on yours, you'll get the patch and it will work properly with your use case.
The following user(s) said Thank You: oxido
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
1 year 1 month ago #368048
by jameswadsworth
Replied by jameswadsworth on topic Custom Field Link removing https on save
Hi Nicolas,
I can confirm that the custom field link is working as I expected it.
Thanks, James
I can confirm that the custom field link is working as I expected it.
Thanks, James
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.206 seconds