Api Get Homepage Sliding Banners

Hi,

I'd like to ask is there a scaled down version of banner images to be loaded for mobile app? If yes, where is it stored physically and link in table?

I'm trying to develop a custom API to retrieve the link to these banner images for mobile app. Currently using the block:

Banners (block)
Visual and text banners

I have the same problem and still not found any new info .

We have opportunity to get block content - just template , but we need to get for example we want to show all home banners on the mobile app home page and we need to have json response.

P.S. I don't want to do just getbanners ()

You should check item_ids parameter in the content field in the cscart_bm_blocks_content table for the corresponding block

Hi,

I'd like to ask is there a scaled down version of banner images to be loaded for mobile app? If yes, where is it stored physically and link in table?

I'm trying to develop a custom API to retrieve the link to these banner images for mobile app. Currently using the block:

Banners (block)
Visual and text banners

hi i was able to solve this and fetch all the home page data had to create a custom add-on for the home page api and all is well my add-on is ready incase anyone needs it its ready for purchase

please provide solution if you done this already.Thanks in advance

Hi,

I'd like to ask is there a scaled down version of banner images to be loaded for mobile app? If yes, where is it stored physically and link in table?

I'm trying to develop a custom API to retrieve the link to these banner images for mobile app. Currently using the block:

Banners (block)
Visual and text banners

All images are in images/detailed/*

Thumbnails are generated from those images and cached in images/thumbnails/[width]/[height]/*

so if you know the dimensions of the image you can retrieve them from the appropriate directory. You don't need the api to do this.

I am looking for homepage API,please guide little how I can get blocks data

I don't think it's available via the API. You would have to write an Entity for 'Blocks' to be able to capture block data. If it is available, I've never used it.

I am looking for homepage API,please guide little how I can get blocks data

Yes, it is not possible with default API.

How to add new entity (e.g. for banners), you can find here

https://docs.cs-cart.com/latest/developer_guide/addons/api_extending.html