How to fetch catalog media and text.

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!
User avatar
Jairus34
Posts: 31
Joined: 05 Aug 2024, 07:34

How to fetch catalog media and text.

Post by Jairus34 » 28 Oct 2024, 12:11

Hi Aimeos,

I'm trying to fetch catalog media and text, but the include array in the response appears to be empty.

Is my query correct, or am I missing something? Here's the query I’m using:

http://localhost:8000/jsonapi/catalog?id=2&include=media,text

My goal is to include both media and text while fetching details for a specific catalog. One note: both media and text are set to the Estonian language. Do I need to add a query parameter for the language ID?

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

Re: How to fetch catalog media and text.

Post by aimeos » 28 Oct 2024, 13:33

Guess, you are using Laravel. If you need texts in a specific language, add "&locale=<two letter ISO language code>" to the URL, in your case it should be "&locale=et".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply