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

#   Hint about Characteristic table

##

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago -  9 years 2 months ago [\#276267](#276267) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276267 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")* was created by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")*

hi,

I would like to see Characteristic (color and size) in a table like this

[ ![Size&#95;and&#95;colors.png](/forum/attachment/39797) ](/forum/attachment/39797 "...and&#95;colors.png")

.

Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.

Is there any boy there have done it before or have seen a template there have this feature.

If not how hard will it be to do, if any one know.

Thanks in advanced

P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.

- [ ![Size&#95;and&#95;colors.png](/forum/attachment/39797) ](/forum/attachment/39797 "...and&#95;colors.png") [ ](/forum/attachment/39797?download=1 "...and&#95;colors.png")

Last edit: 9 years 2 months ago by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

9 years 2 months ago [\#276271](#276271) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276271 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi,

With the "characteristic selection method" setting set to "table" you'll indeed get something like that.
And you'll be able to see which ones are in stock and which ones aren't if you have the "Display out of stock products" setting turned off in the HikaShop configuration as only the cells with enough stock will have the radio selector and the variants without stock will have an icon instead showing that the choice is not available.

So as far as I can see, that's exactly what you want.

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#276316](#276316) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276316 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

I am agree it s a huge step in the right direction ![:-)](/media/kunena/emoticons/3.png ":-)")

However there was one thing you mention i do not cant create. you said if Iset the display out of stock to off the system will show and image of the iterms ´there on are in stock. .

But it do not do see that you can see it here [ www.screencast.com/t/zhYkpyw1](https://www.screencast.com/t/zhYkpyw1)

Tried both on and off

Is there an easy way to change the radio buttons to an "css button" with the value insight the the button, in wich file is the table generatet and is it possible to call the value of one (size) of the characteristic table

reagrds

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

9 years 2 months ago -  9 years 2 months ago [\#276371](#276371) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276371 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hello,

What you asking for will required some customization (via override view on the "*show\_block\_characteristic*" view.
Of course this will required **advanced knowledge on html, php &amp; HikaShop**.

The plan is to modify the way is build the **table html** in order to put the characteristics value instead of radio button.
And for the display finish some **Css** will be to add in the front-end css file.
from this, **2** solutions :
- You have enough skill and you proceed yourself this customization.
- Or, you contact one of our [ **Partner**](https://www.hikashop.com/home/our-partners.html).

Regard

Last edit: 9 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#276474](#276474) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276474 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi and tanks for your reply

Most of the time it a matter of understanding the php code there are made, hope you have a hint to ensure that i am on the right path.

You mention i will some need customization (via override) in "show_block_characteristic" view where do you mean there need customization here due to i am pritty far the have made in the characteristic.php

I have change the type from radio to btn, and added $value-&gt;characteristic_value; in line 153 and to get the default selection to work i need to $value-&gt;characteristic_value in the line below, have tried servel ways but not work, have this something to with show_block_characteristic ?

if($this-&gt;characteristics[$value-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value-&gt;characteristic_id &amp;&amp; !empty($this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id) &amp;&amp; $this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value2-&gt;characteristic_id)

My intention was to give $value-&gt;characteristic_value it own class, then i can manage the rest in CSS

But if the show_block_characteristic also need some change i might not be on the right path.

Reagrds

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

9 years 2 months ago [\#276502](#276502) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276502 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi,

If you know CSS, then you can follow our tutorial here and you should be able to do it on your own:
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

For example, such CSS would do what you want:
.hikashop_product_variant_out_of_stock_span{
background: url(../images/delete2.png) no-repeat;
}
.hikashop_product_variant_out_of_stock{
display: none;
}

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#276683](#276683) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276683 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi and thanks for your reply.

Right now is how to set the default. With a name in this line

have made a name2 = ''.$value-&gt;characteristic_value;

if($this-&gt;characteristics[$value-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value-&gt;characteristic_id &amp;&amp; !empty($this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id) &amp;&amp; $this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value2-&gt;characteristic_id)

I surpose that is the reason that the first box is with no name and

You can see it her [ www.screencast.com/t/eWr9sFxAzP](https://www.screencast.com/t/eWr9sFxAzP)

when that is done can 1 made a class for the $name2 and hide the vaule of other classes

Reagrds

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

9 years 2 months ago [\#276695](#276695) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276695 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi,

I'm not sure what you mean but the solution I proposed should definitely do what you want.
For example:
[ monosnap.com/file/mTCzNWu8jtnxMnXppoFITgOr2ie1wG](https://monosnap.com/file/mTCzNWu8jtnxMnXppoFITgOr2ie1wG)

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#276760](#276760) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276760 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hmm that´s wird i do not get the delete2.png in my table if a prodouct not are on stock - see image ?

How ever what i want is replace the radio button with a box with the size in as showed eairler.

And as told i am pitty close, just need to inset the $name2 = ''.$value-&gt;characteristic_value; in the lines below so it shows the name i the default color/size combination.

if($this-&gt;characteristics[$value-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value-&gt;characteristic_id &amp;&amp; !empty($this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id) &amp;&amp; $this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value2-&gt;characteristic_id)

Have tried some combination with out success

Regards

- [ ![size&#95;table.png](/forum/attachment/39947) ](/forum/attachment/39947 "size&#95;table.png") [ ](/forum/attachment/39947?download=1 "size&#95;table.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

9 years 2 months ago [\#276787](#276787) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276787 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi,

You should have that result if you added the CSS code I told you about and you didn't make any change to the code which might break the way it is supposed to work regarding that. Otherwise, please provide a link so that we can check on that.

Regarding your code modification, I don't understand why you're giving the code of that if.
You said that you wanted to " to give $value-&gt;characteristic_value it own class".
So if I understand correctly, you want to add $value-&gt;characteristic_value in the class of either the span or the input in that line of code: Code:

$radio = "\n\t&lt;span class=\"hikashop_product_characteristic_span".$classspan."\"&gt;&lt;input type=\"radio\" class=\"hikashop_product_characteristic".$class."\" name=\"hikashop_product_characteristic\" id=\"hikashop_product_characteristic".$name."\" value=\"".$name."\" ".$this-&gt;options;

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

- **[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")**
- [![apa2014's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/49908-apa2014 "View apa2014's Profile") Topic Author
- [ Offline](/forum/user/49908-apa2014)

Less More

- Posts: 43
- Thank you received: 0
-
-

9 years 2 months ago [\#276805](#276805) by [apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")  Replied by *[apa2014](/forum/user/49908-apa2014 "View apa2014's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#276805 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi

Here is what my founding are so far.

Have added the line $name2 = ''.$value-&gt;characteristic_value;

And added this in $name = '_'.$value-&gt;characteristic_id.'_'.$value2-&gt;characteristic_id .$name2;

Then i have change the input type from "radio" to "btn"

$radio = "\n\t&lt;span class=\"hikashop_product_characteristic_span".$classspan."\"&gt;&lt;input type=\"btn\" class=................

By this i got the reasult as you can see on the image.

As you can see at the image now is show the value of the characteristic (size) inside the btn, however, as you see in the first one there are no characteristic, and i suppose the reason for that there is there are missing the value field in this line.

if($this-&gt;characteristics[$value-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value-&gt;characteristic_id &amp;&amp; !empty($this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id) &amp;&amp; $this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value2-&gt;characteristic_id) {
$radio .= ' checked';

If i am right can is give the $name2 it own class, the by that ajust the btn with css

I know it might not be the classic way but i might works until you come with html table solution as you concider to do

Regards

- [ ![characteristic.png](/forum/attachment/39963) ](/forum/attachment/39963 "...acteristic.png") [ ](/forum/attachment/39963?download=1 "...acteristic.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

9 years 2 months ago [\#277118](#277118) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hint about Characteristic table](/forum/25-install-update/891575-hint-about-characteristic-table#277118 "hi,  I would like to see Characteristic (color and size) in a table like this  .  Remark, this example are with S,M,XL size type, but it also have to support 36,38,40....... size type.  Is there any boy there have done it before or have seen a template there have this feature.  If not how hard will it be to do, if any one know.  Thanks in advanced  P.S. I am aware of the characteristic table but here it´s show radio bottons but i can´t see what there are in stock and what there not are.")*

Hi,

I don't think that the modifications you're proposing are adapted to what you want...
As I said, you want to change the line: Code:

$radio = "\n\t&lt;span class=\"hikashop_product_characteristic_span".$classspan."\"&gt;&lt;input type=\"radio\" class=\"hikashop_product_characteristic".$class."\" name=\"hikashop_product_characteristic\" id=\"hikashop_product_characteristic".$name."\" value=\"".$name."\" ".$this-&gt;options;

For example: Code:

$radio = "\n\t&lt;span class=\"hikashop_product_characteristic_span".$classspan." btn\"&gt;&lt;input type=\"radio\" class=\"hikashop_product_characteristic".$class."\" style=\"display:none;\" name=\"hikashop_product_characteristic\" id=\"hikashop_product_characteristic".$name."\" value=\"".$name."\" ".$this-&gt;options; if($this-&gt;characteristics[$value-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value-&gt;characteristic_id &amp;&amp; !empty($this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id) &amp;&amp; $this-&gt;characteristics[$value2-&gt;characteristic_parent_id]-&gt;default-&gt;characteristic_id == $value2-&gt;characteristic_id) { $radio .= ' checked'; } $radio .= " /&gt;".$value-&gt;characteristic_value."&lt;/label&gt;&lt;/span&gt;";

That should do what you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MTU3NS1oaW50LWFib3V0LWNoYXJhY3RlcmlzdGljLXRhYmxlP3RtcGw9bWFya2Rvd24=) 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.155 seconds

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

[](#top)
