Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ben McKean 272 posts 549 karma points
    Jun 13, 2018 @ 13:41
    Ben McKean
    0

    CMS Import Merchello media import doesn't work

    Hi,

    I'm importing products. These go into Merchello correctly. However the images are not being imported.

    The path to my image which is in my spreadsheet is : /productimages/card-image.png

    The productimages folder resides in the root of my site.

    When I view the product in Merchello I get console errors and the image isn't loaded because the value is wrong format. When I view the values in the Merchello database table I see

    [{"Key":"brewingPurpose","Value":"T"},{"Key":"substitutes","Value":"R"},{"Key":"metaDescription","Value":"SEO Meta"},{"Key":"alphaAcids","Value":"99%"},{"Key":"disease","Value":"S"},{"Key":"description","Value":"Pale ale malts are made from low protein spring and winter varieties to produce malts of character and flavour. Our maltsters are skilled at targeting the ideal processing conditions to create well-modified malts with distinct colour and flavour characteristics and which form the basis for some of the best ales in the UK and beyond."},{"Key":"pageTitle","Value":"SEO Page Title"},{"Key":"suitableFor","Value":"Q"},{"Key":"origin","Value":"United Kingdom"},{"Key":"image","Value":"/img/card-image.png"}]
    

    As you can see the value for image is just of the path, as it is in the spreadsheet but this is wrong for Umbraco media picker. If I compare the values in the DB for another product where I manually chose the image, it correctly shows the correct value which is an Umbraco GUID for the image and the image shows correctly in Merchello.

    [{"Key":"metaDescription","Value":""},{"Key":"brief","Value":"\"\""},{"Key":"supplier","Value":""},{"Key":"description","Value":"\"\""},{"Key":"relatedProducts","Value":""},{"Key":"pageTitle","Value":""},{"Key":"origin","Value":"\"\""},{"Key":"image","Value":"\"umb://media/99ad30ce4a76442099c87f32ecd7638b\""},{"Key":"umbracoNaviHide","Value":""}]
    

    Am I missing something in the media settings? I've set for .png to be allowed in the config file.

    Thanks

    Ben

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jun 13, 2018 @ 13:47
    Richard Soeteman
    100

    Hi Ben,

    Did you click the plus sign on that Field for the advanced settings?

    I assume not.

    Best,

    Richard

  • Ben McKean 272 posts 549 karma points
    Jun 13, 2018 @ 13:52
    Ben McKean
    0

    I didn't but have now and it works correctly. Thanks Richard!

Please Sign in or register to post replies

Write your reply to:

Draft