Skip to content

Trying to add ListingPopety "Width" that has no "possible_values" but "value_ids" are required #1288

Answered by Demiurg-ls
Demiurg-ls asked this question in Q&A
Discussion options

You must be logged in to vote

One of my tries seems to work.

At the moment adding Listing proeperty that has no predefined values i use property_id as value_id (i guess any not used by predefined value_ids would work) .
The properties are added/updated properly. In case of "Width", "Depth", "Height" properties the specified value_id is preserved but in case of "Weight" new one is created (different for each property instance :)

A few observations:

  • value_id is probably connected with value - when restoring 116 g - value_id is also restored.
  • value_id is "global" - all(?) my "116.00" Grams listings have the same value_id.
  • don't rely on scale_name (i guess others names as well). Taxonomy reports "Grams" but ListingProper…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Demiurg-ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants