Can MediaMapper map Images to BaseProduct as well?

Is it possible to map images to the BaseProduct in MediaMapper or is it only to Variants?

Litium version: 7.4

Yes, it maps both.

How can I get it to work?

I have a BaseProduct with the name bp-3085125-20 and an image with the name bp-3085125-20_1.jpg

In Src\Litium.Accelerator.Mvc\Litium.AddOns.ProductMediaMapper.dll.config I have the following settings

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ProductMediaMapping.xsd"
  mediaarchiverootfolder="Import" articlenumbercharacterlengthmatch="1">
  <AllowedFileTypes>
  <AllowedFileType filetype="gif" />
  <AllowedFileType filetype="jpg" />
  <AllowedFileType filetype="png" />
  </AllowedFileTypes>
  <DisplayImagesMappings>
    <DisplayImageMapping prefix="" suffix="_1" prio="0"/>
    <DisplayImageMapping prefix="" suffix="_10" prio="1"/>
    <DisplayImageMapping prefix="" suffix="_20" prio="2"/>
    <DisplayImageMapping prefix="" suffix="_30" prio="3"/>
  <DisplayImageMapping prefix="" suffix="_40" prio="4"/>
    <DisplayImageMapping prefix="" suffix="_50" prio="5"/>
    <DisplayImageMapping prefix="" suffix="_60" prio="6"/>
    <DisplayImageMapping prefix="" suffix="_70" prio="7"/>
  </DisplayImagesMappings>
</Configuration>

It works great if I map a variant

I tested this in a clean installation of Litium 7.4, using MediaMapper addon 7.0.100.0 and your configuration above, and it works as expected. The image bp-3085125-20_1.jpg was mapped to base product bp-3085125-20.

Are there any errors in the event log?

Thank you, I got it to work now. I don’t know why it didn’t run the first time.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.