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

#   Product size selection

##

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

Less More

- Posts: 205
- Thank you received: 12
-
-

5 years 5 months ago -  5 years 5 months ago [\#332646](#332646) by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile")  *[Product size selection](/forum/4-how-to/902589-product-size-selection#332646 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")* was created by *[liaskas](/forum/user/59465-liaskas "View liaskas's Profile")*

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.14

Hello
we are importing products from csv files.

Each product has 2 or 3 or 4 sizes that does not affect the price.

The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).

As i said the size does not affect the price or anything else.

Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.

If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?

No other characteristics (color, material, etc), just the size.

Thank you

Last edit: 5 years 5 months ago by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

5 years 5 months ago [\#332669](#332669) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332669 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

Hello,

> Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.

Of course, the solution will be to create a custom field via "Hikashop-&gt;Display-&gt;Custom fields" and set the :
- "Field type" option to "Single dropdown"
- "Table" option to "Item"

Kind regards,
Mohamed.

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

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

Less More

- Posts: 205
- Thank you received: 12
-
-

5 years 5 months ago [\#332696](#332696) by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile")  Replied by *[liaskas](/forum/user/59465-liaskas "View liaskas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332696 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

> Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc?

> Of course, the solution will be to create a custom field via "Hikashop-&gt;Display-&gt;Custom fields" and set the :
> \- "Field type" option to "Single dropdown"
> \- "Table" option to "Item"

Thank you for you reply Mohamed.

We did create the custom field as you suggested. I left the values blank we want them to be "dynamically created from the csv" as we mentioned on our first post.

Where are the values from the csv stored so that each product has a dropdown with it's corresponding sizes?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwMjU4OS1wcm9kdWN0LXNpemUtc2VsZWN0aW9uP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

5 years 5 months ago [\#332703](#332703) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332703 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

Hi,

There is a special hidden feature of custom fields to do what you want.
You need to have two custom fields:
- one custom field of the table "item" and the type "single dropdown" without any values.
- one custom field of the table "product" and the type "multiple dropdown" or "checkbox" with all the possible values entered in it.
For that field, make sure that the "column name" is the concatenation of the column name of the first custom field + "_values".
Then, in your CSV, you can import the sizes in that second custom field column and the first custom field will appear on the product page on the frontend with only the values of the product from your CSV available.

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

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

Less More

- Posts: 205
- Thank you received: 12
-
-

5 years 5 months ago -  5 years 5 months ago [\#332721](#332721) by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile")  Replied by *[liaskas](/forum/user/59465-liaskas "View liaskas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332721 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

> \- one custom field of the table "item" and the type "single dropdown" without any values.

Created

> \- one custom field of the table "product" and the type "multiple dropdown" or "checkbox" with all the possible values entered in it.

Created

When the second custom field gets values from the csv, everything works as it should. The entered values show with the first field as selectable options.

But...

if the xml does not enter values in the second field, because a particular product does not have size for example, then the second field with all the possible values entered appears. This is not correct because some products or products from other vendors may not need to have size.

We need if the second field does not get values from csv, both fields to be hidden.

How can we do this?

Thank you.

Last edit: 5 years 5 months ago by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwMjU4OS1wcm9kdWN0LXNpemUtc2VsZWN0aW9uP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

5 years 5 months ago [\#332722](#332722) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332722 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

Hi,

In that case, you can enter a new entry to the hikashop_config table via your PHPMyAdmin with the namekey "empty_product_field_values_means_all" and the value "0".
That will then work like you want it to work.

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

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

Less More

- Posts: 205
- Thank you received: 12
-
-

5 years 5 months ago [\#332726](#332726) by [liaskas](/forum/user/59465-liaskas "View liaskas's Profile")  Replied by *[liaskas](/forum/user/59465-liaskas "View liaskas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332726 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

Thank you!!!
This did the trick.

We are done with it 99%. The remaining problem has to do with the button that shows in the products list. All the product buttons in the products list became "Choose options" even if there are no options for this product.
[ ![patini&#95;2021-05-19.png](/forum/attachment/52755) ](/forum/attachment/52755 "...2021-05-19.png")

The above product has no variants or anything else that requires the client's choice. The button should be "Add to cart" so that products without variants or any other requirements for user choice, to be added to the cart directly.

Is there a way?

- [ ![patini&#95;2021-05-19.png](/forum/attachment/52755) ](/forum/attachment/52755 "...2021-05-19.png") [ ](/forum/attachment/52755?download=1 "...2021-05-19.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwMjU4OS1wcm9kdWN0LXNpemUtc2VsZWN0aW9uP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

5 years 5 months ago [\#332730](#332730) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product size selection](/forum/4-how-to/902589-product-size-selection#332730 "-- HikaShop version -- : 4.4.2 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.14  Hello we are importing products from csv files.  Each product has 2 or 3 or 4 sizes that does not affect the price.  The sizes of each product are in the csv size column like this: M,L,XL,XXL (comma separated values).  As i said the size does not affect the price or anything else.  Is there a way to have these values show as a dropdown selection list that will be dynamically created from the csv, avoiding the creation of characteristics, variants, etc? There is no reason of creating variants because everything is the same (info, images, etc) and the price is not affected.  If yes... can the selected value show on the cart and order mail, so that we know what size the client ordered?  No other characteristics (color, material, etc), just the size.  Thank you")*

Hi,

That's because the listing sees the custom item field you created and since you didn't restrict it to any category or product, the system believes it is necessary for the add to cart.
I suppose that you've activated the "required" option of the custom item field.
If you turn it off, it should display again the add to cart button on listings. You should also activate the display option for custom item fields in the settings of the menu item so that the custom field can be displayed on the listing when necessary. Since it's a dropdown, even if the user doesn't change anything in the dropdown the first value will be selected automatically, so having a dropdown required or not shouldn't change anything, besides allowing it to display the add to cart button on the listing.

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

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