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

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

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

Post by yeh » 20 Sep 2022, 13:50

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

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 21 Sep 2022, 07:10

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).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

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

Post by yeh » 21 Sep 2022, 12:53

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?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 22 Sep 2022, 15:10

Use product properties for everything that is product specific and not data of a relation itself. Aimeos already uses properties for "package-weight".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

yeh
Posts: 39
Joined: 27 Jun 2022, 13:26

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

Post by yeh » 22 Sep 2022, 16:15

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?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 24 Sep 2022, 06:07

Yes, that's the intended way.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply