OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce How to customize Front-end as a freelancer

This topic contains 28 replies, has 4 voices, and was last updated by  Andrey Yatsenko 5 years, 7 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
  • #33236

    nellybaz10
    Participant

    Hello, I am a freelancer and has been hired to customize the front end of the orocommerce platform, but I don’t know how to access the source code of the client platform, I literally don’t know where to begin

Viewing 15 replies - 1 through 15 (of 28 total)
  • Author
    Replies
  • #33238

    Andrey Yatsenko
    Moderator

    First of all, you need to create the custom bundle that will contain the new theme.
    As an example you can use CustomThemeBundle from the core.
    Start from an instruction how to create a bundle with the Symfony framework.

    All the links about how to work on custom layout theme can be found at the README.md

    Best regards.

    #33239

    nellybaz10
    Participant

    Thanks a lot for responding, am so stuck.
    Is it the client that should give me access to this file ? DemoBundle/Resources/views/layouts/first_theme/theme.yml.
    If not, how do I access the folders.
    Thanks

    #33240

    Andrey Yatsenko
    Moderator

    I’d recommend clarifying with the customer is it a custom application or not, and if it is custom – you need an access to all the code and the database.

    In case it’s a standard application – you can just install it from scratch, here is an install guide
    https://oroinc.com/b2b-ecommerce/doc/1.6/install-upgrade

    Anyway, you need to know what version and kind of application is used, as they are not the same and there are a lot of changes between 2.6 and 3.0 for example.

    The simplest installation will be with the Vagrant
    https://oroinc.com/b2b-ecommerce/doc/1.6/install-upgrade/one-step-automated-installation/vagrant#vagrant-installation

    #33241

    omusiienko
    Participant

    Please take a look at the Frontend developer guide for the documentation:
    https://oroinc.com/b2b-ecommerce/forums/topic/customizing-the-frontend

    And Style Book for Front End developers:
    https://demo.orocommerce.com/demo/login?user_id=1&redirect=oro_stylebook

    #33243

    nellybaz10
    Participant

    Thanks a lot, Andrey for your assistance.
    I have finished installing with vagrant. The Vbox opened asking for localhost login and password. What are the default login details?
    Thanks

    #33244

    nellybaz10
    Participant

    I am able to get past that, I have vagrant and VM running but now I need to open the application using the URL http://localhost:8000, but not working.
    Please help.

    #33245

    mmiasnikov
    Participant

    Hello, nellybaz10.

    What, exactly, isn’t working? What do you get when you’re trying to follow http://localhost:8000/ in your browser?

    #33246

    nellybaz10
    Participant

    It is not opening the application at all with the url http://localhost:8000/. My VM is running, don’t know what am missing out

    #33247

    mmiasnikov
    Participant

    Could you please provide here a precise sequence of performed installation steps? What did you do, exactly, to get the installed application?

    #33248

    nellybaz10
    Participant

    I cloned the repo with git clone -b 1.6.14 https://github.com/oroinc/orocommerce-application.git oroapp

    I downloaded and installed vagrant, VirtualBox, and composer
    And then I ran the vagrant up command in the oroapp folder, which started up the terminal in the VM.

    But then when I try opening the application with localhost:8000 on my host machine, nothing comes up

    • This reply was modified 5 years, 8 months ago by  nellybaz10.
    #33250

    mmiasnikov
    Participant

    Ok, thank you.

    Please, try the following:

    1) Try to load the page http://localhost:8000/app_dev.php, several times or until you get some answer, with 3 minutes pauses (because of possible cache recreation process).

    2) If you won’t get any result from http://localhost:8000/app_dev.php page, please, provide the content of your application installation log file:

    a) login to VM (type “vagrant ssh” in the console)

    b) see the content of the /usr/share/nginx/html/oroapp/var/logs/oro_install.log file (for example with “cat /usr/share/nginx/html/oroapp/var/logs/oro_install.log” command)

    c) provide the last 100 lines of this log here.

    • This reply was modified 5 years, 8 months ago by  mmiasnikov.
    #33252

    nellybaz10
    Participant

    Thanks mmiasnikov,
    The page http://localhost:8000/app_dev.php is working but now I get You are not allowed to access this file. Check app_dev.php for more information.

    Is there any authorization settings I should make?

    #33253

    mmiasnikov
    Participant

    Hello, nellybaz10,

    No, you shouldn’t. Let’s try the same with a regular production URL http://localhost:8000/ – try to reload it several times with 3 minutes pauses. If you won’t get any response – please, take a look into

    • /var/log/nginx/localhost_error.log
    • /usr/share/nginx/html/oroapp/app/logs/prod.log

    files on the VM file system – whether they have information about some errors?

    #33254

    nellybaz10
    Participant

    Quick Question:
    Do I have to run variant provision everytime I need to start the app?

    #33255

    mmiasnikov
    Participant

    No. If you didn’t run “vagrant destroy” command – you shouldn’t run the provisioning process again – please see https://www.vagrantup.com/intro/getting-started/teardown.html.

Viewing 15 replies - 1 through 15 (of 28 total)

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

Back to top