Created a new theme, but it is not recognized

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
aimeos
Administrator
Posts: 8670
Joined: 01 Jan 1970, 00:00

Re: Created a new theme, but it is not recognized

Post by aimeos » 12 Nov 2025, 10:41

matish wrote: 10 Nov 2025, 14:30 Of course a huge load of files were also present under the ~/notebooks/views that are not included on my plugin (except for the base.blade.php). I am assuming that only those files need to be included, which are different from the default. If that is not the case, then I would say, it is not a very good design.
That's true, you only need the files you want to customize. The rest of the files are included for convenience and to have a stable layout if the original files change between versions.
matish wrote: 10 Nov 2025, 14:30 But end result is that it is not working.
If I copy ~/packages/notebooks/views/base.blade.php to /resources/views/vendor/shop/base.blade.php then it works immediately. Even without refreshing cache.
Copying the base.blade.php file to /resources/views/vendor/shop/base.blade.php will always use it regardless of the chosen theme, so this isn't the behavior you want. If you remove it again, can you please check:
- Your theme is selected in the "Settings" panel of the admin backend
- The theme is used here and your theme template is found: https://github.com/aimeos/aimeos-larave ... op.php#L82

If your theme template file isn't found, check the ExtensionServiceProvider class of your package.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
matish
Posts: 12
Joined: 04 Nov 2025, 11:52

Re: Created a new theme, but it is not recognized

Post by matish » 12 Nov 2025, 11:11

Thanks for the information. I will check that later. Since there are huge load of files to change, I tried to take a different approach. Use API connection.
But, when I do
API request:

Code: Select all

https://aimeos.priit.yt.lan/jsonapi/product?include=attribute%2Cmedia%2Cprice%2Cproduct%2Cproduct%2Fproperty%2Ctext%2Ccatalog%2Csupplier%2Cstock%2Cproperty&page%5Boffset%5D=0
Then I get back response like this:

Code: Select all

Array
(
    [meta] => Array
        (
            [total] => 13
            [prefix] => 
            [content-baseurl] => 
            [content-baseurls] => Array
                (
                    [fs-media] => /aimeos
                    [fs-mimeicon] => /vendor/shop/mimeicons
                    [fs-theme] => /vendor/shop/themes
                )

            [csrf] => Array
                (
                    [name] => _token
                    [value] => 5gZTvIdOSCVF7wYwk2bV4UWsMrjFDABxOZpvCZE3
                )

        )

    [links] => Array
        (
            [self] => https://aimeos.priit.yt.lan/jsonapi/product?include=attribute%2Cmedia%2Cprice%2Cproduct%2Cproduct%2Fproperty%2Ctext%2Ccatalog%2Csupplier%2Cstock%2Cproperty&page%5Boffset%5D=0
        )

    [data] => Array
        (
            [0] => Array
                (
                    [id] => 52
                    [type] => product
                    [links] => Array
                        (
                            [self] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/product?id=52
                                    [allow] => Array
                                        (
                                            [0] => GET
                                        )

                                )

                            [basket.product] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/basket?id=default&related=product
                                    [allow] => Array
                                        (
                                            [0] => POST
                                        )

                                )

                        )

                    [attributes] => Array
                        (
                            [product.id] => 52
                            [product.url] => lenovo-thinkpad-t14-gen-4-i5-16gb-512gb-ssd
                            [product.type] => default
                            [product.code] => 21HD007H
                            [product.label] => Lenovo ThinkPad T14 Gen 4 - i5, 16GB,  512GB SSD
                            [product.status] => 1
                            [product.dataset] => 
                            [product.datestart] => 
                            [product.dateend] => 
                            [product.config] => Array
                                (
                                )

                            [product.scale] => 1
                            [product.target] => 
                            [product.ctime] => 2025-11-06 12:24:26
                            [product.ratings] => 0
                            [product.rating] => 0.00
                            [product.instock] => 0
                            [product.boost] => 1
                        )

                    [relationships] => Array
                        (
                            [product.property] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 568
                                                    [type] => product.property
                                                )

                                            [1] => Array
                                                (
                                                    [id] => 569
                                                    [type] => product.property
                                                )

                                            [2] => Array
                                                (
                                                    [id] => 570
                                                    [type] => product.property
                                                )

                                            [3] => Array
                                                (
                                                    [id] => 571
                                                    [type] => product.property
                                                )

                                            [4] => Array
                                                (
                                                    [id] => 572
                                                    [type] => product.property
                                                )

                                            [5] => Array
                                                (
                                                    [id] => 573
                                                    [type] => product.property
                                                )

                                            [6] => Array
                                                (
                                                    [id] => 574
                                                    [type] => product.property
                                                )

                                            [7] => Array
                                                (
                                                    [id] => 575
                                                    [type] => product.property
                                                )

                                            [8] => Array
                                                (
                                                    [id] => 576
                                                    [type] => product.property
                                                )

                                            [9] => Array
                                                (
                                                    [id] => 577
                                                    [type] => product.property
                                                )

                                            [10] => Array
                                                (
                                                    [id] => 578
                                                    [type] => product.property
                                                )

                                            [11] => Array
                                                (
                                                    [id] => 579
                                                    [type] => product.property
                                                )

                                            [12] => Array
                                                (
                                                    [id] => 580
                                                    [type] => product.property
                                                )

                                            [13] => Array
                                                (
                                                    [id] => 581
                                                    [type] => product.property
                                                )

                                        )

                                )

                            [attribute] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 7
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 540
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 7
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 11
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 541
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 11
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [2] => Array
                                                (
                                                    [id] => 15
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 542
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 15
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [catalog] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 2
                                                    [type] => catalog
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 543
                                                            [product.lists.domain] => catalog
                                                            [product.lists.refid] => 2
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 5
                                                    [type] => catalog
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 544
                                                            [product.lists.domain] => catalog
                                                            [product.lists.refid] => 5
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [media] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 284
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 545
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 284
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 285
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 546
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 285
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [2] => Array
                                                (
                                                    [id] => 286
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 547
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 286
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [3] => Array
                                                (
                                                    [id] => 287
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 548
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 287
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [4] => Array
                                                (
                                                    [id] => 288
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 549
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 288
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [price] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 52
                                                    [type] => price
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 550
                                                            [product.lists.domain] => price
                                                            [product.lists.refid] => 52
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [text] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 65
                                                    [type] => text
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 551
                                                            [product.lists.domain] => text
                                                            [product.lists.refid] => 65
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [stock] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 52
                                                    [type] => stock
                                                )

                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [id] => 53
                    [type] => product
                    [links] => Array
                        (
                            [self] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/product?id=53
                                    [allow] => Array
                                        (
                                            [0] => GET
                                        )

                                )

                            [basket.product] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/basket?id=default&related=product
                                    [allow] => Array
                                        (
                                            [0] => POST
                                        )

                                )

                        )

                    [attributes] => Array
                        (
                            [product.id] => 53
                            [product.url] => lenovo-thinkpad-t14-gen-4-i7-16gb-512gb-ssd
                            [product.type] => default
                            [product.code] => 1695374714
                            [product.label] => Lenovo ThinkPad T14 Gen 4 - i7, 16GB,  512GB SSD
                            [product.status] => 1
                            [product.dataset] => 
                            [product.datestart] => 
                            [product.dateend] => 
                            [product.config] => Array
                                (
                                )

                            [product.scale] => 1
                            [product.target] => 
                            [product.ctime] => 2025-11-06 12:24:35
                            [product.ratings] => 0
                            [product.rating] => 0.00
                            [product.instock] => 0
                            [product.boost] => 1
                        )

                    [relationships] => Array
                        (
                            [product.property] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 582
                                                    [type] => product.property
                                                )

                                            [1] => Array
                                                (
                                                    [id] => 583
                                                    [type] => product.property
                                                )

                                            [2] => Array
                                                (
                                                    [id] => 584
                                                    [type] => product.property
                                                )

                                            [3] => Array
                                                (
                                                    [id] => 585
                                                    [type] => product.property
                                                )

                                            [4] => Array
                                                (
                                                    [id] => 586
                                                    [type] => product.property
                                                )

                                            [5] => Array
                                                (
                                                    [id] => 587
                                                    [type] => product.property
                                                )

                                            [6] => Array
                                                (
                                                    [id] => 588
                                                    [type] => product.property
                                                )

                                            [7] => Array
                                                (
                                                    [id] => 589
                                                    [type] => product.property
                                                )

                                            [8] => Array
                                                (
                                                    [id] => 590
                                                    [type] => product.property
                                                )

                                            [9] => Array
                                                (
                                                    [id] => 591
                                                    [type] => product.property
                                                )

                                            [10] => Array
                                                (
                                                    [id] => 592
                                                    [type] => product.property
                                                )

                                            [11] => Array
                                                (
                                                    [id] => 593
                                                    [type] => product.property
                                                )

                                            [12] => Array
                                                (
                                                    [id] => 594
                                                    [type] => product.property
                                                )

                                            [13] => Array
                                                (
                                                    [id] => 595
                                                    [type] => product.property
                                                )

                                            [14] => Array
                                                (
                                                    [id] => 596
                                                    [type] => product.property
                                                )

                                        )

                                )

                            [attribute] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 7
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 552
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 7
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 11
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 553
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 11
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [2] => Array
                                                (
                                                    [id] => 15
                                                    [type] => attribute
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 554
                                                            [product.lists.domain] => attribute
                                                            [product.lists.refid] => 15
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [catalog] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 2
                                                    [type] => catalog
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 555
                                                            [product.lists.domain] => catalog
                                                            [product.lists.refid] => 2
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 5
                                                    [type] => catalog
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 556
                                                            [product.lists.domain] => catalog
                                                            [product.lists.refid] => 5
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [media] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 289
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 557
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 289
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [1] => Array
                                                (
                                                    [id] => 290
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 558
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 290
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                            [2] => Array
                                                (
                                                    [id] => 291
                                                    [type] => media
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 559
                                                            [product.lists.domain] => media
                                                            [product.lists.refid] => 291
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [price] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 53
                                                    [type] => price
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 560
                                                            [product.lists.domain] => price
                                                            [product.lists.refid] => 53
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [text] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 66
                                                    [type] => text
                                                    [attributes] => Array
                                                        (
                                                            [product.lists.id] => 561
                                                            [product.lists.domain] => text
                                                            [product.lists.refid] => 66
                                                            [product.lists.datestart] => 
                                                            [product.lists.dateend] => 
                                                            [product.lists.config] => Array
                                                                (
                                                                )

                                                            [product.lists.position] => 0
                                                            [product.lists.status] => 1
                                                            [product.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                            [stock] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 53
                                                    [type] => stock
                                                )

                                        )

                                )

                        )

                )


        )

    [included] => Array
        (
            [0] => Array
                (
                    [id] => 7
                    [type] => attribute
                    [attributes] => Array
                        (
                            [attribute.id] => 7
                            [attribute.domain] => product
                            [attribute.type] => seisukord
                            [attribute.code] => seiukord_uus
                            [attribute.label] => Uus
                            [attribute.status] => 1
                            [attribute.position] => 1
                        )

                    [relationships] => Array
                        (
                            [text] => Array
                                (
                                    [data] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [id] => 2
                                                    [type] => text
                                                    [attributes] => Array
                                                        (
                                                            [attribute.lists.id] => 1
                                                            [attribute.lists.domain] => text
                                                            [attribute.lists.refid] => 2
                                                            [attribute.lists.datestart] => 
                                                            [attribute.lists.dateend] => 
                                                            [attribute.lists.config] => Array
                                                                (
                                                                )

                                                            [attribute.lists.position] => 0
                                                            [attribute.lists.status] => 1
                                                            [attribute.lists.type] => default
                                                        )

                                                )

                                        )

                                )

                        )

                )


            [46] => Array
                (
                    [id] => 284
                    [type] => media
                    [attributes] => Array
                        (
                            [media.id] => 284
                            [media.filesystem] => fs-media
                            [media.domain] => product
                            [media.label] => original_2__2.jpg
                            [media.languageid] => 
                            [media.mimetype] => image/jpeg
                            [media.type] => default
                            [media.preview] => 1.d/product/3/9/39139083_8b60d6d9_original_2__2.webp?v=20251106122421
                            [media.previews] => Array
                                (
                                    [240] => 1.d/product/3/9/39139083_8b60d6d9_original_2__2.webp
                                    [480] => 1.d/product/b/e/be0da88d_8b60d6d9_original_2__2.webp
                                    [960] => 1.d/product/8/d/8dc9fa3a_8b60d6d9_original_2__2.webp
                                    [1920] => 1.d/product/4/3/4384cae8_8b60d6d9_original_2__2.webp
                                )

                            [media.url] => 1.d/product/8/b/8b60d6d9_original_2__2.jpg
                            [media.status] => 1
                        )

                )

            [47] => Array
                (
                    [id] => 285
                    [type] => media
                    [attributes] => Array
                        (
                            [media.id] => 285
                            [media.filesystem] => fs-media
                            [media.domain] => product
                            [media.label] => original_1__1.jpg
                            [media.languageid] => 
                            [media.mimetype] => image/jpeg
                            [media.type] => default
                            [media.preview] => 1.d/product/5/5/5555a1eb_6098da94_original_1__1.webp?v=20251106122422
                            [media.previews] => Array
                                (
                                    [240] => 1.d/product/5/5/5555a1eb_6098da94_original_1__1.webp
                                    [480] => 1.d/product/0/e/0e0c5acb_6098da94_original_1__1.webp
                                    [960] => 1.d/product/8/7/876417dd_6098da94_original_1__1.webp
                                    [1920] => 1.d/product/e/c/ecede971_6098da94_original_1__1.webp
                                )

                            [media.url] => 1.d/product/6/0/6098da94_original_1__1.jpg
                            [media.status] => 1
                        )

                )


            [314] => Array
                (
                    [id] => 63
                    [type] => stock
                    [attributes] => Array
                        (
                            [stock.id] => 63
                            [stock.productid] => 63
                            [stock.stocklevel] => 0
                            [stock.timeframe] => 
                            [stock.dateback] => 
                            [stock.type] => default
                        )

                    [links] => Array
                        (
                            [self] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/stock?id=63
                                    [allow] => Array
                                        (
                                            [0] => GET
                                        )

                                )

                        )

                )

            [315] => Array
                (
                    [id] => 64
                    [type] => stock
                    [attributes] => Array
                        (
                            [stock.id] => 64
                            [stock.productid] => 64
                            [stock.stocklevel] => 0
                            [stock.timeframe] => 
                            [stock.dateback] => 
                            [stock.type] => default
                        )

                    [links] => Array
                        (
                            [self] => Array
                                (
                                    [href] => https://aimeos.priit.yt.lan/jsonapi/stock?id=64
                                    [allow] => Array
                                        (
                                            [0] => GET
                                        )

                                )

                        )

                )

        )

)


As it can be seen, the response lacks Media URLs that can be accessed directly. Instead it has links like this:

Code: Select all

1.d/product/5/5/5555a1eb_6098da94_original_1__1.webp
How can I get direct links to Media. I only have http/https access.

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

Re: Created a new theme, but it is not recognized

Post by aimeos » 12 Nov 2025, 11:15

Set the ASSET_URL/APP_URL in your application correctly:
https://github.com/aimeos/aimeos-larave ... op.php#L77

Then, you get the base URL in the meta/content-baseurl property.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
matish
Posts: 12
Joined: 04 Nov 2025, 11:52

Re: Created a new theme, but it is not recognized

Post by matish » 12 Nov 2025, 12:52

This setting does not change the response, but I can see that top part changes.

Code: Select all

response[meta][content-baseurls][fs-media] = https://aimeos.priit.yt.lan/aimeos
I guess that if I prefix the '1.d/product/5/5/5555a1eb_6098da94_original_1__1.webp' with the above, then maybe I get what I want.

Also discovered another thing. How can I get product Property name labels, the ones that are surrounded with green on the attached screenshot.
Image
They do not seem to be included in API response.

User avatar
matish
Posts: 12
Joined: 04 Nov 2025, 11:52

Re: Created a new theme, but it is not recognized

Post by matish » 12 Nov 2025, 13:04

Also discovered another thing. How can I get product Property name labels, the ones that are surrounded with green on the attached screenshot.
Actually the same applies to both Product properties and Product attributes.

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

Re: Created a new theme, but it is not recognized

Post by aimeos » 14 Nov 2025, 10:22

matish wrote: 12 Nov 2025, 12:52 This setting does not change the response, but I can see that top part changes.

Code: Select all

response[meta][content-baseurls][fs-media] = https://aimeos.priit.yt.lan/aimeos
I guess that if I prefix the '1.d/product/5/5/5555a1eb_6098da94_original_1__1.webp' with the above, then maybe I get what I want.
Exactly.
matish wrote: 12 Nov 2025, 12:52 Also discovered another thing. How can I get product Property name labels, the ones that are surrounded with green on the attached screenshot. They do not seem to be included in API response.
The data is only included on request:
https://laravel.demo.aimeos.org/jsonapi ... perty/type

Same applies to product attributes and types:
https://laravel.demo.aimeos.org/jsonapi ... ibute/type
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply