Product Basic Options

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
cyrotek
Posts: 37
Joined: 27 Jun 2019, 16:43

Product Basic Options

Post by cyrotek » 12 Sep 2019, 08:48

Hello,

I've added a key/value pair to the options, the info says "Article specific configuration options, will be available as key/value pairs in the templates", but where and how??? I cant seem to find it.

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

Re: Product Basic Options

Post by aimeos » 12 Sep 2019, 09:21

For products, categories and list items which have a config property:

Code: Select all

$config = $product->getConfig();
$value = $product->getConfigValue( 'yourkey' );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 37
Joined: 27 Jun 2019, 16:43

Re: Product Basic Options

Post by cyrotek » 12 Sep 2019, 09:26

Throws an error:

Code: Select all

Oops, an error occurred!
Call to undefined method 
Aimeos\MShop\Order\Item\Base\Product\Standard::getConfig()
I try to retrieve it in the summary basket for testing purpose.

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

Re: Product Basic Options

Post by aimeos » 12 Sep 2019, 09:27

Ordered products don't have configuration, they only have the attributes that are added when putting them into the basket:

Code: Select all

$orderAttributes = $orderProduct->getAttributeItems();
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cyrotek
Posts: 37
Joined: 27 Jun 2019, 16:43

Re: Product Basic Options

Post by cyrotek » 12 Sep 2019, 09:30

Ah okay, how do I make it available than?

Edit: Never mind, made it work as attribute, even better due to translations. :)

Post Reply