Product Basic Options
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product Basic Options
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.
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.
Re: Product Basic Options
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, give us a star
If you like Aimeos, give us a star
Re: Product Basic Options
Throws an error:
I try to retrieve it in the summary basket for testing purpose.
Code: Select all
Oops, an error occurred!
Call to undefined method
Aimeos\MShop\Order\Item\Base\Product\Standard::getConfig()
Re: Product Basic Options
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, give us a star
If you like Aimeos, give us a star
Re: Product Basic Options
Ah okay, how do I make it available than?
Edit: Never mind, made it work as attribute, even better due to translations.
Edit: Never mind, made it work as attribute, even better due to translations.