Image Filename Override
Content |
---|
The Image Filename Override allows admin users and store owners to perform image tracking and mapping based on the given file name of the images that will be assigned on a specific item in the web store.
By default, all images on the web store are automatically duplicated by the system and provided with a different numeric name in the web resource folder for web reference. Instead of this, setting the image file’s custom name on Connected Business would be more uniform, making it applicable for admin users and store owners when mapping images.
Enable Image Filename Override
By enabling this function, users will have the ability to map images for assigning a specific item image from the database.
To enable the Image Filename Override function:
- Go to e-Commerce module > Setup > Application Configuration to open the Application Configuration form.
- Key in and search ImageFileNameOverride.Enabled to set the configuration value to “True”.
Click Image to Enlarge
- Save and Close to apply changes.
Create Image Filename Override Custom Field
The next step is to create the custom fields where users can enter the override filenames for the images. The following steps demonstrate how to create override fields for image icons:
- Go to System module > Customize > Data Dictionary. The Data Dictionary form will be displayed.
- Drill down the System Tables folder and look for InventoryItem table.
Click Image to Enlarge
- Right click the InventoryItem then select Add Custom Field to open the Add Custom Field Wizard. Alternatively, you can also click on the Add Custom Field icon on top of the Data Dictionary form.
Click Image to Enlarge
- In the Column Name field, enter ImageOverrideIcon, choose Alphanumeric for the Type, and specify your preferred file name length in the Length field.
Click Image to Enlarge
The recommended length size for the custom field is 100. Refer to Creating New Custom Fields for more information.
- Click Next and Finish to close the Wizard. The newly-created override fields are now added on the list.
Click Image to Enlarge
- Repeat steps for creating override fields for medium image (ImageIconMedium) and large image (ImageOverrideLarge).
- Click Save and Close to apply the customization.
For multi-image override field, use the format, ImageOverride . (e.g. ImageOverrideMedium1, ImageOverrideLarge1).
Assign Image Filename Override Custom Field
After creating the override fields, assign these fields in the Item form of the Inventory module.
To do this:
- Go to System module > Customize > Role. The list of user roles will be displayed. Double-click on the Administrator user role to load the User Role-Administrator window.
- From the Selected Module panel, select Inventory module to load the User Role Window.
- From the module menu tree-list, select the Find Item menu to display the Item mock-up form.
Click Image to Enlarge
- From the General tab, right click on the Custom Field section and select Show Customization form. The Customization form will be displayed.
Click Image to Enlarge
- From the Hidden Items tab, you will see the override fields you have created. Drag and drop the fields in the Custom Field section and arrange it according to your preferences.
Click Image to Enlarge
- Close the form and click Yes in the message prompt window to save changes.
Click Image to Enlarge
Enter Image Filename Override to Map Images
After assigning the override fields, you can now enter the file names of the image that will be used for your web store.
To do this:
- Go to Inventory module >Item> Find Item. The list of inventory items will be displayed. Select an item form the list to load the Item form.
- From the General tab > Custom Field section, you should see the override fields. Enter the file name of the image that you want to use for the item. Keep in mind to exclude the file extension (jpg) of the image.
Click Image to Enlarge
- Click Save and Close to apply changes.
The image will now display on the web store, while the duplicate image file resides on their respective product image folder (Icon, Medium, Large) in your Connected Business web resource, bearing the given file name.
Click Image to Enlarge
Click Image to Enlarge