Price configuration options
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Price configuration options
Hi
How can I get configuration options (key/value) for product price ?
I have tried getConfigValue() method but with no success:
How can I get configuration options (key/value) for product price ?
I have tried getConfigValue() method but with no success:
Code: Select all
Called unknown macro "getConfigValue" on class "Aimeos\MShop\Price\Item\Standard"
Re: Price configuration options
The price items doesn't have a config property, so there's no way to store key/value pair there. The only items with config properties are:
- catalog
- product
- list items for referencing items from other domains
If you want to store arbitrary key/value pairs for prices, use properties (for prices, there's a mshop_price_property table available). How to manage and retrieve properties is documented here:
https://aimeos.org/docs/latest/models/m ... properties
- catalog
- product
- list items for referencing items from other domains
If you want to store arbitrary key/value pairs for prices, use properties (for prices, there's a mshop_price_property table available). How to manage and retrieve properties is documented here:
https://aimeos.org/docs/latest/models/m ... properties
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Price configuration options
Hi Aimeos Team,
I have the same problem:
I have added custom values to the price: rebateType:bundle , link in the screenshot,
with an import at the price-domain with "product.lists.config" field.
(aka your answer: - list items for referencing items from other domains)
How can I retrieve this value-pairs withhin a priceItem?
I have the same problem:
I have added custom values to the price: rebateType:bundle , link in the screenshot,
with an import at the price-domain with "product.lists.config" field.
(aka your answer: - list items for referencing items from other domains)
How can I retrieve this value-pairs withhin a priceItem?
- Attachments
-
- chrome-capture-2025-5-21.png (35.14 KiB) Viewed 157970 times
Thanks a lot!
Re: Price configuration options
To get the configuration stored in the list item, you have to use:
Code: Select all
foreach( $product->getListItems( 'price' ) as $listItem )
{
$config = $listItem->getConfigValue( 'key' );
$price = $listItem->getRefItem();
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
