Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    hyperlocal-marketplace-guide

    How to Add Image Field In Akeneo

    Getting Start with Add Image Field in Akeneo !!

    In Akeneo PIM, If you want to render the custom image field in product edit form, you need to create a new field. We will go through each step needed to achieve this task.

    Supported Extensions: JPG, JPEG,  GIF, PNG

    Step1 : 

    Before rendering the image field you require to create image field module in public/js/product/form directory. after then you must register it in file requireJs.yml which present in your bundle directory Resources/config. 

    imageField.js

    Step 2:

    After Creating the js module you must create image field template in public/templates/product directory. After then it is also required to register in Requirejs.yml file

    imageField.html

    Step 3:

    Now we need to register both above files in the requirejs configuration file:

    Step 4:

    Now add it to form:

    After creating the js module and image field template now create form extension to add the field. in the directory resources/config/form_extensions


    After adding it to the form extension you must clear the cache using following commands in terminal.

    1. php bin/console c:c –env=prod
    2. rm -rf ./var/cache/** && php bin/console pim:install:asset –env=prod && php bin/console assets:install web –symlink && yarn run webpack

    After the refresh your web browser you will found new image field in product edit form.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close