How to display default attributes in basket, checkout?
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!
How to display default attributes in basket, checkout?
Hi,
we use default- and select- products for our catalog;
all (default and select) products have attributes like "selling unit"
But on basket, checkout and basket-history page only attribute for selection article are displayed - not for default article
How can we display default attributes "selling unit" also in the basket?
Already added 'default' in shop.php like:
but without success
Thank you
we use default- and select- products for our catalog;
all (default and select) products have attributes like "selling unit"
- for select products "selling unit" is stored as variant attribute
- for default products it is stored as default attribute
But on basket, checkout and basket-history page only attribute for selection article are displayed - not for default article
How can we display default attributes "selling unit" also in the basket?
Already added 'default' in shop.php like:
Code: Select all
client/html/common/summary/detail/product/attribute/types => ['default', 'variant', 'config', 'custom' ]
Thank you
Re: How to display default attributes in basket, checkout?
The easiest option is to add the attribute as "hidden" attribute (https://aimeos.org/docs/latest/manual/p ... cteristics). Hidden attributes are always added to the ordered products by default without and configuration but they are not displayed in the frontend.
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: How to display default attributes in basket, checkout?
We would like to make the "selling unit" attribute visible in the basket (checkout, history) and in the payment mail.
Using the "hidden" attribute would be a bit misleading (but of course possible as a workaround).
Did I understand correctly, that the "default attribute" cannot be displayed in the basket, even if we add the "default" type in shop.php?
Using the "hidden" attribute would be a bit misleading (but of course possible as a workaround).
Did I understand correctly, that the "default attribute" cannot be displayed in the basket, even if we add the "default" type in shop.php?
Re: How to display default attributes in basket, checkout?
Another option would be to create a basket plugin similar to the PropertyAdd plugin, just for a configured list of attributes:
https://github.com/aimeos/aimeos-core/b ... rtyAdd.php
Yes, because the default attributes are not stored along with the ordered product. The mentioned configuration can only hide already available attributes.
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