Retrieve product url while retrieving products from an order

How to configure and adapt Aimeos based shops as developer
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!
jgaut
Posts: 1
Joined: 12 May 2022, 09:13

Retrieve product url while retrieving products from an order

Post by jgaut » 12 May 2022, 09:24

Hello !
I have followed this doc: https://aimeos.org/docs/2020.x/frontend ... eve-orders to retrieve orders and their associated products.
I have passed 'order/base/product' as include parameter.
I can access individual product properties with access key order.base.product.productid, .name, .price ...
However, I cannot access the url segment property of the product.
Is there a way to add a key such as order.base.product.producturl to retrieve a product url segment ?

Many thanks in advance,

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

Re: Retrieve product url while retrieving products from an order

Post by aimeos » 13 May 2022, 06:33

The url segment of the ordered product isn't stored in the order product item but you can fetch the original product if you add "product" to the "include" parameter.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply