Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

How to upload/update product image on eCommerce site builder

Posted on by 50

We are now using eCommerce for our business, and we tried to upload/update product image, but we did not find any clear instruction.

on the site builder, I uploaded a template image, name it as W000000001_000_001.jpg, as we have a product with item number W000000001

As first I thought this should be enough, but when I open the product W000000001 detail page, there is no image show.

Then I go to site builder products porting, and find the item W000000001, and try to link the image to it, but there is no 'edit' option

pastedimage1604048401958v1.png

Then I'm blocked here to update the product image. Could any one help provide some suggestion that we can do this for our business?

Much thanks in advance!

  • Suggested answer
    Erick Li Profile Picture
    Erick Li 50 on at
    RE: How to upload/update product image on eCommerce site builder

    Thanks very much for your help Sam, the answer helps a lot for our business!

  • Verified answer
    Sam Jarawan Profile Picture
    Sam Jarawan on at
    RE: How to upload/update product image on eCommerce site builder

    Hi Erick,

    The main doc covering this is located here: https://docs.microsoft.com/en-us/dynamics365/commerce/dam-upload-images  but it may not be clear enough.

    One of the best ways I use to check what the image file name should be is hit F12 in a browser on the product details page to see what file name it's trying to load, it should be easy to find as a 404 error.

    Notice in the below image, there are image URLs in red due to the file not being found and thus you'll see them with a 404 result.

    pastedimage1604076099870v1.png

    If you copy the URL you'll see something like: https://cms-ppe-imageresizer-mr.trafficmanager.net/cms/api/dbfztcmjrn/imageFileData/search?fileName=/Products%2F93059_000_001.png&w=100&h=0&q=80&m=6&f=jpg

    The important part is the file name after the "/Products%2F" which in the above example is 93059_000_001.png.  So this is the file name to upload and note that it is case sensitive. The default product details page will attempt to load 5 images if they are available, for example: 93059_000_001.png, 93059_000_002.png, 93059_000_003.png, 93059_000_004.png and 93059_000_005.png.

     

    The file name pattern shown above is "{Product_Number}_000_001" and can be changed in HQ if desired (see below).  Also note this product number is not the same number that shows up in the URL, for example the URL for the example above ends with ".../knit-striped-turtleneck-sweater/68719494720.p". 

    To see where these numbers come from in HQ under the "Products by category" page for example you'll see the "Product number" used for the image file name.  If you select Options and "Record info" you'll see the "Record-ID" used for the URL with a ".p" moniker to identify this as a product.

    pastedimage1604076606109v2.png

    To change the file name template in HQ, load the "Product Images" page and select "Define media template" link as shown below.  Notice the "File name" has the pattern.  You can also change the file extension here to use jpg's instead of png's for example.

    One last note, when you upload the image files in the site builder, you must ensure you select the "Product" category and enable the publish check box as shown below.

    pastedimage1604077058915v3.png

    I hope this helps,

    Sam

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans