Not getting the actual img file url placed in themeDeveloper tool in local system.

I have some images in assets folder of theme developer tool. I want to all of them in a row,so i put their names in an array in home.view file and tried to iterate through the array and get their url using ‘getThemeAssetsPath’ and assign it to src attribute. But its making request to live server instead of local server for image url. while when i place only one name like this ( {{getThemeAssetsPath ‘img/desk.png’}} ), it making request to local server and showing the image. Can someone tell me where i was doing wrong ?

Not getting the actual img file url placed in themeDeveloper tool in local system.This image describes how i tried to get those images from theme developer tool using getAssetsPath in template file.

Rookie Asked on October 14, 2019 in SuiteCommerce.

@martin it didn’t worked. Still making request to production site.

on October 16, 2019.
Add Comment
1 Answer(s)

Hi, i was able to reproduce your issue, a quick solution that I found I using getThemeAssetsPathWithDefault instead getThemeAssetsPath, let me know if that works for you.

Thanks

 

{{#each iconsUrls}}

{{getThemeAssetsPathWithDefault this}}

{{/each}}

Rookie Answered on October 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor