Page 1 of 1

What are product.lists.* and catalog.lists.*?

Posted: 20 Sep 2022, 13:50
by yeh
I'm looking at altering the columns on the product import CSV file, but am a little confused as to what the products.lists.* and catalog.lists.* items are?

I understand that in the product price you can set the start and end dates for a particular price like this (I think):

Code: Select all

'price' => [
        // ...
        10 => 'product.lists.type',
        11 => 'product.lists.datestart',
        12 => 'product.lists.dateend',
but what should the product.lists.type be here or product.lists.config?

Is there any documentation for this?

Thanks

Re: What are product.lists.* and catalog.lists.*?

Posted: 21 Sep 2022, 07:10
by aimeos
The list types are used to distinguish between referenced items of the same type but for different purposes, e.g. products assigned to a product can be variant products, suggested products or bought together products. In this case the list type is different for each reference. This kind of sub-types can be used in every list table for every referenced item but most of the time it's just "default" (the standard list type).

Re: What are product.lists.* and catalog.lists.*?

Posted: 21 Sep 2022, 12:53
by yeh
Thanks for your reply, I think I understand this now. These lists relate to the various items that can be found in the "Types" menu on the admin pages.

Is the product.lists.config the value that should be set for the list item? So if I wanted to set product weight I could have CSV columns set to product.lists.type and product.lists.config and then in the row have:


"package-weight", "2.5"

Is that right?

Re: What are product.lists.* and catalog.lists.*?

Posted: 22 Sep 2022, 15:10
by aimeos
Use product properties for everything that is product specific and not data of a relation itself. Aimeos already uses properties for "package-weight".

Re: What are product.lists.* and catalog.lists.*?

Posted: 22 Sep 2022, 16:15
by yeh
Okay so should I use:

Code: Select all

'media' => [
  1 => 'media.url',
  2 => 'product.lists.datestart',
  3 => 'product.lists.dateend',
]
To add start and end dates to a media item? And/or similar for prices to ensure they apply on a certain date/time?

Re: What are product.lists.* and catalog.lists.*?

Posted: 24 Sep 2022, 06:07
by aimeos
Yes, that's the intended way.