Force selection of Charactistics

  • Posts: 87
  • Thank you received: 10
12 years 10 months ago #35937

Hi Forum
Hi Nicolas,

where, in the database, is the default charastistic value in a product?

Details:
when we are coming from our costumizing designer, we are creating a new unique product. What we have to set, when we want the right values in the variant_characterstic_id collums, when we have a Characteristic-List-ID = 10 and the charastistic_id = 6?

Cool question isn´it?

Gabor
H6

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35970

Hi,

The default characteristic value is defined by an entry in the hikashop_variant table linking the main product to the value of the characteristic you want as default.

So for a product with three variants (one characteristic), you will have 5 entries in the hikashop_variant table:
1 linking the main product to the characteristic
1 linking the main product to the default characteristic value
3 linking the chracteristic values to the corresponding variants of the main product

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum