Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of ForceGento in seconds using the Heroku button below:

Deploy

Deploying to Heroku using the Command Line

You can also deploy ForceGento to Heroku using the command line:

  1. Clone the repository

    git clone https://github.com/technomile/B2C-Ecommerce-on-Salesforce-Heroku
    
  2. Create a Heroku application

    cd ForceGento
    heroku create
    
  3. Install the ClearDB plugin

    heroku addons:add cleardb:ignite
    
  4. Install the New Relic plugin

    heroku addons:add newrelic:stark
    
  5. Install the SendGrid plugin

    heroku addons:add sendgrid:starter
    
  6. Deploy to Heroku

    git push heroku master
    
  7. Run the the application and complete the magento installation process:

    • Open the application in a browser:

      heroku open
      
    • Get ClearDB database credentials and add at the time Magento installation:

      heroku config
      
    • Input values for the admin username, password, Email Address and site name.

  8. Click here for installing and configuring forcegento app using AppExchange.

    OR

    Click here for installing and configuring forcegento app using Manage Package.

  9. Click here to order the licence token key.

Installing a Local Version

You can also install Magento on your local machine:

  1. Clone the repository

    git clone https://github.com/technomile/B2C-Ecommerce-on-Salesforce-Heroku
    
  2. Install the server dependencies

    cd ForceGento
    npm install
    
  3. Create a local database

    • Install and start MySQL on your local machine
    • Create a database called ForceGento
  4. Start the server

    wamp/xampp server
    
  5. Run the application

    • Open a browser and access the following URL: http://localhost
    • Get local database credentials and add at the time Magento installation:

    • Create admin username and password, Email Address and Site name.

  6. Click here for installing and configuring forcegento app using AppExchange.

    OR

    Click here for installing and configuring forcegento app using Manage Package.

  7. Download the Enterprise and Partner WSDL files from Salesforce org. Copy these files to \lib\soapclient.

Deploying Magento config file and Salesforce Enterprise WSDL file to Heroku using the Command Line

  1. Clone the repository (If already cloned then cd your APP_NAME and git pull)

    git clone git@heroku.com:YOUR_APP_NAME.git
    
    cd YOUR_APP_NAME
    
    git pull origin master
    
  2. Add the credentials to app/etc/local.xml file. Download sample of local.xml file form here.

  3. Download the Enterprise WSDL file from Salesforce org and copy this file to \lib\soapclient.

  4. Deploy to Heroku using these three commands.

    git add .
    git commit -m "YOUR_COMMENT"
    git push heroku master

API configuration in Magento

  1. Login to Magento admin panel.

  2. Create Custom Field in Contact Us form:

    • Go to System >> Transactional Emails >> Add New Template

    • Select 'Contact Form' from Template drop down

    • Click on 'Load Template'.

    • Add "Company: {{var data.company}}" in the template content, to add a new Company field in the form.

    • Click on 'Save Template'.

  3. Design Change

    • Go to System >> Design >> Add Design Change.

    • Select 'forcegento' from drop down for Custom Design.

    • Cick 'Save'.

  4. Configure Salesforce API Extension

    • Go to System >> Configuration

    • In 'TechnoMile Salesforce API Extension' section, click on 'Salesforce API Configuration'.

    • Enable the API

    • Fill Salesforce username, password, token

    • Specify the path of WSDL file.

    • Select the client type (Enterprise, Partner)

    • Click on 'Check Salesforce Connection' button to validate Salesforce connection

    • Enter the license key that you received in your email, to validate the API license

    • Save the configurations.

    • This will connect the magento app to SalesForce through SOAP.

How to find your AWS Access Key ID and Secret Access Key? How to Create S3 Bucket?

  1. Click here for getting your Access Key ID and Secret Access Key.

  2. Click here to learn how to create a S3 bucket on amazon.

Amazon Web Services configuration on Magento

  1. Login to Magento admin panel.

  2. On dashboard:
    • Go to System >> Configuration >> Catalog >> Image CDN

    • Under General Settings select the following fields.

      • Current Adapter as Amazon S3/CloudFront

      • File Result Cache as In database (recommended)

      • Cache Time-to-Live as 1440

      • Verify File Size as Yes

      • Image Compression as -- Use default --

    • Under Amazon S3/CloudFront input the following fields.

      • Input your Access Key ID

      • Input your Secret Access Key

      • Input your Bucket name

      • Input your Base URL Or Input your Secure Base URL

    • Click on Save Config and you are done.

SendGrid configuration on Magento

  1. Login to Magento admin panel.

  2. On dashboard:
    • Go to System >> Configuration >> Aschroder Extensions >> SMTP Pro

    • Under General Settings configure your SMTP connection below.

      • Select Email Connection as SendGrid

      • Input your SendGrid Username

      • Input your SendGrid Password

    • Click on Save Config and you are done.