Get product and catalog from order/product in confirmation template
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Get product and catalog from order/product in confirmation template
Hi Aimeos-Teams,
for google tag manager tracking purposes, I need the catalog(s) in the order confirmation template (client/html/checkout/confirm/body) for each product.
Is there a way to retrieve the product item "MShop/Product/Item/Standard" and the attached catalog(s) withhin the iteration from $this->summaryBasket->getProducts() in this template?
Thank you!
for google tag manager tracking purposes, I need the catalog(s) in the order confirmation template (client/html/checkout/confirm/body) for each product.
Is there a way to retrieve the product item "MShop/Product/Item/Standard" and the attached catalog(s) withhin the iteration from $this->summaryBasket->getProducts() in this template?
Thank you!
Thanks a lot!
Re: Get product and catalog from order/product in confirmation template
You have to create a decorator which fetches the product items including the categories for the ordered products in the basket and pass that to the view:
https://aimeos.org/docs/latest/frontend ... omponents/
In 2023.07+, you will be able to configure which related domains are loaded:
https://github.com/aimeos/ai-client-htm ... #L124-L140
https://aimeos.org/docs/latest/frontend ... omponents/
In 2023.07+, you will be able to configure which related domains are loaded:
https://github.com/aimeos/ai-client-htm ... #L124-L140
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Get product and catalog from order/product in confirmation template
Ok thank you.
That are my thoughts also, but in the docu/configure there are no decorator-params for html-client/checkout/confirm,
only overwrite the standard impl: https://aimeos.org/docs/latest/config/c ... firm/#name
So that should be: client/html/checkout/confirm/decorators/(global|local|excludes)
For understanding: have all html-client objects these decorator pattern and the docu is missing that in some places?
e.g. the basket-mini have it:
https://aimeos.org/docs/latest/config/c ... decorators
That are my thoughts also, but in the docu/configure there are no decorator-params for html-client/checkout/confirm,
only overwrite the standard impl: https://aimeos.org/docs/latest/config/c ... firm/#name
So that should be: client/html/checkout/confirm/decorators/(global|local|excludes)
For understanding: have all html-client objects these decorator pattern and the docu is missing that in some places?
e.g. the basket-mini have it:
https://aimeos.org/docs/latest/config/c ... decorators
Thanks a lot!
Re: Get product and catalog from order/product in confirmation template
Decorators can be applied to any HTML client component. The missing documentation has been added again in the code and will be available on the web site with the next release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
