Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
SkuServicoForm.aspx not listing Value Tables at first for a Value type
SkuServicoForm.aspx not listing Value Tables at first for a Value type
ID: 335819
No Fix
Published on 6/28/2022
Last update on 2/16/2024

Summary

When associating a service for an SKU in our catalog, for a store that has multiple service types and service values (Value type field), at first, when a user enters the UI, the list of options for a given "Service Type" is currently only listing the associated options in the Value table of the first selected service type.

For instance, in the image below there are 3 service types: "Garantia", "seguros" and "Plan Tigo":

{"base64":"  ","img":{"width":712,"height":530,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":32497,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_1.png"}}

After selecting the option in this field, no matter which one, the field "Value Table" only displays the service values associated with the first shown option in the "Service type" listing:

{"base64":"  ","img":{"width":820,"height":543,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":43268,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_2.png"}}
{"base64":"  ","img":{"width":941,"height":558,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":46160,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_3.png"}}
{"base64":"  ","img":{"width":743,"height":194,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":20646,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_4.png"}}
{"base64":"  ","img":{"width":1316,"height":491,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":61223,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_5.png"}}

The user must first select the service type and save the configuration even with an incorrect value table and then when revisiting it, the first value will again be listed, but this time, since the first value will be the previously selected one, it will list the desired options:

{"base64":"  ","img":{"width":1089,"height":202,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":26865,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_6.png"}}

This is the selection that's currently not working:

{"base64":"  ","img":{"width":452,"height":252,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":35559,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_7.png"}}

Here: https://github.com/vtex/vcs.commerce/blob/blaster/src/Comercio/Comercio/AdminWebSite/Site/SkuServicoForm.aspx#L88 back: https://github.com/vtex/vcs.commerce/blob/blaster/src/Comercio/Comercio/AdminWebSite/Site/SkuServicoForm.aspx.cs#L186 problem is most likely here: https://github.com/vtex/vcs.commerce/blob/657c58015196fd3422b1972ed0b82b144049e238/src/Comercio/Comercio/AdminWebSite/Site/SkuServicoForm.aspx.cs#L387

Simulation

  1. In the SkuServicoTipo.aspx UI create 2+ service types
  2. Create, in the SkuServicoValor.aspx UI 2+ service values and associate each to a different service type.
  3. Go to the SkuServicoForm.aspx?IdSku= UI for any SKU of the store.
  4. Select a service type in this listing other than the 1st one in the list:
    {"base64":"  ","img":{"width":425,"height":369,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":19772,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_8.png"}}
  5. Check the value tables, the associated values won't be the correct ones, but the listing for the first value, which in our example above is "Serviço 1".

Workaround

Saving the incorrect value table for a service type in the UI, revisiting it afterward, and then changing it to the desired listed value table.

For instance, in the example in the Summary section of this KI, we've selected 'Seguros' in the service type and initially, the listed value tables were the ones for 'Garantia'.

If I save it as 'seguros', even with an incorrect value in the Value Table:

{"base64":"  ","img":{"width":501,"height":189,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":17478,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_9.png"}}

After saving and then revisiting this UI, the correct value tables for 'seguros' should now be listed and selectable:

{"base64":"  ","img":{"width":445,"height":134,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":13355,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/known-issues/Catalog/skuservicoformaspx-not-listing-value-tables-at-first-for-a-value-type_10.png"}}

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback