Code Monkey home page Code Monkey logo

checkout-ui-custom's Introduction

Checkout UI Custom

The Checkout UI Custom app is responsible for customizing your store's Checkout UI through the admin's interface.

checkout-ui-custom

Configuration

  1. Using your terminal and the VTEX IO Toolbelt, log into the desired VTEX account.
  2. Run vtex install vtex.checkout-ui-custom on the account you're working on.
  3. Access your VTEX account's admin.
  4. Access Store Setup and then Checkout UI Custom.
  5. Make the desired changes using the interface and click on Publish.

ℹ️ _Once the app is installed in your account, the checkout6-custom.js and checkout6-custom.css files will be replaced by the ones generated by this app.*

Modus Operandi

If you access your VTEX account's admin using a Development workspace and publish your changes, the configurations performed using the app will only be applied into the workspace you are working in and not in your store Checkout.

However, notice the following: you should not perform any changes in your account's Master workspace to make your Checkout UI configurations publicly available. Instead, you should use a Development workspace and the History tab displayed on the admin app.

The History tab enables you to load app change history and, therefore, helps your checkout UI coding by reusing configurations performed in previous workspaces.

Let's assume you were working in a Development workspace called testredcolor, and now want your changes to be public. According to how workspaces work in the platform, your changes first need to be applied in a Production workspace that, in turn, will be promoted to Master later.

For this purpose, you can access the History tab using the desired Production workspace, load your last changes from testredcolor and then click on Publish, copying your configurations to the Production workspace you are currently working in.

⚠️ The Header and Footer HTMLs are still configured using the admin's Portal (/admin/portal/#/sites). In order to properly use the Checkout UI Custom app, it is strongly recommended to use the HTMLs stated below:

  • Header HTML:
<header class="main-header">
  <div class="container">
    <div class="header-link">
      <a href="/" title="add more products" class="buy-more-link link"
        >Continue shopping</a
      >
      <a
        href="/checkout/#/cart"
        title="back to cart"
        class="back-cart-link link"
        >Back to Cart</a
      >
    </div>
    <a href="/" title="Go to homepage" class="logo">{logo.image}</a>
  </div>
</header>

If you want to insert other contents, make sure of include the class .v-custom-mhide to hide it on mobile resolutions. For example:

<header class="main-header"> ... </header>
<div class="promobar v-custom-mhide> ... </div>
  • Footer HTML:
<footer class="main-footer">
  <div class="container">
    <a class="credits-vtex" href="http://www.vtex.com/" target="_blank"
      ><img src="http://brand.vtex.com/static/media/VTEX_pink_RGB.751a9fb5.svg"
    /></a>
  </div>
</footer>
If you are yet using the classic CMS You can create a workspace and install the app by there. While using the app, you will need apply your changes and copy/paste the content of the files to your portal.

For VTEX Developers

When developing a new version of Checkout UI Custom, take care to compile the checkout files prior to opening a PR and/or publishing a new version of the app. This can be done by running yarn app in your CLI, inside the app's /checkout-ui-custom/ subfolder.

During implementation, you will need to run vtex link on the root folder and also watch assets by running yarn watch in the /checkout-ui-custom/ subfolder

❗Note that during implementation, avoid publishing changes to the workspace. As this will permanently add the changes to the workspace and any changes to the app will not be shown.

Contributors ✨

Thanks goes to these wonderful people:

This project follows the all-contributors specification. Contributions of any kind welcome!

checkout-ui-custom's People

Contributors

lucvysk avatar albertm805 avatar wender avatar arturo777 avatar syed-vtex avatar sheilagomes avatar shashidhar85 avatar annachiu95 avatar thyarles avatar mecrano avatar polishq avatar diana-cartagena avatar camilavcoutinho avatar git-the-sanz avatar kaio-donadelli avatar cdcs0128 avatar looeesh avatar guerreirobeatriz avatar erislandio avatar kevinch avatar diegoleone avatar daniserejo avatar fbenitez97 avatar yurandcl avatar georgelimadev avatar sumanraj123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.