OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce problems to replace js using requirejs.yml

This topic contains 6 replies, has 3 voices, and was last updated by  marcosjp88 5 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33191

    marcosjp88
    Participant

    I am testing in several ways, as I found in the documentation, but I can not replace the file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #33192

    Andrey Yatsenko
    Moderator

    Check this post first
    https://oroinc.com/orocrm/forums/topic/how-to-override-js-file

    After overriding configs, I guess you need to rebuild Symfony’s container and requirejs modules as well.
    it can be done by running
    rm -rf app/cache/* && app/console cache:warmup --env prod --no-debug and
    app/console oro:requirejs:build --env=prod

    #33193

    marcosjp88
    Participant

    I tried, but I can not make it work, do you have an idea if my file is wrong?

    #33194

    Hryhorii Hrebiniuk
    Participant

    Hello @marcosjp88,

    You have to use module names in map section of requirejs config, not its path in your file system.

    #33195

    marcosjp88
    Participant

    still does not work, is there another way to overwrite a javascript function?

    #33196

    Hryhorii Hrebiniuk
    Participant

    Doesn’t it work?

    #33197

    marcosjp88
    Participant

    no, check the routes are all correct, probe with the commands that Andrey passed in both dev and prod

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top