[Skip to main content](#vessel-content)

#   Characteristics display

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 1 month ago [\#249697](#249697) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249697 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

You can try it here: [ kyra.lt/demoadmin/megztiniai/golfas-dragon-melyna](https://kyra.lt/demoadmin/megztiniai/golfas-dragon-melyna)

I also have tried with default protostar template and there is same error...
You can see that facebook doesn't work on the right side...There is also missing back to top button which should be on the right bottom.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

10 years 1 month ago [\#249728](#249728) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249728 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

The issue with the javascript comes from the characteristics HTML missing on the page. There is no radio inputs on the page and that's what creates the problem.
This is not possible with the default code of HikaShop so it means that you must have modified it some way to create that problem.
Display again the radio buttons like it is by default and it will work again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 1 month ago [\#249757](#249757) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249757 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

I have not changed any html relating to radio buttons. Only some css display:none;....
I think I have found the problem. It definitely comes from your code provided in this topic. I have found one of my backups which has old characteristic.php file and there is no js error with it.

So I have downloaded hikashop 2.6.4 and I see that this modification has been applied.
This is why I had no changes when tried with "old one". After I found issue I downloaded hikashop 2.6.4 and I thought it still use old characteristics.php file....my bad I didn't look into code....

Could you please check on your end Nicolas. You will find same js error.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

10 years 1 month ago [\#249826](#249826) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249826 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

No, I do not get the same js error.
And so do you.
Look here for example:
[ kyra.lt/demoadmin/tampres/leginsai-pinky-pilka](https://kyra.lt/demoadmin/tampres/leginsai-pinky-pilka)
You don't get the error on that page, even though it is the same website and you also have characteristics with radios and you have that modification in place.
As I said, the problem is that there are no radio buttons for the characteristics on that page and that should not happen normally:
[ take.ms/L1u6T](http://take.ms/L1u6T)
Instead of just Nerastra, you should have the radios of the characteristics.
Since there are no radios, the javascript we added creates a javascript error because it doesn't expect to not find any.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 1 month ago -  10 years 1 month ago [\#249832](#249832) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249832 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

So after some digging it looks like i found from where this issue is coming.

If in System-&gt;display-&gt;Default parameters for products-&gt;Display out of stock products set to "YES" there is no js error and radio button is displayed as per you advise. If set to "NO" i see "No values found" which i had renamed for my language to "Nerasta" and JS error occurs.

If set to "YES" another issue arrives...Default variant which is sold out now shows on product page and is selected by default and ofcourse with sold out message. Same issue as before your code given.
If default product is unpublished all fine.....

I have attached some screenshots.

Thanks

- [ ![alllfine.png](/forum/attachment/33421) ](/forum/attachment/33421 "alllfine.png") [ ](/forum/attachment/33421?download=1 "alllfine.png")
- [ ![wrong.png](/forum/attachment/33422) ](/forum/attachment/33422 "wrong.png") [ ](/forum/attachment/33422?download=1 "wrong.png")

Last edit: 10 years 1 month ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

10 years 1 month ago [\#249833](#249833) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249833 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

Ohh, so the product is sold out ? Now I begin to understand the problematic and why you have no characteristic selection on that page.
Indeed, in that case, it should not trigger an error.
You'll ahve to change the line: Code:

$js = "var el = document.querySelector('[name=\"".$id."\"]'); el.checked = true; hikashopUpdateVariant(el);";

to: Code:

$js = "var el = document.querySelector('[name=\"".$id."\"]'); if(el) el.checked = true; hikashopUpdateVariant(el);";

And that will remove the error for products without any stock.

The following user(s) said Thank You: [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

10 years 1 month ago -  10 years 1 month ago [\#249921](#249921) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249921 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

Yep, all works fine now!
Product with all variants sold out shouldn't have any values to select....Sorry maybe I was not clear enough at first.

Thank you Nicolas for looking into this.
I hope this little fix will be added by default?

Kind Regards

Last edit: 10 years 1 month ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 1 month ago [\#249923](#249923) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Characteristics display](/forum/4-how-to/886276-characteristics-display?start=20#249923 "Hi,  I am looking to customize my product page as per this docs and same would apply for size selection. :    www.hikashop.com/support/documentation/2...isplay-by-color.html  So question. Would it be possible to apply this only for product page and keep words in module filtering?  We have 2 characteristics. One is for size and other for color. As we create product for every color there is no need to display color characteristic on product page. Is there a way to hide it? I have looked into css but it looks like there is no class applied...  Thanks")*

Hi,

Yes, the patch will be integrated into HikaShop.

Regards,

PS : I also wish to release HikaShop 3 asap ![:)](/media/kunena/emoticons/8.png ":)")

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4NjI3Ni1jaGFyYWN0ZXJpc3RpY3MtZGlzcGxheT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.139 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
